diff --git a/.gitignore b/.gitignore index 9b0bb7a76..d11ae91ed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ *.pyc *~ -build +/build dist BenchExec.egg-info .coverage.* @@ -11,3 +11,4 @@ coverage /.idea/vcs.xml /.idea/workspace.xml /benchexec/.idea +node_modules/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7f6809647..c9ae1f305 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -102,6 +102,50 @@ flake8: allow_failure: true # need to fix existing code first +# For HTML tables, test that bundled files are uptodate +javascript-build: + stage: test + image: node + before_script: + - cd benchexec/tablegenerator/react-table + - npm install + script: + - npm run build + - git diff --stat --exit-code + cache: + key: "$CI_JOB_NAME" + paths: + - "benchexec/tablegenerator/react-table/node_modules" + allow_failure: true # not sure why build on CI produces different output than locally + +javascript-tests: + stage: test + image: node + before_script: + - cd benchexec/tablegenerator/react-table + - npm install + script: + - npm run test + cache: + key: "$CI_JOB_NAME" + paths: + - "benchexec/tablegenerator/react-table/node_modules" + +javascript-eslint: + stage: test + image: node + before_script: + - cd benchexec/tablegenerator/react-table + - npm install + script: + - npx eslint src --max-warnings 0 + - 'npx prettier $(find . \( -name build -o -name node_modules \) -prune -type f -o -name "*.js" -o -name "*.json" -o -name "*.css" -o -name "*.scss") --ignore-path .gitignore --check' + cache: + key: "$CI_JOB_NAME" + paths: + - "benchexec/tablegenerator/react-table/node_modules" + + # Build Docker images # following this guideline: https://docs.gitlab.com/ee/ci/docker/using_kaniko.html .build-docker: diff --git a/MANIFEST.in b/MANIFEST.in index d982ab721..be033edfa 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,8 @@ include *.md include LICENSE -include benchexec/tablegenerator/template.* +include benchexec/tablegenerator/template* +recursive-include benchexec/tablegenerator/react-table/build *.min.js +recursive-include benchexec/tablegenerator/react-table/build *.min.css recursive-include bin * recursive-include contrib * recursive-include doc * diff --git a/README.md b/README.md index d4ffd819f..07334aad1 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,7 @@ Maintainer: [Philipp Wendler](https://www.philippwendler.de) Contributors: - [Aditya Arora](https://github.com/alohamora) - [Dirk Beyer](https://www.sosy-lab.org/people/beyer/) +- [Laura Bschor](https://github.com/laurabschor) - [Thomas Bunk](https://github.com/TBunk) - [Montgomery Carter](https://github.com/MontyCarter) - [Andreas Donig](https://github.com/adonig) @@ -91,6 +92,7 @@ Contributors: - [Stephan Lukasczyk](https://github.com/stephanlukasczyk) - [Alexander von Rhein](http://www.infosun.fim.uni-passau.de/se/people-rhein.php) - [Alexander Schremmer](https://www.xing.com/profile/Alexander_Schremmer) +- [Dennis Simon](https://github.com/DennisSimon) - [Andreas Stahlbauer](http://stahlbauer.net/) - [Thomas Stieglmaier](https://stieglmaier.me/) - [Ilja Zakharov](https://github.com/IljaZakharov) diff --git a/benchexec/tablegenerator/__init__.py b/benchexec/tablegenerator/__init__.py index 3f2c797fb..e89ef0518 100644 --- a/benchexec/tablegenerator/__init__.py +++ b/benchexec/tablegenerator/__init__.py @@ -75,9 +75,17 @@ LIB_URL = "https://cdn.jsdelivr.net" LIB_URL_OFFLINE = "lib/javascript" -TEMPLATE_FILE_NAME = os.path.join(os.path.dirname(__file__), "template.{format}") + +REACT_FILES = [ + os.path.join(os.path.dirname(__file__), "react-table", "build", path) + for path in ["vendors.min.", "bundle.min."] +] + +TEMPLATE_NAME = "template" +TEMPLATE_NAME_REACT = "template_react" +TEMPLATE_FILE_NAME = os.path.join(os.path.dirname(__file__), "{template}.{format}") + TEMPLATE_FORMATS = ["html", "csv"] -TEMPLATE_ENCODING = "UTF-8" TEMPLATE_NAMESPACE = { "flatten": Util.flatten, "json": Util.to_json, @@ -1862,6 +1870,25 @@ def create_tables( ) template_values.version = __version__ + # prepare data for js react application + if options.template_name == TEMPLATE_NAME_REACT: + template_values.tools = Util.prepare_run_sets_for_js( + template_values.run_sets, template_values.columns + ) + template_values.rows = Util.prepare_rows_for_js( + rows, template_values.tools, outputPath, template_values.href_base + ) + + template_values.app_css = [ + Util.read_bundled_file(path + "css") for path in REACT_FILES + ] + template_values.app_js = [ + Util.read_bundled_file(path + "js") for path in REACT_FILES + ] + # template_values.stats = + else: + logging.warning("Option --static-table will be removed in BenchExec 3.0.") + futures = [] def write_table(table_type, title, rows, use_local_summary): @@ -1869,6 +1896,12 @@ def write_table(table_type, title, rows, use_local_summary): if not options.format == ["csv"]: local_summary = get_summary(runSetResults) if use_local_summary else None stats, stats_columns = get_stats(rows, local_summary, options.correct_only) + + # prepare data for js react application (stats) + if options.template_name == TEMPLATE_NAME_REACT: + template_values.stats = Util.prepare_stats_for_js( + stats, template_values.tools + ) else: stats = stats_columns = None @@ -1901,6 +1934,9 @@ def write_table(table_type, title, rows, use_local_summary): outfile, this_template_values, options.show_table and template_format == "html", + options.template_name + if template_format == "html" + else TEMPLATE_NAME, ) ) @@ -1919,15 +1955,15 @@ def write_table(table_type, title, rows, use_local_summary): return futures -def write_table_in_format(template_format, outfile, template_values, show_table): +def write_table_in_format( + template_format, outfile, template_values, show_table, template_name +): # read template Template = tempita.HTMLTemplate if template_format == "html" else tempita.Template - template_file = TEMPLATE_FILE_NAME.format(format=template_format) - try: - template_content = __loader__.get_data(template_file).decode(TEMPLATE_ENCODING) - except NameError: - with open(template_file, mode="r") as f: - template_content = f.read() + template_file = TEMPLATE_FILE_NAME.format( + template=template_name, format=template_format + ) + template_content = Util.read_bundled_file(template_file) template = Template(template_content, namespace=TEMPLATE_NAMESPACE) result = template.substitute(**template_values) @@ -2025,6 +2061,16 @@ def create_argument_parser(): choices=TEMPLATE_FORMATS, help="Which format to generate (HTML or CSV). Can be specified multiple times. If not specified, all are generated.", ) + parser.add_argument( + "--static-table", + action="store_const", + dest="template_name", + const=TEMPLATE_NAME, + default=TEMPLATE_NAME_REACT, + help="Generate HTML table with static HTML code as known until BenchExec 2.2 " + "instead of the new React-based table. " + "This option will be removed in BenchExec 3.0.", + ) parser.add_argument( "-c", "--common", @@ -2057,7 +2103,7 @@ def create_argument_parser(): const=LIB_URL_OFFLINE, default=LIB_URL, help="Expect JS libs in libs/javascript/ instead of retrieving them from a CDN. " - "Currently does not work for all libs.", + "Currently does not work for all libs, and only relevant for --static-table.", ) parser.add_argument( "--show", diff --git a/benchexec/tablegenerator/react-table/.gitignore b/benchexec/tablegenerator/react-table/.gitignore new file mode 100644 index 000000000..f9ccc67ce --- /dev/null +++ b/benchexec/tablegenerator/react-table/.gitignore @@ -0,0 +1,28 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# generated files +/src/data/dependencies.json + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# production - include bundle JS +/build/* +!/build/*.min.js +!/build/*.min.css + +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* diff --git a/benchexec/tablegenerator/react-table/README.md b/benchexec/tablegenerator/react-table/README.md new file mode 100644 index 000000000..d2ded79dc --- /dev/null +++ b/benchexec/tablegenerator/react-table/README.md @@ -0,0 +1,79 @@ +This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). + +## Available Scripts + +In the project directory, you can run: + +### `npm start` + +Runs the app in the development mode.
+Open [http://localhost:3000](http://localhost:3000) to view it in the browser. + +The page will reload if you make edits.
+You will also see any lint errors in the console. + +### `npm test` + +Launches the test runner in the interactive watch mode.
+See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. + +## Test Datasets + +There are 4 different Data sets to test the App in the folder data. +Change the data: + +- Go to Overview.js line 2, there the data is imported +- Change the filter to the one you want from the data folder (e.g. new_middle.json) +- Save the file + +### next section is not important for the normal testing + +### `npm run build` + +Builds the app for production to the `build` folder.
+It correctly bundles React in production mode and optimizes the build for the best performance. + +The build is minified and the filenames include the hashes.
+Your app is ready to be deployed! + +See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. + +### `npm run eject` + +**Note: this is a one-way operation. Once you `eject`, you can’t go back!** + +If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. + +Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. + +You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. + +## Learn More + +You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). + +To learn React, check out the [React documentation](https://reactjs.org/). + +### Code Splitting + +This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting + +### Analyzing the Bundle Size + +This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size + +### Making a Progressive Web App + +This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app + +### Advanced Configuration + +This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration + +### Deployment + +This section has moved here: https://facebook.github.io/create-react-app/docs/deployment + +### `npm run build` fails to minify + +This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify diff --git a/benchexec/tablegenerator/react-table/build/bundle.min.css b/benchexec/tablegenerator/react-table/build/bundle.min.css new file mode 100644 index 000000000..dbe318e53 --- /dev/null +++ b/benchexec/tablegenerator/react-table/build/bundle.min.css @@ -0,0 +1 @@ +body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.App{font-family:Droid Sans,Liberation Sans,Ubuntu,Trebuchet MS,Tahoma,Arial,Verdana,sans-serif}.link{text-decoration:underline;color:#71bcff}.btn,.link{cursor:pointer}.btn{margin:0 10px 9px 0;text-align:center;padding:auto;height:35px;box-shadow:0 4px 12px 0 rgba(113,188,255,.2);-webkit-transition:all .4s ease-in-out;transition:all .4s ease-in-out;background-size:300% 100%}.btn:hover{background:#71bcff}.btn:disabled{cursor:default}.btn:disabled,.btn:disabled:hover{background:#a9a9a9}.btn-apply{margin-left:100px;background:#71bcff;box-shadow:0 4px 12px 0 rgba(113,188,255,.5)}.btn-apply:hover{background:#fff}.overview,.overview .react-tabs{background:#71bcff}.overview .react-tabs__tab-list{display:flex;width:100vw;height:36px;margin-bottom:5px;position:fixed;top:0;padding:10px 10px 0;font-weight:700;z-index:100;background:#71bcff;align-items:flex-start}.overview .react-tabs__tab-list .react-tabs__tab{height:23px;margin-right:1px;text-align:center;border-radius:8px 8px 0 0;background:hsla(0,0%,100%,.5);font-size:14px}.overview .react-tabs__tab-list .react-tabs__tab--selected{background:#fff}.overview .react-tabs__tab-panel{padding-top:43px;background:#fff}.overview button{cursor:pointer}.overview button:disabled{display:none}.overview button.reset{position:fixed;width:90px;top:0;right:10px;padding-top:5px;padding-bottom:5px;border-radius:0 0 8px 8px;background:hsla(0,0%,100%,.5);border:none;font-size:12px}.summary{margin:auto;padding-top:30px;background:#fff;text-align:center}.summary table{border-collapse:collapse;margin:40px 0;width:100%}.summary table td,.summary table th{border:1px solid #ddd;padding:8px}.summary table .options ul{margin:0;padding:0 0 0 17px}.summary table .options li{text-align:left;font-size:9pt;list-style:none}.summary table .options li:first-child{display:none}.summary table tr:nth-child(2n){background-color:#f2f2f2}.summary table tr:hover{background-color:#ddd}.summary table th{padding-top:8px;padding-bottom:8px;text-align:left;width:14vw}.summary .rt-table{border:1px solid #ddd}.summary .rt-table .rt-td{padding-top:8px;padding-bottom:8px;border-right:1px solid rgba(0,0,0,.32)!important}.summary .rt-table .tr{font-weight:700}.summary .rt-table .rt-tr span{cursor:pointer;font-weight:700}.summary .rt-table .rt-tr-group{border:1px solid rgba(0,0,0,.32)!important}.summary .toolInfo{text-align:left;margin:20px}.summary .summary_span{text-align:right}.summary p{margin-top:40px}.mainTable a{text-decoration:none}.mainTable .fixed{justify-content:space-around;width:33%;margin:auto}.mainTable .fixed input{margin-right:40px}.mainTable .rt-table{width:99%;margin-bottom:40px}.mainTable .rt-thead.-headerGroups>div>div{border-right:1px solid #c5c5c5;background:#fff}.mainTable .rt-thead.-headerGroups>div>div span{margin:0;cursor:pointer;font-weight:700}.mainTable .rt-thead.-headerGroups>div>div:first-child{width:30vw}.mainTable .rt-tbody{overflow:scroll}.mainTable .rt-tbody span{text-align:center}.mainTable .rt-tbody .row_id{font-size:9pt;border-left:1px solid #000;padding-left:5px;height:100%;color:#484848}.mainTable .rt-tbody .rt-td{padding:8px 4px;border-right:2px solid hsla(0,0%,55.7%,.3)!important;text-align:right}.mainTable .rt-tbody .row__name{text-align:left;display:inline-block;width:auto!important;color:#000}.mainTable .rt-tbody .row__name--cellLink{cursor:pointer;color:#000}.mainTable .rt-tbody .rt-tr-group{border-bottom:1px solid rgba(0,0,0,.32)!important}.mainTable .rt-tbody .rt-tr-group:last-child{border-bottom:1px solid #d3d3d3}.mainTable .pagination-bottom{position:fixed;bottom:0;width:100%;z-index:10;background:#fff}.mainTable .cellLink{cursor:pointer}.mainTable .correct{color:green;cursor:pointer}.mainTable .error{color:#f0f;cursor:pointer}.mainTable .unknown{color:#71bcff;cursor:pointer}.mainTable .wrong{color:red;cursor:pointer}.mainTable input{width:100%;text-align:right}.mainTable input::-webkit-input-placeholder{color:#d3d3d3}.mainTable input::-moz-placeholder{color:#d3d3d3}.mainTable input:-ms-input-placeholder{color:#d3d3d3}.mainTable input::-ms-input-placeholder{color:#d3d3d3}.mainTable input::placeholder{color:#d3d3d3}.mainTable select{height:100%}.quantilePlot{position:relative;margin:20px}.quantilePlot select{display:flex;margin:auto}.quantilePlot .rv-discrete-color-legend{padding:0;border:1px solid #bababa;float:right;max-width:50%}.quantilePlot .rv-discrete-color-legend-item.clickable:hover{background:#e2e2e2}.scatterPlot{position:relative;text-align:center}.scatterPlot__select select{margin:10px}.scatterPlot .middle-line .rv-xy-plot__axis__line{stroke:#71bcff}.scatterPlot__plot{margin:auto}.scatterPlot button{margin:10px}.plot__noresults{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.info{margin:40px}.info-header{margin:40px 0;display:flex;justify-content:space-between}.info-header h1{margin:0}.info-header span{font-size:9pt;border:1px solid #71bcff;padding:5px}.overlay{position:fixed;overflow:scroll;top:80px;right:20px;left:20px;height:80%;z-index:20;background:#fff;border:5px solid grey;padding:10px}.overlay h1{margin-bottom:40px}.overlay td,.overlay th{cursor:pointer;text-align:center;background:#fff;color:#8e8d8d}.overlay td label,.overlay th label{cursor:pointer}.overlay td.checked,.overlay th.checked{color:#000}.overlay th:first-child{background:#fff}.overlay td:first-child{width:30%;text-align:left}.overlay input{display:none}.overlay__buttons{width:100%;display:flex;justify-content:center}.overlay__buttons .btn{margin-top:50px;width:20vw}.overlay th{border-bottom:1px solid #000}.overlay .closing{cursor:pointer;position:fixed;right:35px;top:93px}.rt-td{text-align:left} \ No newline at end of file diff --git a/benchexec/tablegenerator/react-table/build/bundle.min.js b/benchexec/tablegenerator/react-table/build/bundle.min.js new file mode 100644 index 000000000..7289a4e41 --- /dev/null +++ b/benchexec/tablegenerator/react-table/build/bundle.min.js @@ -0,0 +1 @@ +!function(e){function t(t){for(var a,i,o=t[0],s=t[1],c=t[2],m=0,h=[];m=c&&s<=u}return 1===l.length&&a.startsWith(l[0])},j=function(e){return void 0===e||null===e},T=function(e,t){return function(n){if(!t||!(t instanceof Array)||!n)return e;var a=n,l=!0,r=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(l=(o=s.next()).done);l=!0){if(a=a[o.value],j(a))return e}}catch(c){r=!0,i=c}finally{try{l||null==s.return||s.return()}finally{if(r)throw i}}return a}},L=T(-1/0,["original"]),V=function(e,t){var n=L(e);return L(t)-n},N=function(e){return 0===e||200===e},I=function(){for(var e=arguments.length,t=new Array(e),n=0;nl?1:a-1,r=n.props.getRunSets(e);return l.a.createElement("tr",{id:r,key:"tr"+r},l.a.createElement("td",{id:r,key:"key"+r,className:a?"checked":""},l.a.createElement("label",null,r,l.a.createElement("input",{name:r,type:"checkbox",checked:a,onChange:function(e){return n.deselectTool(t,e)}}))),n.renderColumns(t))}))},n.renderColumns=function(e){return n.state.list[e].columns.map((function(t){return l.a.createElement("td",{id:"td"+e+t.display_title,key:"key"+e+t.display_title,className:t.isVisible?"checked":""},l.a.createElement("label",null,t.display_title,l.a.createElement("input",{id:e+"--"+t.display_title,name:e+"--"+t.display_title,type:"checkbox",checked:t.isVisible,onChange:n.handleSelecion})))}))},n.renderSelectColumns=function(){return n.state.list.forEach((function(e){e.columns.forEach((function(e){n.selectable.findIndex((function(t){return t.display_title===e.display_title}))<0&&n.selectable.push(e)}))})),n.selectable.map((function(e,t){return l.a.createElement("th",{id:"td-all-"+e.display_title,key:"key"+e.display_title,className:e.isVisible?"checked":""},l.a.createElement("label",null,e.display_title,l.a.createElement("input",{name:e.display_title,type:"checkbox",checked:e.isVisible,onChange:n.handleSelectColumns})))}))},n.handleSelecion=function(e){var t=e.target,a=t.name.split("--"),l=Object(W.a)(a,2),r=l[0],i=l[1],o="checkbox"===t.type?t.checked:t.value,s=n.state.list[r].columns.findIndex((function(e){return e.display_title===i})),c=Object(R.a)(n.state.list);c[r].columns[s].isVisible=o,n.checkTools(c)},n.handleSelectColumns=function(e){var t=e.target,a="checkbox"===t.type?t.checked:t.value,l=Object(R.a)(n.state.list);l.forEach((function(e){var n=e.columns.findIndex((function(e){return e.display_title===t.name}));e.columns[n]&&(e.columns[n].isVisible=a)})),n.checkTools(l)},n.deselectTool=function(e,t){var a=t.target,l="checkbox"===a.type?a.checked:a.value,r=Object(R.a)(n.state.list);r[e].columns.forEach((function(e){e.isVisible=l})),n.checkTools(r)},n.deselectAll=function(){var e=Object(R.a)(n.state.list);e.forEach((function(e){return e.columns.forEach((function(e){e.isVisible=!n.state.deselect}))})),n.checkTools(e),n.setState((function(e){return{deselect:!e.deselect}}))},n.checkTools=function(e){e.forEach((function(e){e.isVisible=e.columns.findIndex((function(e){return e.isVisible}))>=0})),n.setState({list:e})},n.state={deselect:!0,list:Object(R.a)(n.props.tools)},n.selectable=[],n}return Object(m.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"overlay"},l.a.createElement(q.a,{icon:Z.b,onClick:this.props.close,className:"closing"}),l.a.createElement("h1",null,"Select the columns to display"),l.a.createElement("table",{className:"selectRows"},l.a.createElement("tbody",null,l.a.createElement("tr",{className:"selectColumn_all"},l.a.createElement("th",null),this.renderSelectColumns()),this.renderRunSets())),l.a.createElement("div",{className:"overlay__buttons"},l.a.createElement("button",{className:"btn",onClick:this.deselectAll},this.state.deselect?"Deselect all":"Select all"),l.a.createElement("button",{className:"btn btn-apply",onClick:this.props.close,disabled:!this.state.list.filter((function(e){return e.isVisible})).length},"Apply and close"),l.a.createElement("input",null)))}}]),t}(l.a.Component),Q=(n(62),n(4)),B=function(e){function t(e){var n;Object(o.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).updateDimensions=function(){n.setState({width:window.innerWidth,height:window.innerHeight})},n.renderColumns=function(){return n.props.tools.map((function(e,t){return l.a.createElement("optgroup",{key:"runset"+t,label:n.props.getRunSets(e,t)},e.columns.map((function(e,n){return e.isVisible?l.a.createElement("option",{key:t+e.display_title,value:t+"-"+n,name:e.display_title},e.display_title):null})))}))},n.renderData=function(){var e=[];n.hasInvalidLog=!1,n.props.table.forEach((function(t){var a=t.results[n.state.toolX],l=t.results[n.state.toolY];if(a.values[n.state.columnX]&&l.values[n.state.columnY]&&(!n.state.correct||n.state.correct&&"correct"===a.category&&"correct"===l.category)){var r=a.values[n.state.columnX].original,i=l.values[n.state.columnY].original,o=!n.state.linear&&(r<=0||i<=0);null===r||null===i||o||e.push({x:r,y:i,info:t.short_filename}),o&&(n.hasInvalidLog=!0)}})),n.setMinMaxValues(e),n.lineCount=e.length,n.dataArray=e},n.setMinMaxValues=function(e){var t=e.map((function(e){return e.x})),a=e.map((function(e){return e.y}));n.maxX=n.findMaxValue(t),n.maxY=n.findMaxValue(a),n.minX=n.findMinValue(t),n.minY=n.findMinValue(a)},n.findMaxValue=function(e){var t=Math.max.apply(Math,Object(R.a)(e));return t<3?3:t},n.findMinValue=function(e){var t=Math.min.apply(Math,Object(R.a)(e));return t>2?1:t},n.handleType=function(e,t){return"text"===n.props.tools[e].columns[t].type.name||"status"===n.props.tools[e].columns[t].type.name?"ordinal":n.state.linear?"linear":"log"},n.toggleCorrectResults=function(){n.setState((function(e){return{correct:!e.correct}}))},n.toggleLinear=function(){n.setState((function(e){return{linear:!e.linear}}))},n.handleAxis=function(e,t){var a;n.array=[];var l=e.target.value.split("-",2);n.setState((a={},Object(M.a)(a,"data".concat(t),e.target.value),Object(M.a)(a,"tool".concat(t),l[0]),Object(M.a)(a,"column".concat(t),l[1]),Object(M.a)(a,"name".concat(t),n.props.getRunSets(n.props.tools[l[0]])+" "+n.props.columns[l[0]][l[1]]),a))},n.handleLine=function(e){var t=e.target;n.setState({line:t.value})};var a=n.props.getRunSets(n.props.tools[0])+" "+n.props.columns[0][1];return n.state={dataX:"0-1",dataY:"0-1",correct:!0,linear:!1,toolX:0,toolY:0,line:10,columnX:1,columnY:1,nameX:a,nameY:a,value:!1,width:window.innerWidth,height:window.innerHeight},n.lineValues=[2,3,4,5,6,7,8,9,10,100,1e3,1e4,1e5,1e6,1e7,1e8],n.maxX="",n.minX="",n.lineCount=1,n}return Object(m.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.updateDimensions)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateDimensions)}},{key:"render",value:function(){var e=this;return this.renderData(),l.a.createElement("div",{className:"scatterPlot"},l.a.createElement("div",{className:"scatterPlot__select"},l.a.createElement("span",null," X: "),l.a.createElement("select",{name:"Value XAxis",value:this.state.dataX,onChange:function(t){return e.handleAxis(t,"X")}},this.renderColumns()),l.a.createElement("span",null," Y: "),l.a.createElement("select",{name:"Value YAxis",value:this.state.dataY,onChange:function(t){return e.handleAxis(t,"Y")}},this.renderColumns()),l.a.createElement("span",null,"Line:"),l.a.createElement("select",{name:"Line",value:this.state.line,onChange:this.handleLine},this.lineValues.map((function(e){return l.a.createElement("option",{key:e,name:e,value:e},e)})))),l.a.createElement(Q.i,{className:"scatterPlot__plot",height:this.state.height-200,width:this.state.width-100,margin:{left:90},yType:this.handleType(this.state.toolY,this.state.columnY),xType:this.handleType(this.state.toolX,this.state.columnX),xDomain:"ordinal"!==this.handleType(this.state.toolX,this.state.columnX)?[this.minX,this.maxX]:null,yDomain:"ordinal"!==this.handleType(this.state.toolY,this.state.columnY)?[this.minY,this.maxY]:null},l.a.createElement(Q.g,{yType:this.handleType(this.state.toolY,this.state.columnY),xType:this.handleType(this.state.toolX,this.state.columnX)}),l.a.createElement(Q.d,{yType:this.handleType(this.state.toolY,this.state.columnY),xType:this.handleType(this.state.toolX,this.state.columnX)}),l.a.createElement(Q.a,{className:"middle-line",axisStart:{x:this.state.linear?0:1,y:this.state.linear?0:1},axisEnd:{x:this.maxX>this.maxY?this.maxX:this.maxY,y:this.maxX>this.maxY?this.maxX:this.maxY},axisDomain:[0,1e10],style:{ticks:{stroke:"#009440",opacity:0},text:{stroke:"none",fill:"#009440",fontWeight:600,opacity:0}}}),l.a.createElement(Q.a,{axisStart:{x:this.state.linear?0:this.state.line,y:this.state.linear?0:1},axisEnd:{x:this.maxX,y:this.maxX/this.state.line},axisDomain:[0,1e10],style:{ticks:{stroke:"#ADDDE1",opacity:0},text:{stroke:"none",fill:"#6b6b76",fontWeight:600,opacity:0}}}),l.a.createElement(Q.a,{axisStart:{x:this.state.linear?0:1,y:this.state.linear?0:this.state.line},axisEnd:{x:this.maxX,y:this.maxX*this.state.line},axisDomain:[0,1e10],style:{ticks:{stroke:"#ADDDE1",opacity:0},text:{stroke:"none",fill:"#6b6b76",fontWeight:600,opacity:0}}}),l.a.createElement(Q.h,{title:this.state.nameX,tickFormat:function(e){return e},yType:this.handleType(this.state.toolY,this.state.columnY),xType:this.handleType(this.state.toolX,this.state.columnX)}),l.a.createElement(Q.j,{title:this.state.nameY,tickFormat:function(e){return e},yType:this.handleType(this.state.toolY,this.state.columnY),xType:this.handleType(this.state.toolX,this.state.columnX)}),l.a.createElement(Q.f,{data:this.dataArray,onValueMouseOver:function(t,n){return e.setState({value:t})},onValueMouseOut:function(t,n){return e.setState({value:null})}}),this.state.value?l.a.createElement(Q.c,{value:this.state.value}):null),0===this.lineCount&&l.a.createElement("div",{className:"plot__noresults"},this.hasInvalidLog?"All results have undefined values":"No correct results"),l.a.createElement("button",{className:"btn",onClick:this.toggleLinear},this.state.linear?"Switch to Logarithmic Scale":"Switch to Linear Scale"),l.a.createElement("button",{className:"btn",onClick:this.toggleCorrectResults},this.state.correct?"Switch to All Results":"Switch to Correct Results Only"))}}]),t}(l.a.Component),U=function(e){function t(e){var n;Object(o.a)(this,t),(n=Object(c.a)(this,Object(u.a)(t).call(this,e))).updateDimensions=function(){n.setState({width:window.innerWidth,height:window.innerHeight})},n.renderLegend=function(){return n.state.isValue?n.props.tools.filter((function(e){return e.isVisible})).map((function(e){return n.props.getRunSets(e)})):n.props.tools[n.state.selection.split("-")[1]].columns.map((function(e){return e.isVisible&&"text"!==e.type.name&&"status"!==e.type.name?e.display_title:null})).filter(Boolean)},n.renderAll=function(){var e=n.state.selection;if(n.state.isValue)n.props.tools.forEach((function(t,a){n.renderData(n.props.table,e,a,e+a)}));else{var t=n.state.selection.split("-")[1];n.props.tools[t].columns.forEach((function(e){"status"!==e.type.name&&"text"!==e.type.name&&e.isVisible&&n.renderData(n.props.table,e.display_title,t,e.display_title)}))}},n.renderData=function(e,t,a,l){var r=[],i=n.props.tools[a].columns.findIndex((function(e){return e.display_title===t}));(!n.state.isValue||i>=0)&&(r=(n.state.correct?e.filter((function(e){return"correct"===e.results[a].category})):e).map((function(e){return[e.results[a].values[i].original,e.short_filename]})),n.state.quantile&&(r=n.sortArray(r,t)));n.hasInvalidLog=!1;var o=[],s="ordinal"===n.handleType();r.forEach((function(e,t){var a=e[0],l=!n.state.linear&&a<=0;null===a||l||o.push({x:t+1,y:s?a:+a,info:e[1]}),l&&(n.hasInvalidLog=!0)})),n[l]=o},n.sortArray=function(e,t){var a=n.possibleValues.find((function(e){return e.display_title===t}));return n.state.isValue&&["text","status"].includes(a.type.name)?e.sort((function(e,t){return e[0]>t[0]?1:t[0]>e[0]?-1:0})):e.sort((function(e,t){return+e[0]-+t[0]}))},n.renderColumns=function(){return n.props.tools.forEach((function(e){e.columns.forEach((function(e){e.isVisible&&n.possibleValues.findIndex((function(t){return t.display_title===e.display_title}))<0&&n.possibleValues.push(e)}))})),n.renderAll(),n.possibleValues.map((function(e){return l.a.createElement("option",{key:e.display_title,value:e.display_title,name:e.display_title},e.display_title)}))},n.renderLines=function(){if(n.lineCount=0,n.state.isValue)return n.props.tools.map((function(e,t){var a=n.state.selection,r=n[a+t];return r&&r.length>0&&n.lineCount++,e.isVisible?l.a.createElement(Q.e,{data:r,key:e.benchmarkname+e.date,opacity:n.handleLineState(n.props.getRunSets(e)),onValueMouseOver:function(e,t){return n.setState({value:e})},onValueMouseOut:function(e,t){return n.setState({value:null})}}):null})).filter((function(e){return!!e}));var e=n.state.selection.split("-")[1];return n.props.tools[e].columns.map((function(e,t){var a=e.isVisible?n[e.display_title]:null;return a&&a.length>0&&n.lineCount++,a&&"text"!==e.type.name&&"status"!==e.type.name?l.a.createElement(Q.e,{data:a,key:e.display_title,opacity:n.handleLineState(e.display_title),onValueMouseOver:function(e,t){return n.setState({value:e})},onValueMouseOut:function(e,t){return n.setState({value:null})}}):null})).filter((function(e){return!!e}))},n.handleLineState=function(e){return n.state.isInvisible.indexOf(e)<0?1:0},n.handleColumn=function(e){n.setState({selection:e.target.value,isValue:n.props.tools.map((function(t){return t.columns.findIndex((function(t){return t.display_title===e.target.value}))>=0})).findIndex((function(e){return!0===e}))>=0})},n.toggleQuantile=function(){n.setState((function(e){return{quantile:!e.quantile}}))},n.toggleCorrect=function(){n.setState((function(e){return{correct:!e.correct}}))},n.toggleLinear=function(){n.setState((function(e){return{linear:!e.linear}}))},n.toggleShow=function(e){var t=e.target;n.setState(Object(M.a)({},t.name,t.checked))},n.handleType=function(){var e=n.state.selection,t=n.possibleValues.findIndex((function(t){return t.display_title===e})),a=n.state.isValue?n.possibleValues[t].type:null;return n.state.isValue&&(a&&"text"===a.name||a&&"status"===a.name)?"ordinal":n.state.linear?"linear":"log"};var a=n.props.preSelection.isVisible?n.props.preSelection:n.props.tools.map((function(e){return e.columns})).flat().find((function(e){return e.isVisible}));return n.state={selection:a&&a.display_title,quantile:!0,linear:!1,correct:!0,isValue:!0,isInvisible:[]},n.possibleValues=[],n.lineCount=1,n}return Object(m.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.updateDimensions)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateDimensions)}},{key:"render",value:function(){var e=this;return l.a.createElement("div",{className:"quantilePlot"},l.a.createElement("select",{name:"Select Column",value:this.state.selection,onChange:this.handleColumn},l.a.createElement("optgroup",{label:"Run sets"},this.props.tools.map((function(t,n){return t.isVisible?l.a.createElement("option",{key:"runset-"+n,value:"runset-"+n,name:"runset-"+n},e.props.getRunSets(t,n)):null}))),l.a.createElement("optgroup",{label:"Columns"},this.renderColumns())),l.a.createElement(Q.i,{height:window.innerHeight-200,width:window.innerWidth-100,margin:{left:90},yType:this.handleType()},l.a.createElement(Q.g,null),l.a.createElement(Q.d,null),l.a.createElement(Q.h,{tickFormat:function(e){return e}}),l.a.createElement(Q.j,{tickFormat:function(e){return e}}),this.state.value?l.a.createElement(Q.c,{value:this.state.value}):null,l.a.createElement(Q.b,{items:this.renderLegend(),onItemClick:function(t,n){var a;if(a=t.toString(),!(e.state.isInvisible.indexOf(a)<0))return e.setState({isInvisible:e.state.isInvisible.filter((function(e){return e!==a}))});e.setState({isInvisible:e.state.isInvisible.concat([a])})}}),this.renderLines()),0===this.lineCount&&l.a.createElement("div",{className:"plot__noresults"},this.hasInvalidLog?"All results have undefined values":"No correct results"),l.a.createElement("button",{className:"btn",onClick:this.toggleQuantile},this.state.quantile?"Switch to Direct Plot":"Switch to Quantile Plot"),l.a.createElement("button",{className:"btn",onClick:this.toggleLinear},this.state.linear?"Switch to Logarithmic Scale":"Switch to Linear Scale"),l.a.createElement("button",{className:"btn",onClick:this.toggleCorrect},this.state.correct?"Switch to All Results":"Switch to Correct Results Only"))}}]),t}(l.a.Component),G=n(34),J=n.n(G),K=n(57),$=n(90),ee=n.n($),te=function(e){function t(e){var n;return Object(h.a)(this,t),(n=Object(d.a)(this,Object(f.a)(t).call(this,e))).loadContent=function(){var e=Object(K.a)(J.a.mark((function e(t){var a,l;return J.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("load content",t),!t){e.next=28;break}return e.prev=2,e.next=5,fetch(t);case 5:if(a=e.sent,!N(a.status)){e.next=20;break}return e.prev=7,e.next=10,a.text();case 10:l=e.sent,n.setState({content:l}),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(7),console.log("Error: Stream not readable",t,e.t0),n.attemptLoadingFromZIP(t);case 18:e.next=22;break;case 20:console.log("Error: Loading file not possible",a),n.attemptLoadingFromZIP(t);case 22:e.next=28;break;case 24:e.prev=24,e.t1=e.catch(2),console.log("Error: Resource not found",t,e.t1),n.attemptLoadingFromZIP(t);case 28:case"end":return e.stop()}}),e,null,[[2,24],[7,14]])})));return function(t){return e.apply(this,arguments)}}(),n.attemptLoadingFromZIP=function(){var e=Object(K.a)(J.a.mark((function e(t){var a,l,r,i,o,s,c,u,m,h;return J.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Text is not received. Try as zip?",t),a=t.lastIndexOf("/"),l=t.substring(0,a)+".zip",r=t.split("/"),i=decodeURIComponent("".concat(r[r.length-2],"/").concat(r[r.length-1])),e.next=7,fetch(l);case 7:if(o=e.sent,s=o.status,c=o.statusText,!N(s)){e.next=29;break}return e.prev=10,e.next=13,o.blob();case 13:return u=e.sent,e.next=16,ee.a.loadAsync(u);case 16:return m=e.sent,e.next=19,m.file(i).async("string");case 19:h=e.sent,n.setState({content:h}),e.next=27;break;case 23:e.prev=23,e.t0=e.catch(10),console.log("ERROR receiving ZIP",e.t0),n.setState({error:"".concat(e.t0)});case 27:e.next=30;break;case 29:throw new Error(c);case 30:case"end":return e.stop()}}),e,null,[[10,23]])})));return function(t){return e.apply(this,arguments)}}(),n.escFunction=function(e){27===e.keyCode&&n.props.close()},n.componentDidMount=function(){document.addEventListener("keydown",n.escFunction,!1)},n.componentWillUnmount=function(){document.removeEventListener("keydown",n.escFunction,!1)},n.state={content:"loading file: ".concat(n.props.link)},n.cachedZipFileEntries={},n.loadContent(n.props.link),n}return Object(b.a)(t,e),Object(p.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"overlay"},l.a.createElement(q.a,{icon:Z.b,onClick:this.props.close,className:"closing"}),this.state.error?l.a.createElement("div",null,l.a.createElement("p",null,"Error while loading content (",this.state.error,")."),l.a.createElement("p",null,"This could be a problem of the"," ",l.a.createElement("a",{href:"https://en.wikipedia.org/wiki/Same-origin_policy"},"same-origin policy")," ","of your browser."),0===window.location.href.indexOf("file://")?l.a.createElement(l.a.Fragment,null,l.a.createElement("p",null,"If you are using Google Chrome, try launching it with a flag --allow-file-access-from-files."),l.a.createElement("p",null,"Reading files from within ZIP archives on the local disk does not work with Google Chrome, if the target file is within a ZIP archive you need to extract it."),l.a.createElement("p",null,"Firefox can access files from local directories by default, but this does not work for files that are not beneath the same directory as this HTML page.")):null,l.a.createElement("p",null,"You can try to download the file:"," ",l.a.createElement("a",{href:this.props.link},this.props.link))):l.a.createElement(l.a.Fragment,null,l.a.createElement("pre",null,this.state.content),l.a.createElement("input",null)))}}]),t}(l.a.Component),ne=function(e){function t(){return Object(o.a)(this,t),Object(c.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return this.props.isFiltered?l.a.createElement("button",{className:"reset",onClick:this.props.resetFilters},"Reset Filters"):null}}]),t}(l.a.Component);var ae=function(e){function t(e){var n;Object(h.a)(this,t),(n=Object(d.a)(this,Object(f.a)(t).call(this,e))).toggleSelectColumns=function(e,t){n.setState((function(e){return{showSelectColumns:!e.showSelectColumns,tools:t||e.tools}}))},n.toggleLinkOverlay=function(e,t){e.preventDefault(),n.setState((function(e){return{showLinkOverlay:!e.showLinkOverlay,link:t}}))},n.setFilter=function(e){n.filteredData=e.map((function(e){return e._original}))},n.filterPlotData=function(e){n.setState({table:n.filteredData,filtered:e})},n.resetFilters=function(){n.setState({table:n.originalTable,filtered:[]})},n.getRunSets=function(e){var t=e.tool,n=e.date,a=e.niceName;return"".concat(t," ").concat(n," ").concat(a)},n.prepareTableValues=function(e,t,a,r,i){var o=n.originalTools[t].columns[a].type.name;return"main_status"===o||"status"===o?e.formatted?l.a.createElement("a",{href:r,className:i.category,onClick:r?function(e){return n.toggleLinkOverlay(e,r)}:null,title:"Click here to show output of tool"},e.formatted):null:e},n.changeTab=function(e,t,a){n.setState({tabIndex:a,quantilePreSelection:t})};var a=C(window.data),r=a.tableHeader,i=a.tools,o=a.columns,s=a.table,c=a.stats,u=a.properties;return n.originalTable=s,n.originalTools=i,n.columns=o,n.stats=c,n.tableHeader=r,n.properties=u,n.filteredData=[],n.state={tools:i,table:s,showSelectColumns:!1,showLinkOverlay:!1,filtered:[],tabIndex:0,quantilePreSelection:i[0].columns[1]},n}return Object(b.a)(t,e),Object(p.a)(t,[{key:"render",value:function(){var e=this;return l.a.createElement("div",{className:"App"},l.a.createElement("main",null,l.a.createElement("div",{className:"overview"},l.a.createElement(y.d,{selectedIndex:this.state.tabIndex,onSelect:function(t){return e.setState({tabIndex:t,showSelectColumns:!1,showLinkOverlay:!1})}},l.a.createElement(y.b,null,l.a.createElement(y.a,null,"Summary"),l.a.createElement(y.a,null,"Table (",this.state.table.length,")"),l.a.createElement(y.a,null,"Quantile Plot"),l.a.createElement(y.a,null,"Scatter Plot"),l.a.createElement(y.a,null,"Info ",l.a.createElement(q.a,{icon:Z.a})),l.a.createElement(ne,{isFiltered:!!this.state.filtered.length,resetFilters:this.resetFilters})),l.a.createElement(y.c,null,l.a.createElement(H,{tools:this.state.tools,tableHeader:this.tableHeader,selectColumn:this.toggleSelectColumns,stats:this.stats,prepareTableValues:this.prepareTableValues,getRunSets:this.getRunSets,changeTab:this.changeTab})),l.a.createElement(y.c,null,l.a.createElement(D,{tableHeader:this.tableHeader,data:this.originalTable,tools:this.state.tools,properties:this.properties,selectColumn:this.toggleSelectColumns,getRunSets:this.getRunSets,prepareTableValues:this.prepareTableValues,setFilter:this.setFilter,filterPlotData:this.filterPlotData,filtered:this.state.filtered,toggleLinkOverlay:this.toggleLinkOverlay,changeTab:this.changeTab})),l.a.createElement(y.c,null,l.a.createElement(U,{table:this.state.table,tools:this.state.tools,preSelection:this.state.quantilePreSelection,getRunSets:this.getRunSets})),l.a.createElement(y.c,null,l.a.createElement(B,{table:this.state.table,columns:this.columns,tools:this.state.tools,getRunSets:this.getRunSets})),l.a.createElement(y.c,null,l.a.createElement(Y,{selectColumn:this.toggleSelectColumns})))),l.a.createElement("div",null,this.state.showSelectColumns&&l.a.createElement(z,{close:this.toggleSelectColumns,currColumns:this.columns,tableHeader:this.tableHeader,getRunSets:this.getRunSets,tools:this.state.tools}),this.state.showLinkOverlay&&l.a.createElement(te,{close:this.toggleLinkOverlay,link:this.state.link,toggleLinkOverlay:this.toggleLinkOverlay}))))}}]),t}(l.a.Component),le=function(e){function t(){return Object(o.a)(this,t),Object(c.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"App"},l.a.createElement("main",null,l.a.createElement(ae,null)),l.a.createElement("footer",{className:"App-footer"}))}}]),t}(a.Component);i.a.render(l.a.createElement(le,null),document.getElementById("root"))},93:function(e,t,n){e.exports=n(154)},98:function(e,t,n){},99:function(e,t,n){}}); \ No newline at end of file diff --git a/benchexec/tablegenerator/react-table/build/vendors.min.css b/benchexec/tablegenerator/react-table/build/vendors.min.css new file mode 100644 index 000000000..1e9e707e8 --- /dev/null +++ b/benchexec/tablegenerator/react-table/build/vendors.min.css @@ -0,0 +1 @@ +.react-tabs{-webkit-tap-highlight-color:transparent}.react-tabs__tab-list{border-bottom:1px solid #aaa;margin:0 0 10px;padding:0}.react-tabs__tab{display:inline-block;border:1px solid transparent;border-bottom:none;bottom:-1px;position:relative;list-style:none;padding:6px 12px;cursor:pointer}.react-tabs__tab--selected{background:#fff;border-color:#aaa;color:#000;border-radius:5px 5px 0 0}.react-tabs__tab--disabled{color:GrayText;cursor:default}.react-tabs__tab:focus{box-shadow:0 0 5px #0188fe;border-color:#0188fe;outline:none}.react-tabs__tab:focus:after{content:"";position:absolute;height:5px;left:-4px;right:-4px;bottom:-5px;background:#fff}.react-tabs__tab-panel{display:none}.react-tabs__tab-panel--selected{display:block}.ReactTable{position:relative;display:flex;flex-direction:column;border:1px solid rgba(0,0,0,.1)}.ReactTable *{box-sizing:border-box}.ReactTable .rt-table{flex:auto 1;display:flex;flex-direction:column;align-items:stretch;width:100%;border-collapse:collapse;overflow:auto}.ReactTable .rt-thead{flex:1 0 auto;display:flex;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ReactTable .rt-thead.-headerGroups{background:rgba(0,0,0,.03)}.ReactTable .rt-thead.-filters,.ReactTable .rt-thead.-headerGroups{border-bottom:1px solid rgba(0,0,0,.05)}.ReactTable .rt-thead.-filters input,.ReactTable .rt-thead.-filters select{border:1px solid rgba(0,0,0,.1);background:#fff;padding:5px 7px;font-size:inherit;border-radius:3px;font-weight:400;outline-width:0}.ReactTable .rt-thead.-filters .rt-th{border-right:1px solid rgba(0,0,0,.02)}.ReactTable .rt-thead.-header{box-shadow:0 2px 15px 0 rgba(0,0,0,.15)}.ReactTable .rt-thead .rt-tr{text-align:center}.ReactTable .rt-thead .rt-td,.ReactTable .rt-thead .rt-th{padding:5px;line-height:normal;position:relative;border-right:1px solid rgba(0,0,0,.05);-webkit-transition:box-shadow .3s cubic-bezier(.175,.885,.32,1.275);transition:box-shadow .3s cubic-bezier(.175,.885,.32,1.275);box-shadow:inset 0 0 0 0 transparent}.ReactTable .rt-thead .rt-td.-sort-asc,.ReactTable .rt-thead .rt-th.-sort-asc{box-shadow:inset 0 3px 0 0 rgba(0,0,0,.6)}.ReactTable .rt-thead .rt-td.-sort-desc,.ReactTable .rt-thead .rt-th.-sort-desc{box-shadow:inset 0 -3px 0 0 rgba(0,0,0,.6)}.ReactTable .rt-thead .rt-td.-cursor-pointer,.ReactTable .rt-thead .rt-th.-cursor-pointer{cursor:pointer}.ReactTable .rt-thead .rt-td:last-child,.ReactTable .rt-thead .rt-th:last-child{border-right:0}.ReactTable .rt-thead .rt-th:focus{outline-width:0}.ReactTable .rt-thead .rt-resizable-header{overflow:visible}.ReactTable .rt-thead .rt-resizable-header:last-child{overflow:hidden}.ReactTable .rt-thead .rt-resizable-header-content{overflow:hidden;text-overflow:ellipsis}.ReactTable .rt-thead .rt-header-pivot{border-right-color:#f7f7f7}.ReactTable .rt-thead .rt-header-pivot:after,.ReactTable .rt-thead .rt-header-pivot:before{left:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.ReactTable .rt-thead .rt-header-pivot:after{border-color:hsla(0,0%,100%,0) hsla(0,0%,100%,0) hsla(0,0%,100%,0) #fff;border-width:8px;margin-top:-8px}.ReactTable .rt-thead .rt-header-pivot:before{border-color:hsla(0,0%,40%,0) hsla(0,0%,40%,0) hsla(0,0%,40%,0) #f7f7f7;border-width:10px;margin-top:-10px}.ReactTable .rt-tbody{flex:99999 1 auto;display:flex;flex-direction:column;overflow:auto}.ReactTable .rt-tbody .rt-tr-group{border-bottom:1px solid rgba(0,0,0,.05)}.ReactTable .rt-tbody .rt-tr-group:last-child{border-bottom:0}.ReactTable .rt-tbody .rt-td{border-right:1px solid rgba(0,0,0,.02)}.ReactTable .rt-tbody .rt-td:last-child{border-right:0}.ReactTable .rt-tbody .rt-expandable{cursor:pointer;text-overflow:clip}.ReactTable .rt-tr-group{flex:1 0 auto;display:flex;flex-direction:column;align-items:stretch}.ReactTable .rt-tr{flex:1 0 auto;display:inline-flex}.ReactTable .rt-td,.ReactTable .rt-th{flex:1 0;white-space:nowrap;text-overflow:ellipsis;padding:7px 5px;overflow:hidden;-webkit-transition:.3s ease;transition:.3s ease;-webkit-transition-property:width,min-width,padding,opacity;transition-property:width,min-width,padding,opacity}.ReactTable .rt-td.-hidden,.ReactTable .rt-th.-hidden{width:0!important;min-width:0!important;padding:0!important;border:0!important;opacity:0!important}.ReactTable .rt-expander{display:inline-block;position:relative;color:transparent;margin:0 10px}.ReactTable .rt-expander:after{content:"";position:absolute;width:0;height:0;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(-90deg);transform:translate(-50%,-50%) rotate(-90deg);border-left:5.04px solid transparent;border-right:5.04px solid transparent;border-top:7px solid rgba(0,0,0,.8);-webkit-transition:all .3s cubic-bezier(.175,.885,.32,1.275);transition:all .3s cubic-bezier(.175,.885,.32,1.275);cursor:pointer}.ReactTable .rt-expander.-open:after{-webkit-transform:translate(-50%,-50%) rotate(0);transform:translate(-50%,-50%) rotate(0)}.ReactTable .rt-resizer{display:inline-block;position:absolute;width:36px;top:0;bottom:0;right:-18px;cursor:col-resize;z-index:10}.ReactTable .rt-tfoot{flex:1 0 auto;display:flex;flex-direction:column;box-shadow:0 0 15px 0 rgba(0,0,0,.15)}.ReactTable .rt-tfoot .rt-td{border-right:1px solid rgba(0,0,0,.05)}.ReactTable .rt-tfoot .rt-td:last-child{border-right:0}.ReactTable.-striped .rt-tr.-odd{background:rgba(0,0,0,.03)}.ReactTable.-highlight .rt-tbody .rt-tr:not(.-padRow):hover{background:rgba(0,0,0,.05)}.ReactTable .-pagination{z-index:1;display:flex;justify-content:space-between;align-items:stretch;flex-wrap:wrap;padding:3px;box-shadow:0 0 15px 0 rgba(0,0,0,.1);border-top:2px solid rgba(0,0,0,.1)}.ReactTable .-pagination input,.ReactTable .-pagination select{border:1px solid rgba(0,0,0,.1);background:#fff;padding:5px 7px;font-size:inherit;border-radius:3px;font-weight:400;outline-width:0}.ReactTable .-pagination .-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;width:100%;height:100%;border:0;border-radius:3px;padding:6px;font-size:1em;color:rgba(0,0,0,.6);background:rgba(0,0,0,.1);-webkit-transition:all .1s ease;transition:all .1s ease;cursor:pointer;outline-width:0}.ReactTable .-pagination .-btn[disabled]{opacity:.5;cursor:default}.ReactTable .-pagination .-btn:not([disabled]):hover{background:rgba(0,0,0,.3);color:#fff}.ReactTable .-pagination .-next,.ReactTable .-pagination .-previous{flex:1 1;text-align:center}.ReactTable .-pagination .-center{flex:1.5 1;text-align:center;margin-bottom:0;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-around}.ReactTable .-pagination .-pageInfo{display:inline-block;margin:3px 10px;white-space:nowrap}.ReactTable .-pagination .-pageJump{display:inline-block}.ReactTable .-pagination .-pageJump input{width:70px;text-align:center}.ReactTable .-pagination .-pageSizeOptions{margin:3px 10px}.ReactTable .rt-noData{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:1;padding:20px;color:rgba(0,0,0,.5)}.ReactTable .-loading,.ReactTable .rt-noData{display:block;position:absolute;background:hsla(0,0%,100%,.8);-webkit-transition:all .3s ease;transition:all .3s ease;pointer-events:none}.ReactTable .-loading{left:0;right:0;top:0;bottom:0;z-index:-1;opacity:0}.ReactTable .-loading>div{position:absolute;display:block;text-align:center;width:100%;top:50%;left:0;font-size:15px;color:rgba(0,0,0,.6);-webkit-transform:translateY(-52%);transform:translateY(-52%);-webkit-transition:all .3s cubic-bezier(.25,.46,.45,.94);transition:all .3s cubic-bezier(.25,.46,.45,.94)}.ReactTable .-loading.-active{opacity:1;z-index:2;pointer-events:all}.ReactTable .-loading.-active>div{-webkit-transform:translateY(50%);transform:translateY(50%)}.ReactTable .rt-resizing .rt-td,.ReactTable .rt-resizing .rt-th{-webkit-transition:none!important;transition:none!important;cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.rthfc .rt-thead.-header,.rthfc .rt-thead.-headerGroups{z-index:3}.rthfc .rt-thead.-filters{z-index:2}.rthfc .rt-td,.rthfc .rt-th{background-color:#fff}.rthfc .-headerGroups .rt-th,.rthfc.-striped .rt-tr.-odd .rt-td{background-color:#f7f7f7}.rthfc.-highlight .rt-tr:hover .rt-td{background-color:#f2f2f2}.rthfc .-filters .rt-th.rthfc-th-fixed-left-last,.rthfc .rt-td.rthfc-td-fixed-left-last,.rthfc .rt-th.rthfc-th-fixed-left-last{border-right:1px solid #ccc}.rthfc .rt-td.rthfc-td-fixed-right-first,.rthfc .rt-th.rthfc-th-fixed-right-first{border-left:1px solid #ccc}.rthfc.-sp .rt-tbody{overflow:visible;flex:1 0 auto}.rthfc.-sp .rt-thead{position:-webkit-sticky;position:sticky}.rthfc.-sp .rt-thead.-headerGroups{border-bottom-color:#f2f2f2}.rthfc.-sp .rt-tfoot{bottom:0}.rthfc.-sp .rt-tfoot,.rthfc.-sp .rthfc-td-fixed,.rthfc.-sp .rthfc-th-fixed{position:-webkit-sticky;position:sticky;z-index:1}.rthfc.-sp .rthfc-td-fixed-left,.rthfc.-sp .rthfc-td-fixed-right,.rthfc.-sp .rthfc-th-fixed-left,.rthfc.-sp .rthfc-th-fixed-right{left:0}.rthfc.-se .-filters .rt-th.rthfc-th-fixed,.rthfc.-se .-header .rt-th.rthfc-th-fixed,.rthfc.-se .-headerGroups .rt-th.rthfc-th-fixed,.rthfc.-se .rt-td.rthfc-td-fixed{position:relative;z-Index:1}.react-vis-magic-css-import-rule{display:inherit}.rv-treemap{font-size:12px;position:relative}.rv-treemap__leaf{overflow:hidden;position:absolute}.rv-treemap__leaf--circle{align-items:center;border-radius:100%;display:flex;justify-content:center}.rv-treemap__leaf__content{overflow:hidden;padding:10px;text-overflow:ellipsis}.rv-xy-plot{color:#c3c3c3;position:relative}.rv-xy-plot canvas{pointer-events:none}.rv-xy-plot .rv-xy-canvas{pointer-events:none;position:absolute}.rv-xy-plot__inner{display:block}.rv-xy-plot__axis__line{fill:none;stroke-width:2px;stroke:#e6e6e9}.rv-xy-plot__axis__tick__line{stroke:#e6e6e9}.rv-xy-plot__axis__tick__text,.rv-xy-plot__axis__title text{fill:#6b6b76;font-size:11px}.rv-xy-plot__grid-lines__line{stroke:#e6e6e9}.rv-xy-plot__circular-grid-lines__line{fill-opacity:0;stroke:#e6e6e9}.rv-xy-plot__series,.rv-xy-plot__series path{pointer-events:all}.rv-xy-plot__series--line{fill:none;stroke:#000;stroke-width:2px}.rv-crosshair{position:absolute;font-size:11px;pointer-events:none}.rv-crosshair__line{background:#47d3d9;width:1px}.rv-crosshair__inner{position:absolute;text-align:left;top:0}.rv-crosshair__inner__content{border-radius:4px;background:#3a3a48;color:#fff;font-size:12px;padding:7px 10px;box-shadow:0 2px 4px rgba(0,0,0,.5)}.rv-crosshair__inner--left{right:4px}.rv-crosshair__inner--right{left:4px}.rv-crosshair__title{font-weight:700;white-space:nowrap}.rv-crosshair__item{white-space:nowrap}.rv-hint{position:absolute;pointer-events:none}.rv-hint__content{border-radius:4px;padding:7px 10px;font-size:12px;background:#3a3a48;box-shadow:0 2px 4px rgba(0,0,0,.5);color:#fff;text-align:left;white-space:nowrap}.rv-discrete-color-legend{box-sizing:border-box;overflow-y:auto;font-size:12px}.rv-discrete-color-legend.horizontal{white-space:nowrap}.rv-discrete-color-legend-item{color:#3a3a48;border-radius:1px;padding:9px 10px}.rv-discrete-color-legend-item.horizontal{display:inline-block}.rv-discrete-color-legend-item.horizontal .rv-discrete-color-legend-item__title{margin-left:0;display:block}.rv-discrete-color-legend-item__color{display:inline-block;vertical-align:middle;overflow:visible}.rv-discrete-color-legend-item__color__path{stroke:#dcdcdc;stroke-width:2px}.rv-discrete-color-legend-item__title{margin-left:10px}.rv-discrete-color-legend-item.disabled{color:#b8b8b8}.rv-discrete-color-legend-item.clickable{cursor:pointer}.rv-discrete-color-legend-item.clickable:hover{background:#f9f9f9}.rv-search-wrapper{display:flex;flex-direction:column}.rv-search-wrapper__form{flex:0 1}.rv-search-wrapper__form__input{width:100%;color:#a6a6a5;border:1px solid #e5e5e4;padding:7px 10px;font-size:12px;box-sizing:border-box;border-radius:2px;margin:0 0 9px;outline:0}.rv-search-wrapper__contents{flex:1 1;overflow:auto}.rv-continuous-color-legend{font-size:12px}.rv-continuous-color-legend .rv-gradient{height:4px;border-radius:2px;margin-bottom:5px}.rv-continuous-size-legend{font-size:12px}.rv-continuous-size-legend .rv-bubbles{text-align:justify;overflow:hidden;margin-bottom:5px;width:100%}.rv-continuous-size-legend .rv-bubble{background:#d8d9dc;display:inline-block;vertical-align:bottom}.rv-continuous-size-legend .rv-spacer{display:inline-block;font-size:0;line-height:0;width:100%}.rv-legend-titles{height:16px;position:relative}.rv-legend-titles__center,.rv-legend-titles__left,.rv-legend-titles__right{position:absolute;white-space:nowrap;overflow:hidden}.rv-legend-titles__center{display:block;text-align:center;width:100%}.rv-legend-titles__right{right:0}.rv-radial-chart .rv-xy-plot__series--label{pointer-events:none} \ No newline at end of file diff --git a/benchexec/tablegenerator/react-table/build/vendors.min.js b/benchexec/tablegenerator/react-table/build/vendors.min.js new file mode 100644 index 000000000..506228300 --- /dev/null +++ b/benchexec/tablegenerator/react-table/build/vendors.min.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(e,t,n){e.exports=n(100)()},function(e,t,n){"use strict";e.exports=n(94)},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t1;)try{return c.stringifyByChunk(e,r,n)}catch(o){n=Math.floor(n/2)}return c.stringifyByChar(e)}function h(e,t){for(var n=0;n0)){if(o/=h,h<0){if(o0){if(o>f)return;o>c&&(c=o)}if(o=r-u,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>c&&(c=o)}else if(h>0){if(o0)){if(o/=d,d<0){if(o0){if(o>f)return;o>c&&(c=o)}if(o=i-l,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>c&&(c=o)}else if(d>0){if(o0||f<1)||(c>0&&(e[0]=[u+c*h,l+c*d]),f<1&&(e[1]=[u+f*h,l+f*d]),!0)}}}}}function b(e,t,n,r,i){var o=e[1];if(o)return!0;var a,s,u=e[0],l=e.left,c=e.right,f=l[0],h=l[1],d=c[0],p=c[1],y=(f+d)/2,m=(h+p)/2;if(p===h){if(y=r)return;if(f>d){if(u){if(u[1]>=i)return}else u=[y,n];o=[y,i]}else{if(u){if(u[1]1)if(f>d){if(u){if(u[1]>=i)return}else u=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(u){if(u[1]=r)return}else u=[t,a*t+s];o=[r,a*r+s]}else{if(u){if(u[0]=-B)){var d=u*u+l*l,p=c*c+f*f,y=(f*d-l*p)/h,m=(u*p-c*d)/h,g=E.pop()||new O;g.arc=e,g.site=i,g.x=y+a,g.y=(g.cy=m+s)+Math.sqrt(y*y+m*m),e.circle=g;for(var v=null,b=F._;b;)if(g.yU)s=s.L;else{if(!((i=o-L(s,a))>U)){r>-U?(t=s.P,n=s):i>-U?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){D[e.index]={site:e,halfedges:[]}}(e);var u=N(e);if(j.insert(t,u),t||n){if(t===n)return S(t),n=N(t.site),j.insert(u,n),u.edge=n.edge=y(t.site,u.site),k(t),void k(n);if(n){S(t),S(n);var l=t.site,c=l[0],f=l[1],h=e[0]-c,d=e[1]-f,p=n.site,m=p[0]-c,v=p[1]-f,b=2*(h*v-d*m),_=h*h+d*d,w=m*m+v*v,T=[(v*_-d*w)/b+c,(h*w-m*_)/b+f];g(n.edge,l,p,T),u.edge=y(l,e,null,T),n.edge=y(e,p,null,T),k(t),k(n)}else u.edge=y(t.site,u.site)}}function M(e,t){var n=e.site,r=n[0],i=n[1],o=i-t;if(!o)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site)[0],u=n[1],l=u-t;if(!l)return s;var c=s-r,f=1/o-1/l,h=c/l;return f?(-h+Math.sqrt(h*h-2*f*(c*c/(-2*l)-u+l/2+i-o/2)))/f+r:(r+s)/2}function L(e,t){var n=e.N;if(n)return M(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var j,D,F,z,U=1e-6,B=1e-12;function H(e,t){return t[1]-e[1]||t[0]-e[0]}function W(e,t){var n,r,i,o=e.sort(H).pop();for(z=[],D=new Array(e.length),j=new p,F=new p;;)if(i=x,o&&(!i||o[1]U||Math.abs(i[0][1]-i[1][1])>U)||delete z[o]}(a,s,u,l),function(e,t,n,r){var i,o,a,s,u,l,c,f,h,d,p,y,g=D.length,v=!0;for(i=0;iU||Math.abs(y-h)>U)&&(u.splice(s,0,z.push(m(a,d,Math.abs(p-e)U?[e,Math.abs(f-e)U?[Math.abs(h-r)U?[n,Math.abs(f-n)U?[Math.abs(h-t)=s)return null;var u=e-i.site[0],l=t-i.site[1],c=u*u+l*l;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var u=e-s[0],l=t-s[1],f=u*u+l*l;f>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=ee.exec(e))?le(parseInt(t[1],16)):(t=te.exec(e))?new de(t[1],t[2],t[3],1):(t=ne.exec(e))?new de(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=re.exec(e))?ce(t[1],t[2],t[3],t[4]):(t=ie.exec(e))?ce(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=oe.exec(e))?ye(t[1],t[2]/100,t[3]/100,1):(t=ae.exec(e))?ye(t[1],t[2]/100,t[3]/100,t[4]):se.hasOwnProperty(e)?le(se[e]):"transparent"===e?new de(NaN,NaN,NaN,0):null}function le(e){return new de(e>>16&255,e>>8&255,255&e,1)}function ce(e,t,n,r){return r<=0&&(e=t=n=NaN),new de(e,t,n,r)}function fe(e){return e instanceof K||(e=ue(e)),e?new de((e=e.rgb()).r,e.g,e.b,e.opacity):new de}function he(e,t,n,r){return 1===arguments.length?fe(e):new de(e,t,n,null==r?1:r)}function de(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function pe(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function ye(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ge(e,t,n,r)}function me(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ge)return new ge(e.h,e.s,e.l,e.opacity);if(e instanceof K||(e=ue(e)),!e)return new ge;if(e instanceof ge)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n0&&u<1?0:a,new ge(a,s,u,e.opacity)}(e):new ge(e,t,n,null==r?1:r)}function ge(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ve(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}G(K,ue,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),G(de,he,X(K,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new de(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new de(this.r*e,this.g*e,this.b*e,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"#"+pe(this.r)+pe(this.g)+pe(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"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===e?")":", "+e+")")}})),G(ge,me,X(K,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new ge(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new ge(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new de(ve(e>=240?e-240:e+120,i,r),ve(e,i,r),ve(e<120?e+240:e-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 be=Math.PI/180,_e=180/Math.PI,we=.96422,Te=1,xe=.82521,Ee=4/29,Oe=6/29,ke=3*Oe*Oe,Se=Oe*Oe*Oe;function Ce(e){if(e instanceof Ne)return new Ne(e.l,e.a,e.b,e.opacity);if(e instanceof De){if(isNaN(e.h))return new Ne(e.l,0,0,e.opacity);var t=e.h*be;return new Ne(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof de||(e=fe(e));var n,r,i=Me(e.r),o=Me(e.g),a=Me(e.b),s=Re((.2225045*i+.7168786*o+.0606169*a)/Te);return i===o&&o===a?n=r=s:(n=Re((.4360747*i+.3850649*o+.1430804*a)/we),r=Re((.0139322*i+.0971045*o+.7141733*a)/xe)),new Ne(116*s-16,500*(n-s),200*(s-r),e.opacity)}function Pe(e,t,n,r){return 1===arguments.length?Ce(e):new Ne(e,t,n,null==r?1:r)}function Ne(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Re(e){return e>Se?Math.pow(e,1/3):e/ke+Ee}function Ae(e){return e>Oe?e*e*e:ke*(e-Ee)}function Ie(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Me(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Le(e){if(e instanceof De)return new De(e.h,e.c,e.l,e.opacity);if(e instanceof Ne||(e=Ce(e)),0===e.a&&0===e.b)return new De(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*_e;return new De(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function je(e,t,n,r){return 1===arguments.length?Le(e):new De(e,t,n,null==r?1:r)}function De(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}G(Ne,Pe,X(K,{brighter:function(e){return new Ne(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Ne(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new de(Ie(3.1338561*(t=we*Ae(t))-1.6168667*(e=Te*Ae(e))-.4906146*(n=xe*Ae(n))),Ie(-.9787684*t+1.9161415*e+.033454*n),Ie(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),G(De,je,X(K,{brighter:function(e){return new De(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new De(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Ce(this).rgb()}}));var Fe=-.29227,ze=-.90649,Ue=1.97294,Be=Ue*ze,He=1.78277*Ue,We=1.78277*Fe- -.14861*ze;function Ve(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ye)return new Ye(e.h,e.s,e.l,e.opacity);e instanceof de||(e=fe(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(We*r+Be*t-He*n)/(We+Be-He),o=r-i,a=(Ue*(n-i)-Fe*o)/ze,s=Math.sqrt(a*a+o*o)/(Ue*i*(1-i)),u=s?Math.atan2(a,o)*_e-120:NaN;return new Ye(u<0?u+360:u,s,i,e.opacity)}(e):new Ye(e,t,n,null==r?1:r)}function Ye(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function qe(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}G(Ye,Ve,X(K,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Ye(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Ye(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*be,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new de(255*(t+n*(-.14861*r+1.78277*i)),255*(t+n*(Fe*r+ze*i)),255*(t+n*(Ue*r)),this.opacity)}}));var Ge=function(e){return function(){return e}};function Xe(e,t){return function(n){return e+n*t}}function Ke(e,t){var n=t-e;return n?Xe(e,n>180||n<-180?n-360*Math.round(n/360):n):Ge(isNaN(e)?t:e)}function Ze(e){return 1===(e=+e)?$e:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ge(isNaN(t)?n:t)}}function $e(e,t){var n=t-e;return n?Xe(e,n):Ge(isNaN(e)?t:e)}var Qe=function e(t){var n=Ze(t);function r(e,t){var r=n((e=he(e)).r,(t=he(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=$e(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Je(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=ro&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:nt(n,r)})),o=ot.lastIndex;return o180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:nt(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:nt(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,u),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:nt(e,n)},{i:s-2,x:nt(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(e){for(var t,n=-1,r=u.length;++n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["animatedProps"]);return t.reduce((function(e,t){return n.hasOwnProperty(t)&&(e[t]=n[t]),e}),{})}var St=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._motionEndHandler=function(){n.props.onEnd&&n.props.onEnd()},n._renderChildren=function(e){var t=e.i,r=n.props.children,i=n._interpolator,o=q.a.Children.only(r),a=i?i(t):i,s=a&&a.data||null;return s&&o.props._data&&(s=s.map((function(e,t){var n=o.props._data[t];return xt({},e,{parent:n.parent,children:n.children})}))),q.a.cloneElement(o,xt({},o.props,a,{data:s||o.props.data||null,_animation:Math.random()}))},n._updateInterpolator(e),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Tt(t,[{key:"componentWillUpdate",value:function(e){this._updateInterpolator(this.props,e),e.onStart&&e.onStart()}},{key:"_updateInterpolator",value:function(e,t){this._interpolator=ft(kt(e),t?kt(t):null)}},{key:"render",value:function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wt.presets.noWobble;if("string"===typeof e)return wt.presets[e]||wt.presets.noWobble;var t=e.damping,n=e.stiffness;return xt({damping:t||wt.presets.noWobble.damping,stiffness:n||wt.presets.noWobble.stiffness},e)}(this.props.animation),t={i:Object(wt.spring)(1,e)},n=Math.random();return q.a.createElement(wt.Motion,xt({defaultStyle:{i:0},style:t,key:n},{onRest:this._motionEndHandler}),this._renderChildren)}}]),t}(Y.PureComponent);St.propTypes=Ot,St.displayName="Animation";var Ct=St,Pt=Et,Nt=function(e,t){return et?1:e>=t?0:NaN},Rt=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Nt(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)>0?i=o:r=o+1}return r}}};var At=Rt(Nt),It=At.right,Mt=(At.left,It);var Lt=function(e,t){var n,r,i,o=e.length,a=-1;if(null==t){for(;++a=n)for(r=i=n;++an&&(r=n),i=n)for(r=i=n;++an&&(r=n),i0)return[e];if((r=t0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s=0?(o>=Ft?10:o>=zt?5:o>=Ut?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Ft?10:o>=zt?5:o>=Ut?2:1)}function Wt(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ft?i*=10:o>=zt?i*=5:o>=Ut&&(i*=2),t=n)for(r=n;++or&&(r=n)}else for(;++o=n)for(r=n;++or&&(r=n);return r},qt=function(e){for(var t,n,r,i=e.length,o=-1,a=0;++o=0;)for(t=(r=e[i]).length;--t>=0;)n[--a]=r[t];return n},Gt=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o=n)for(r=n;++on&&(r=n)}else for(;++o=n)for(r=n;++on&&(r=n);return r},Xt=function(e,t){var n,r=e.length,i=-1,o=0;if(null==t)for(;++i=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var u,l,c,f=-1,h=n.length,d=r[i++],p=$t(),y=a();++fr.length)return n;var a,s=i[o-1];return null!=t&&o>=r.length?a=n.entries():(a=[],n.each((function(t,n){a.push({key:n,values:e(t,o)})}))),null!=s?a.sort((function(e,t){return s(e.key,t.key)})):a}(o(e,0,tn,nn),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return i[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}};function Jt(){return{}}function en(e,t,n){e[t]=n}function tn(){return $t()}function nn(e,t,n){e.set(t,n)}function rn(){}var on=$t.prototype;function an(e,t){var n=new rn;if(e instanceof rn)e.each((function(e){n.add(e)}));else if(e){var r=-1,i=e.length;if(null==t)for(;++r2?vn:gn,r=i=null,c}function c(t){return(r||(r=n(o,a,u?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,s)))(+t)}return c.invert=function(e){return(i||(i=n(a,o,mn,u?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},c.domain=function(e){return arguments.length?(o=ln.call(e,pn),l()):o.slice()},c.range=function(e){return arguments.length?(a=cn.call(e),l()):a.slice()},c.rangeRound=function(e){return a=cn.call(e),s=ht,l()},c.clamp=function(e){return arguments.length?(u=!!e,l()):u},c.interpolate=function(e){return arguments.length?(s=e,l()):s},l()}var wn=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},Tn=function(e){return(e=wn(Math.abs(e)))?e[1]:NaN},xn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function En(e){return new On(e)}function On(e){if(!(t=xn.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}En.prototype=On.prototype,On.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 kn,Sn,Cn,Pn,Nn=function(e){e:for(var t,n=e.length,r=1,i=-1;r0){if(!+e[r])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e},Rn=function(e,t){var n=wn(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},An={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Rn(100*e,t)},r:Rn,s:function(e,t){var n=wn(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(kn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+wn(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},In=function(e){return e},Mn=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];Sn=function(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var i=e.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}):In,i=e.currency,o=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):In,s=e.percent||"%";function u(e){var t=(e=En(e)).fill,n=e.align,u=e.sign,l=e.symbol,c=e.zero,f=e.width,h=e.comma,d=e.precision,p=e.trim,y=e.type;"n"===y?(h=!0,y="g"):An[y]||(null==d&&(d=12),p=!0,y="g"),(c||"0"===t&&"="===n)&&(c=!0,t="0",n="=");var m="$"===l?i[0]:"#"===l&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",g="$"===l?i[1]:/[%p]/.test(y)?s:"",v=An[y],b=/[defgprs%]/.test(y);function _(e){var i,s,l,_=m,w=g;if("c"===y)w=v(e)+w,e="";else{var T=(e=+e)<0;if(e=v(Math.abs(e),d),p&&(e=Nn(e)),T&&0===+e&&(T=!1),_=(T?"("===u?u:"-":"-"===u||"("===u?"":u)+_,w=("s"===y?Mn[8+kn/3]:"")+w+(T&&"("===u?")":""),b)for(i=-1,s=e.length;++i(l=e.charCodeAt(i))||l>57){w=(46===l?o+e.slice(i+1):e.slice(i))+w,e=e.slice(0,i);break}}h&&!c&&(e=r(e,1/0));var x=_.length+e.length+w.length,E=x>1)+_+e+w+E.slice(x);break;default:e=E+_+e+w}return a(e)}return d=null==d?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),_.toString=function(){return e+""},_}return{format:u,formatPrefix:function(e,t){var n=u(((e=En(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Tn(t)/3))),i=Math.pow(10,-r),o=Mn[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Cn=Sn.format,Pn=Sn.formatPrefix;var Ln=function(e,t,n){var r,i=e[0],o=e[e.length-1],a=Wt(i,o,null==t?10:t);switch((n=En(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Tn(t)/3)))-Tn(Math.abs(e)))}(a,s))||(n.precision=r),Pn(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Tn(t)-Tn(e))+1}(a,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(e){return Math.max(0,-Tn(Math.abs(e)))}(a))||(n.precision=r-2*("%"===n.type))}return Cn(n)};function jn(e){var t=e.domain;return e.ticks=function(e){var n=t();return Bt(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return Ln(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],u=i[a];return u0?r=Ht(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=Ht(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,t(i)),e},e}function Dn(){var e=_n(mn,nt);return e.copy=function(){return bn(e,Dn())},jn(e)}var Fn=function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return Gn.setTime(+t),Xn.setTime(+r),e(Gn),e(Xn),Math.floor(n(Gn,Xn))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}var Zn=Kn((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Zn.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Kn((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Zn:null};var $n=Zn,Qn=(Zn.range,6e4),Jn=6048e5,er=Kn((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()})),tr=er,nr=(er.range,Kn((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+t*Qn)}),(function(e,t){return(t-e)/Qn}),(function(e){return e.getMinutes()}))),rr=nr,ir=(nr.range,Kn((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*Qn)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}))),or=ir,ar=(ir.range,Kn((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qn)/864e5}),(function(e){return e.getDate()-1}))),sr=ar;ar.range;function ur(e){return Kn((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qn)/Jn}))}var lr=ur(0),cr=ur(1),fr=ur(2),hr=ur(3),dr=ur(4),pr=ur(5),yr=ur(6),mr=(lr.range,cr.range,fr.range,hr.range,dr.range,pr.range,yr.range,Kn((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),gr=mr,vr=(mr.range,Kn((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));vr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Kn((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var br=vr,_r=(vr.range,Kn((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Qn)}),(function(e,t){return(t-e)/Qn}),(function(e){return e.getUTCMinutes()}))),wr=_r,Tr=(_r.range,Kn((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()}))),xr=Tr,Er=(Tr.range,Kn((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),Or=Er;Er.range;function kr(e){return Kn((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Jn}))}var Sr=kr(0),Cr=kr(1),Pr=kr(2),Nr=kr(3),Rr=kr(4),Ar=kr(5),Ir=kr(6),Mr=(Sr.range,Cr.range,Pr.range,Nr.range,Rr.range,Ar.range,Ir.range,Kn((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),Lr=Mr,jr=(Mr.range,Kn((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));jr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Kn((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Dr=jr;jr.range;function Fr(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function zr(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ur(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}var Br,Hr,Wr,Vr,Yr={"-":"",_:" ",0:"0"},qr=/^\s*\d+/,Gr=/^%/,Xr=/[\\^$*+?|[\]().{}]/g;function Kr(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function ai(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function si(e,t,n){var r=qr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ui(e,t,n){var r=qr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function li(e,t,n){var r=qr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ci(e,t,n){var r=qr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function fi(e,t,n){var r=qr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function hi(e,t,n){var r=qr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function di(e,t,n){var r=qr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function pi(e,t,n){var r=qr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function yi(e,t,n){var r=Gr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function mi(e,t,n){var r=qr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function gi(e,t,n){var r=qr.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function vi(e,t){return Kr(e.getDate(),t,2)}function bi(e,t){return Kr(e.getHours(),t,2)}function _i(e,t){return Kr(e.getHours()%12||12,t,2)}function wi(e,t){return Kr(1+sr.count(br(e),e),t,3)}function Ti(e,t){return Kr(e.getMilliseconds(),t,3)}function xi(e,t){return Ti(e,t)+"000"}function Ei(e,t){return Kr(e.getMonth()+1,t,2)}function Oi(e,t){return Kr(e.getMinutes(),t,2)}function ki(e,t){return Kr(e.getSeconds(),t,2)}function Si(e){var t=e.getDay();return 0===t?7:t}function Ci(e,t){return Kr(lr.count(br(e),e),t,2)}function Pi(e,t){var n=e.getDay();return e=n>=4||0===n?dr(e):dr.ceil(e),Kr(dr.count(br(e),e)+(4===br(e).getDay()),t,2)}function Ni(e){return e.getDay()}function Ri(e,t){return Kr(cr.count(br(e),e),t,2)}function Ai(e,t){return Kr(e.getFullYear()%100,t,2)}function Ii(e,t){return Kr(e.getFullYear()%1e4,t,4)}function Mi(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Kr(t/60|0,"0",2)+Kr(t%60,"0",2)}function Li(e,t){return Kr(e.getUTCDate(),t,2)}function ji(e,t){return Kr(e.getUTCHours(),t,2)}function Di(e,t){return Kr(e.getUTCHours()%12||12,t,2)}function Fi(e,t){return Kr(1+Or.count(Dr(e),e),t,3)}function zi(e,t){return Kr(e.getUTCMilliseconds(),t,3)}function Ui(e,t){return zi(e,t)+"000"}function Bi(e,t){return Kr(e.getUTCMonth()+1,t,2)}function Hi(e,t){return Kr(e.getUTCMinutes(),t,2)}function Wi(e,t){return Kr(e.getUTCSeconds(),t,2)}function Vi(e){var t=e.getUTCDay();return 0===t?7:t}function Yi(e,t){return Kr(Sr.count(Dr(e),e),t,2)}function qi(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Rr(e):Rr.ceil(e),Kr(Rr.count(Dr(e),e)+(4===Dr(e).getUTCDay()),t,2)}function Gi(e){return e.getUTCDay()}function Xi(e,t){return Kr(Cr.count(Dr(e),e),t,2)}function Ki(e,t){return Kr(e.getUTCFullYear()%100,t,2)}function Zi(e,t){return Kr(e.getUTCFullYear()%1e4,t,4)}function $i(){return"+0000"}function Qi(){return"%"}function Ji(e){return+e}function eo(e){return Math.floor(+e/1e3)}!function(e){Br=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,l=$r(i),c=Qr(i),f=$r(o),h=Qr(o),d=$r(a),p=Qr(a),y=$r(s),m=Qr(s),g=$r(u),v=Qr(u),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:vi,e:vi,f:xi,H:bi,I:_i,j:wi,L:Ti,m:Ei,M:Oi,p:function(e){return i[+(e.getHours()>=12)]},Q:Ji,s:eo,S:ki,u:Si,U:Ci,V:Pi,w:Ni,W:Ri,x:null,X:null,y:Ai,Y:Ii,Z:Mi,"%":Qi},_={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Li,e:Li,f:Ui,H:ji,I:Di,j:Fi,L:zi,m:Bi,M:Hi,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Ji,s:eo,S:Wi,u:Vi,U:Yi,V:qi,w:Gi,W:Xi,x:null,X:null,y:Ki,Y:Zi,Z:$i,"%":Qi},w={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:ui,e:ui,f:pi,H:ci,I:ci,j:li,L:di,m:si,M:fi,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:mi,s:gi,S:hi,u:ei,U:ti,V:ni,w:Jr,W:ri,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:oi,Y:ii,Z:ai,"%":yi};function T(e,t){return function(n){var r,i,o,a=[],s=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=zr(Ur(o.y))).getUTCDay(),r=i>4||0===i?Cr.ceil(r):Cr(r),r=Or.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(Ur(o.y))).getDay(),r=i>4||0===i?cr.ceil(r):cr(r),r=sr.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?zr(Ur(o.y)).getUTCDay():t(Ur(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,zr(o)):t(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,u=n.length;a=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in Yr?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return(b.x=T(n,b),b.X=T(r,b),b.c=T(t,b),_.x=T(n,_),_.X=T(r,_),_.c=T(t,_),{format:function(e){var t=T(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",Fr);return t.toString=function(){return e},t},utcFormat:function(e){var t=T(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e,zr);return t.toString=function(){return e},t}})}(e),Hr=Br.format,Br.parse,Wr=Br.utcFormat,Vr=Br.utcParse}({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"]});Date.prototype.toISOString||Wr("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Vr("%Y-%m-%dT%H:%M:%S.%LZ");var to=1e3,no=60*to,ro=60*no,io=24*ro,oo=7*io,ao=30*io,so=365*io;function uo(e){return new Date(e)}function lo(e){return e instanceof Date?+e:+new Date(+e)}function co(e,t,n,r,i,o,a,s,u){var l=_n(mn,nt),c=l.invert,f=l.domain,h=u(".%L"),d=u(":%S"),p=u("%I:%M"),y=u("%I %p"),m=u("%a %d"),g=u("%b %d"),v=u("%B"),b=u("%Y"),_=[[a,1,to],[a,5,5*to],[a,15,15*to],[a,30,30*to],[o,1,no],[o,5,5*no],[o,15,15*no],[o,30,30*no],[i,1,ro],[i,3,3*ro],[i,6,6*ro],[i,12,12*ro],[r,1,io],[r,2,2*io],[n,1,oo],[t,1,ao],[t,3,3*ao],[e,1,so]];function w(s){return(a(s)0){for(;hu)break;y.push(f)}}else for(;h=1;--c)if(!((f=l*c)u)break;y.push(f)}}else y=Bt(h,d,Math.min(d-h,p)).map(o);return t?y.reverse():y},t.tickFormat=function(e,n){if(null==n&&(n=10===r?".0e":","),"function"!==typeof n&&(n=Cn(n)),e===1/0)return n;null==e&&(e=10);var a=Math.max(1,r*e/t.ticks().length);return function(e){var t=e/o(Math.round(i(e)));return t*rs-e.padding()*e.step())return e.domain()[e.domain().length-1];var u=Math.floor((t-a-e.padding()*e.step())/e.step());return e.domain()[u]})}(o)),o}function Ro(e,t,n,r){var i=e.reduce((function(e,r){var i=t(r),o=n(r);return Do(i)&&e.push(i),Do(o)&&e.push(o),e}),[]);return i.length?r!==To&&r!==xo?Lt(i):sn(i).values():[]}function Ao(e,t,n,r,i){return n===Eo?{type:Eo,domain:[],range:[t],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:r,accessor0:i}:"undefined"===typeof t?null:{type:xo,range:[t],domain:[],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:r,accessor0:i}}function Io(e,t){var n=t.domain,r=t.type,i=t.accessor,o=t.accessor0,a=function(e,t,n,r){return r===ko&&1===t.length?[n(e[0])].concat(bo(t)):t}(e,function(e,t){var n=new Set(e.map(t));return Array.from(n)}(e,i),o,r),s=function(e,t){var n=No(t),r=0;if(n)for(var i=void 0,o=n(e[0]),a=1/0,s=void 0,u=1;u1?(e[1]-e[0])/2:1===e.length?e[0]-.5:0}(a),u[n.length-1]+=function(e){return e.length>1?(e[e.length-1]-e[e.length-2])/2:1===e.length?e[0]-.5:0}(a),r===Oo&&n[0]<=0&&(u[0]=Math.min(n[1]/10,1));var l=function(e,t,n,r){if(e.length>1){var i=Math.max(n,1);return Math.abs(r(e[i])-r(e[i-1]))}return 1===e.length?Math.abs(r(t[1])-r(t[0])):0}(a,u,s,No(go({},t,{domain:u})));return{domain0:u[0],domainN:u[u.length-1],distance:l}}function Mo(e,t){var n=function(e,t){var n,r=e[t],i=e["_"+t+"Value"],o=e[t+"Range"],a=e[t+"Distance"],s=void 0===a?0:a,u=e[t+"BaseValue"],l=e[t+"Type"],c=void 0===l?wo:l,f=e[t+"NoFallBack"],h=e["get"+Po(t)],d=void 0===h?function(e){return e[t]}:h,p=e["get"+Po(t)+"0"],y=void 0===p?function(e){return e[t+"0"]}:p,m=e[t+"Domain"];return f||"undefined"===typeof r?("undefined"!==typeof u&&(m=function(e,t){var n=[].concat(e);return n[0]>t&&(n[0]=t),n[n.length-1]1?e.distance=Math.abs(t(n[1])-t(n[0])):e.distance=Math.abs(r[1]-r[0]),e}(n):function(e,t){var n=e._allData,r=e._adjustWhat,i=void 0===r?[]:r,o=t.domain.length,a=t.domain,s=a[0],u=a[o-1],l=t.distance;return n.forEach((function(e,n){if(-1!==i.indexOf(n)&&e&&e.length){var r=Io(e,t),o=r.domain0,a=r.domainN,c=r.distance;s=Math.min(s,o),u=Math.max(u,a),l=Math.max(l,c)}})),t.domain=[s].concat(bo(a.slice(1,-1)),[u]),t.distance=l,t}(e,n)}function Lo(e,t){return No(Mo(e,t))}function jo(e,t){return t(e.data?e.data:e)}function Do(e){return"undefined"!==typeof e}function Fo(e,t){var n=Mo(e,t);if(n){var r=No(n);return function(e){return r(jo(e,n.accessor))}}return null}function zo(e,t){var n=Mo(e,t);if(n){var r=n.domain,i=n.baseValue,o=void 0===i?r[0]:i,a=No(n);return function(e){var t=jo(e,n.accessor0);return a(Do(t)?t:o)}}return null}function Uo(e,t){var n=Mo(e,t);return n?(n.isValue||void 0!==e["_"+t+"Value"]||Object(po.b)("[React-vis] Cannot use data defined "+t+" for this series type. Using fallback value instead."),e["_"+t+"Value"]||n.range[0]):null}function Bo(e){var t;return _o(t={},"_"+e+"Value",o.a.any),_o(t,e+"Domain",o.a.array),_o(t,"get"+Po(e),o.a.func),_o(t,"get"+Po(e)+"0",o.a.func),_o(t,e+"Range",o.a.array),_o(t,e+"Type",o.a.oneOf(Object.keys(So))),_o(t,e+"Distance",o.a.number),_o(t,e+"BaseValue",o.a.any),t}function Ho(e,t){var n={};return Object.keys(e).forEach((function(r){t.find((function(e){var t=0===r.indexOf(e),n=0===r.indexOf("_"+e),i=0===r.indexOf("get"+Po(e));return t||n||i}))&&(n[r]=e[r])})),n}function Wo(e,t,n){var r={};return n.forEach((function(n){e["get"+Po(n)]||(r["get"+Po(n)]=function(e){return e[n]}),e["get"+Po(n)+"0"]||(r["get"+Po(n)+"0"]=function(e){return e[n+"0"]}),e[n+"Domain"]||(r[n+"Domain"]=Ro(t,e["get"+Po(n)]||r["get"+Po(n)],e["get"+Po(n)+"0"]||r["get"+Po(n)+"0"],e[n+"Type"]),e[n+"Padding"]&&(r[n+"Domain"]=function(e,t){if(!e)return e;if(isNaN(parseFloat(e[0]))||isNaN(parseFloat(e[1])))return e;var n=vo(e,2),r=n[0],i=n[1],o=.01*t*(i-r);return[r-o,i+o]}(r[n+"Domain"],e[n+"Padding"])))})),r}function Vo(e){function t(t){return void 0===t?e:t}function n(){return t}return t.domain=n,t.range=n,t.unknown=n,t.copy=n,t}function Yo(e){return e?me(e).l>.57?"#222":"#fff":null}function qo(e,t){var n=Co.reduce((function(t,n){var r=e[n+"Domain"],i=e[n+"Range"],o=e[n+"Type"];return r&&i&&o?go({},t,_o({},n,So[o]().domain(r).range(i))):t}),{});return t.map((function(e){return Co.reduce((function(t,r){if(e.props&&void 0!==e.props[r]){var i=e.props[r],o=n[r],a=o?o(i):i;return go({},t,_o({},"_"+r+"Value",a))}return t}),{})}))}var Go=["Padding"].map((function(e){return new RegExp(e+"$","i")}));function Xo(e){return Object.keys(e).reduce((function(t,n){return Go.every((function(e){return!n.match(e)}))?t:(t[n]=e[n],t)}),{})}var Ko=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.some((function(e){return e.radius&&e.angle}))}(e)?e.map((function(e){return aa({},e,{x:e.radius*Math.cos(e.angle),y:e.radius*Math.sin(e.angle)})})):e}(u);if(!t||!h||!h.length||n&&!f)return e.push(h),e;var d=t+"0",p="y"===t?"x":"y";return e.push(h.map((function(e,n){var i,o;r[c]||(r[c]={}),r[c][a]||(r[c][a]={});var s,u=r[c][a][e[p]];if(!u)return r[c][a][e[p]]=(sa(s={},d,e[d]),sa(s,t,e[t]),s),aa({},e);var l=aa({},e,(sa(i={},d,u[t]),sa(i,t,u[t]+e[t]-(e[d]||0)),i));return r[c][a][e[p]]=(sa(o={},d,l[d]),sa(o,t,l[t]),o),l}))),e}),[])}function fa(e){var t=[],n=function(e){var t={};return e.filter(ua).forEach((function(e){var n=e.type.displayName,r=e.props.cluster;t[n]||(t[n]={sameTypeTotal:0,sameTypeIndex:0,clusters:new Set}),t[n].clusters.add(r),t[n].sameTypeTotal++})),t}(e),r=0,i=ia;return e.forEach((function(e){var o=void 0;if(ua(e)){var a=n[e.type.displayName],s=ea[r%ea.length];o=aa({},a,{seriesIndex:r,_colorValue:s,_opacityValue:i}),a.sameTypeIndex++,r++,e.props.cluster&&(o.cluster=e.props.cluster,o.clusters=Array.from(a.clusters),o.sameTypeTotal=o.clusters.length,o.sameTypeIndex=o.clusters.indexOf(e.props.cluster))}t.push(o)})),t}function ha(e){return e.reduce((function(e,t){return Math.max(t.radius,e)}),0)}var da=["xRange","xDomain","x","yRange","yDomain","y","colorRange","colorDomain","color","opacityRange","opacityDomain","opacity","strokeRange","strokeDomain","stroke","fillRange","fillDomain","fill","width","height","marginLeft","marginTop","marginRight","marginBottom","data","angleDomain","angleRange","angle","radiusDomain","radiusRange","radius","innerRadiusDomain","innerRadiusRange","innerRadius"];function pa(e){var t=e._stackBy,n=e.valuePosAttr,r=e.cluster,i=e.sameTypeTotal,o=void 0===i?1:i,a=e.sameTypeIndex,s=void 0===a?0:a;return t!==n||r||(o=1,s=0),{sameTypeTotal:o,sameTypeIndex:s}}var ya=Math.PI,ma=2*ya,ga=ma-1e-6;function va(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ba(){return new va}va.prototype=ba.prototype={constructor:va,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,u=r-t,l=o-e,c=a-t,f=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6)if(Math.abs(c*s-u*l)>1e-6&&i){var h=n-o,d=r-a,p=s*s+u*u,y=h*h+d*d,m=Math.sqrt(p),g=Math.sqrt(f),v=i*Math.tan((ya-Math.acos((p+f-y)/(2*m*g)))/2),b=v/g,_=v/m;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*l)+","+(t+b*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>l*d)+","+(this._x1=e+_*s)+","+(this._y1=t+_*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=e+a,l=t+s,c=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+u+","+l),n&&(f<0&&(f=f%ma+ma),f>ga?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=ya)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var _a=ba,wa=function(e){return function(){return e}},Ta=Math.abs,xa=Math.atan2,Ea=Math.cos,Oa=Math.max,ka=Math.min,Sa=Math.sin,Ca=Math.sqrt,Pa=1e-12,Na=Math.PI,Ra=Na/2,Aa=2*Na;function Ia(e){return e>=1?Ra:e<=-1?-Ra:Math.asin(e)}function Ma(e){return e.innerRadius}function La(e){return e.outerRadius}function ja(e){return e.startAngle}function Da(e){return e.endAngle}function Fa(e){return e&&e.padAngle}function za(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/Ca(s*s+u*u),c=l*u,f=-l*s,h=e+c,d=t+f,p=n+c,y=r+f,m=(h+p)/2,g=(d+y)/2,v=p-h,b=y-d,_=v*v+b*b,w=i-o,T=h*y-p*d,x=(b<0?-1:1)*Ca(Oa(0,w*w*_-T*T)),E=(T*b-v*x)/_,O=(-T*v-b*x)/_,k=(T*b+v*x)/_,S=(-T*v+b*x)/_,C=E-m,P=O-g,N=k-m,R=S-g;return C*C+P*P>N*N+R*R&&(E=k,O=S),{cx:E,cy:O,x01:-c,y01:-f,x11:E*(i/w-1),y11:O*(i/w-1)}}var Ua=function(){var e=Ma,t=La,n=wa(0),r=null,i=ja,o=Da,a=Fa,s=null;function u(){var u,l,c,f=+e.apply(this,arguments),h=+t.apply(this,arguments),d=i.apply(this,arguments)-Ra,p=o.apply(this,arguments)-Ra,y=Ta(p-d),m=p>d;if(s||(s=u=_a()),hPa)if(y>Aa-Pa)s.moveTo(h*Ea(d),h*Sa(d)),s.arc(0,0,h,d,p,!m),f>Pa&&(s.moveTo(f*Ea(p),f*Sa(p)),s.arc(0,0,f,p,d,m));else{var g,v,b=d,_=p,w=d,T=p,x=y,E=y,O=a.apply(this,arguments)/2,k=O>Pa&&(r?+r.apply(this,arguments):Ca(f*f+h*h)),S=ka(Ta(h-f)/2,+n.apply(this,arguments)),C=S,P=S;if(k>Pa){var N=Ia(k/f*Sa(O)),R=Ia(k/h*Sa(O));(x-=2*N)>Pa?(w+=N*=m?1:-1,T-=N):(x=0,w=T=(d+p)/2),(E-=2*R)>Pa?(b+=R*=m?1:-1,_-=R):(E=0,b=_=(d+p)/2)}var A=h*Ea(b),I=h*Sa(b),M=f*Ea(T),L=f*Sa(T);if(S>Pa){var j,D=h*Ea(_),F=h*Sa(_),z=f*Ea(w),U=f*Sa(w);if(y1?0:c<-1?Na:Math.acos(c))/2),q=Ca(j[0]*j[0]+j[1]*j[1]);C=ka(S,(f-q)/(Y-1)),P=ka(S,(h-q)/(Y+1))}}E>Pa?P>Pa?(g=za(z,U,A,I,h,P,m),v=za(D,F,M,L,h,P,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),PPa&&x>Pa?C>Pa?(g=za(M,L,D,F,f,-C,m),v=za(A,I,z,U,f,-C,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),C=c;--f)s.point(m[f],g[f]);s.lineEnd(),s.areaEnd()}y&&(m[l]=+e(h,l,u),g[l]=+n(h,l,u),s.point(t?+t(h,l,u):m[l],r?+r(h,l,u):g[l]))}if(d)return s=null,d+""||null}function l(){return Ya().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(e="function"===typeof n?n:wa(+n),t=null,u):e},u.x0=function(t){return arguments.length?(e="function"===typeof t?t:wa(+t),u):e},u.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:wa(+e),u):t},u.y=function(e){return arguments.length?(n="function"===typeof e?e:wa(+e),r=null,u):n},u.y0=function(e){return arguments.length?(n="function"===typeof e?e:wa(+e),u):n},u.y1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:wa(+e),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(n)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(t).y(n)},u.defined=function(e){return arguments.length?(i="function"===typeof e?e:wa(!!e),u):i},u.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),u):a},u.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),u):o},u},Ga=function(e,t){return te?1:t>=e?0:NaN},Xa=function(e){return e},Ka=function(){var e=Xa,t=Ga,n=null,r=wa(0),i=wa(Aa),o=wa(0);function a(a){var s,u,l,c,f,h=a.length,d=0,p=new Array(h),y=new Array(h),m=+r.apply(this,arguments),g=Math.min(Aa,Math.max(-Aa,i.apply(this,arguments)-m)),v=Math.min(Math.abs(g)/h,o.apply(this,arguments)),b=v*(g<0?-1:1);for(s=0;s0&&(d+=f);for(null!=t?p.sort((function(e,n){return t(y[e],y[n])})):null!=n&&p.sort((function(e,t){return n(a[e],a[t])})),s=0,l=d?(g-h*b)/d:0;s0?f*l:0)+b,y[u]={data:a[u],index:s,value:f,startAngle:m,endAngle:c,padAngle:v};return y}return a.value=function(t){return arguments.length?(e="function"===typeof t?t:wa(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:wa(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"===typeof e?e:wa(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"===typeof e?e:wa(+e),a):o},a},Za=Qa(Ha);function $a(e){this._curve=e}function Qa(e){function t(t){return new $a(e(t))}return t._curve=e,t}function Ja(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(Qa(e)):t()._curve},e}$a.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var es=function(){return Ja(Ya().curve(Za))},ts=function(){var e=qa().curve(Za),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Ja(n())},delete e.lineX0,e.lineEndAngle=function(){return Ja(r())},delete e.lineX1,e.lineInnerRadius=function(){return Ja(i())},delete e.lineY0,e.lineOuterRadius=function(){return Ja(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(Qa(e)):t()._curve},e},ns=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},rs=Array.prototype.slice;function is(e){return e.source}function os(e){return e.target}function as(e){var t=is,n=os,r=Wa,i=Va,o=null;function a(){var a,s=rs.call(arguments),u=t.apply(this,s),l=n.apply(this,s);if(o||(o=a=_a()),e(o,+r.apply(this,(s[0]=u,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"===typeof e?e:wa(+e),a):r},a.y=function(e){return arguments.length?(i="function"===typeof e?e:wa(+e),a):i},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a}function ss(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function us(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function ls(e,t,n,r,i){var o=ns(t,n),a=ns(t,n=(n+i)/2),s=ns(r,n),u=ns(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function cs(){return as(ss)}function fs(){return as(us)}function hs(){var e=as(ls);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var ds={draw:function(e,t){var n=Math.sqrt(t/Na);e.moveTo(n,0),e.arc(0,0,n,0,Aa)}},ps={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},ys=Math.sqrt(1/3),ms=2*ys,gs={draw:function(e,t){var n=Math.sqrt(t/ms),r=n*ys;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},vs=Math.sin(Na/10)/Math.sin(7*Na/10),bs=Math.sin(Aa/10)*vs,_s=-Math.cos(Aa/10)*vs,ws={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=bs*n,i=_s*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=Aa*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},Ts={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},xs=Math.sqrt(3),Es={draw:function(e,t){var n=-Math.sqrt(t/(3*xs));e.moveTo(0,2*n),e.lineTo(-xs*n,-n),e.lineTo(xs*n,-n),e.closePath()}},Os=Math.sqrt(3)/2,ks=1/Math.sqrt(12),Ss=3*(ks/2+1),Cs={draw:function(e,t){var n=Math.sqrt(t/Ss),r=n/2,i=n*ks,o=r,a=n*ks+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(-.5*r-Os*i,Os*r+-.5*i),e.lineTo(-.5*o-Os*a,Os*o+-.5*a),e.lineTo(-.5*s-Os*u,Os*s+-.5*u),e.lineTo(-.5*r+Os*i,-.5*i-Os*r),e.lineTo(-.5*o+Os*a,-.5*a-Os*o),e.lineTo(-.5*s+Os*u,-.5*u-Os*s),e.closePath()}},Ps=[ds,ps,gs,Ts,ws,Es,Cs],Ns=function(){var e=wa(ds),t=wa(64),n=null;function r(){var r;if(n||(n=r=_a()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"===typeof t?t:wa(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:wa(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},Rs=function(){};function As(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Is(e){this._context=e}Is.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:As(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:As(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Ms=function(e){return new Is(e)};function Ls(e){this._context=e}Ls.prototype={areaStart:Rs,areaEnd:Rs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:As(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var js=function(e){return new Ls(e)};function Ds(e){this._context=e}Ds.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:As(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Fs=function(e){return new Ds(e)};function zs(e,t){this._basis=new Is(e),this._beta=t}zs.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*a),this._beta*t[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Us=function e(t){function n(e){return 1===t?new Is(e):new zs(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Bs(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Hs(e,t){this._context=e,this._k=(1-t)/6}Hs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Bs(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Bs(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ws=function e(t){function n(e){return new Hs(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Vs(e,t){this._context=e,this._k=(1-t)/6}Vs.prototype={areaStart:Rs,areaEnd:Rs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Bs(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ys=function e(t){function n(e){return new Vs(e,t)}return n.tension=function(t){return e(+t)},n}(0);function qs(e,t){this._context=e,this._k=(1-t)/6}qs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Bs(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Gs=function e(t){function n(e){return new qs(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Xs(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>Pa){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Pa){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function Ks(e,t){this._context=e,this._alpha=t}Ks.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Xs(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Zs=function e(t){function n(e){return t?new Ks(e,t):new Hs(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function $s(e,t){this._context=e,this._alpha=t}$s.prototype={areaStart:Rs,areaEnd:Rs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Xs(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Qs=function e(t){function n(e){return t?new $s(e,t):new Vs(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Js(e,t){this._context=e,this._alpha=t}Js.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Xs(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var eu=function e(t){function n(e){return t?new Js(e,t):new qs(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function tu(e){this._context=e}tu.prototype={areaStart:Rs,areaEnd:Rs,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var nu=function(e){return new tu(e)};function ru(e){return e<0?-1:1}function iu(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(ru(o)+ru(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function ou(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function au(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function su(e){this._context=e}function uu(e){this._context=new lu(e)}function lu(e){this._context=e}function cu(e){return new su(e)}function fu(e){return new uu(e)}function hu(e){this._context=e}function du(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var mu=function(e){return new yu(e,.5)};function gu(e){return new yu(e,0)}function vu(e){return new yu(e,1)}var bu=function(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n};function wu(e,t){return e[t]}var Tu=function(){var e=wa([]),t=_u,n=bu,r=wu;function i(i){var o,a,s=e.apply(this,arguments),u=i.length,l=s.length,c=new Array(l);for(o=0;o0){for(var n,r,i,o=0,a=e[0].length;o0)for(var n,r,i,o,a,s,u=0,l=e[t[0]].length;u=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=o},Ou=function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;ao&&(o=t,r=n);return r}var Pu=function(e){var t=e.map(Nu);return _u(e).sort((function(e,n){return t[e]-t[n]}))};function Nu(e){for(var t,n=0,r=-1,i=e.length;++r300?10:5:20}function Ju(e,t,n){return n||(e.ticks?e.ticks(t):e.domain())}var el=Object.assign||function(e){for(var t=1;tc[1])?e:e.concat([q.a.createElement("circle",el({cx:0,cy:0,r:r},{key:n,className:"rv-xy-plot__circular-grid-lines__line",style:f}))])}),[]))}}]),t}(Y.PureComponent);rl.displayName="CircularGridLines",rl.propTypes={centerX:o.a.number,centerY:o.a.number,width:o.a.number,height:o.a.number,top:o.a.number,left:o.a.number,rRange:o.a.arrayOf(o.a.number),style:o.a.object,tickValues:o.a.arrayOf(o.a.number),tickTotal:o.a.number,animation:Pt,marginTop:o.a.number,marginBottom:o.a.number,marginLeft:o.a.number,marginRight:o.a.number,innerWidth:o.a.number,innerHeight:o.a.number},rl.defaultProps={centerX:0,centerY:0},rl.requiresSVG=!0;var il=Array.prototype.slice,ol=function(e,t){return e-t},al=function(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++tr!==d>r&&n<(h-l)*(r-c)/(d-c)+l&&(i=-i)}return i}function cl(e,t,n){var r,i,o,a;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])===(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(i=e[r=+(e[0]===t[0])],o=n[r],a=t[r],i<=o&&o<=a||a<=o&&o<=i)}var fl=function(){},hl=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],dl=function(){var e=1,t=1,n=Vt,r=s;function i(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(ol);else{var r=Lt(e),i=r[0],a=r[1];t=Wt(i,a,t),t=Dt(Math.floor(i/t)*t,Math.floor(a/t)*t,t)}return t.map((function(t){return o(e,t)}))}function o(n,i){var o=[],s=[];return function(n,r,i){var o,s,u,l,c,f,h=new Array,d=new Array;o=s=-1,l=n[0]>=r,hl[l<<1].forEach(p);for(;++o=r,hl[u|l<<1].forEach(p);hl[l<<0].forEach(p);for(;++s=r,c=n[s*e]>=r,hl[l<<1|c<<2].forEach(p);++o=r,f=c,c=n[s*e+o+1]>=r,hl[u|l<<1|c<<2|f<<3].forEach(p);hl[l|c<<3].forEach(p)}o=-1,c=n[s*e]>=r,hl[c<<2].forEach(p);for(;++o=r,hl[c<<2|f<<3].forEach(p);function p(e){var t,n,r=[e[0][0]+o,e[0][1]+s],u=[e[1][0]+o,e[1][1]+s],l=a(r),c=a(u);(t=d[l])?(n=h[c])?(delete d[t.end],delete h[n.start],t===n?(t.ring.push(u),i(t.ring)):h[t.start]=d[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete d[t.end],t.ring.push(u),d[t.end=c]=t):(t=h[c])?(n=d[l])?(delete h[t.start],delete d[n.end],t===n?(t.ring.push(u),i(t.ring)):h[n.start]=d[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete h[t.start],t.ring.unshift(r),h[t.start=l]=t):h[l]=d[c]={start:l,end:c,ring:[r,u]}}hl[c<<3].forEach(p)}(n,i,(function(e){r(e,n,i),al(e)>0?o.push([e]):s.push(e)})),s.forEach((function(e){for(var t,n=0,r=o.length;n0&&a0&&s0)||!(o>0))throw new Error("invalid size");return e=r,t=o,i},i.thresholds=function(e){return arguments.length?(n="function"===typeof e?e:Array.isArray(e)?sl(il.call(e)):sl(e),i):n},i.smooth=function(e){return arguments.length?(r=e?s:fl,i):r===s},i};function pl(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),a=0;a=n&&(s>=o&&(u-=e.data[s-o+a*r]),t.data[s-n+a*r]=u/Math.min(s+1,r-1+o-s,o))}function yl(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),a=0;a=n&&(s>=o&&(u-=e.data[a+(s-o)*r]),t.data[a+(s-n)*r]=u/Math.min(s+1,i-1+o-s,o))}function ml(e){return e[0]}function gl(e){return e[1]}function vl(){return 1}var bl=function(){return new _l};function _l(){this.reset()}_l.prototype={constructor:_l,reset:function(){this.s=this.t=0},add:function(e){Tl(wl,e,this.t),Tl(this,wl.s,this.s),this.s?this.t+=wl.t:this.s=wl.t},valueOf:function(){return this.s}};var wl=new _l;function Tl(e,t,n){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}var xl=1e-6,El=Math.PI,Ol=El/2,kl=El/4,Sl=2*El,Cl=El/180,Pl=Math.abs,Nl=Math.atan,Rl=Math.atan2,Al=Math.cos,Il=(Math.ceil,Math.exp),Ml=(Math.floor,Math.log),Ll=(Math.pow,Math.sin),jl=(Math.sign,Math.sqrt),Dl=Math.tan;function Fl(e){return e>1?0:e<-1?El:Math.acos(e)}function zl(e){return e>1?Ol:e<-1?-Ol:Math.asin(e)}function Ul(){}function Bl(e,t){e&&Wl.hasOwnProperty(e.type)&&Wl[e.type](e,t)}var Hl={Feature:function(e,t){Bl(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++rEl?e+Math.round(-e/Sl)*Sl:e,t]}Zl.invert=Zl;var $l=function(){var e,t=[];return{point:function(t,n){e.push([t,n])},lineStart:function(){t.push(e=[])},lineEnd:Ul,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},Ql=function(e,t){return Pl(e[0]-t[0])=0;--o)i.point((c=l[o])[0],c[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 tc(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r=0?1:-1,O=E*x,k=O>El,S=y*w;if(nc.add(Rl(S*E*Ll(O),m*T+S*Al(O))),a+=k?x+E*Sl:x,k^d>=n^b>=n){var C=Xl(Gl(h),Gl(v));Kl(C);var P=Xl(o,C);Kl(P);var N=(k^x>=0?-1:1)*zl(P[2]);(r>N||r===N&&(C[0]||C[1]))&&(s+=k^x>=0?1:-1)}}return(a<-xl||a0){for(f||(i.polygonStart(),f=!0),i.lineStart(),e=0;e1&&2&u&&h.push(h.pop().concat(h.shift())),a.push(h.filter(oc))}return h}};function oc(e){return e.length>1}function ac(e,t){return((e=e.x)[0]<0?e[1]-Ol-xl:Ol-e[1])-((t=t.x)[0]<0?t[1]-Ol-xl:Ol-t[1])}ic((function(){return!0}),(function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?El:-El,u=Pl(o-n);Pl(u-El)0?Ol:-Ol),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&u>=El&&(Pl(n-i)xl?Nl((Ll(t)*(o=Al(r))*Ll(n)-Ll(r)*(i=Al(t))*Ll(e))/(i*o*a)):(t+r)/2}(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=o,r=a),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var i;if(null==e)i=n*Ol,r.point(-El,i),r.point(0,i),r.point(El,i),r.point(El,0),r.point(El,-i),r.point(0,-i),r.point(-El,-i),r.point(-El,0),r.point(-El,i);else if(Pl(e[0]-t[0])>xl){var o=e[0]Tc&&(Tc=e);txc&&(xc=t)},lineStart:Ul,lineEnd:Ul,polygonStart:Ul,polygonEnd:Ul,result:function(){var e=[[_c,wc],[Tc,xc]];return Tc=xc=-(wc=_c=1/0),e}},Pc=0,Nc=0,Rc=0,Ac=0,Ic=0,Mc=0,Lc=0,jc=0,Dc=0,Fc={point:zc,lineStart:Uc,lineEnd:Wc,polygonStart:function(){Fc.lineStart=Vc,Fc.lineEnd=Yc},polygonEnd:function(){Fc.point=zc,Fc.lineStart=Uc,Fc.lineEnd=Wc},result:function(){var e=Dc?[Lc/Dc,jc/Dc]:Mc?[Ac/Mc,Ic/Mc]:Rc?[Pc/Rc,Nc/Rc]:[NaN,NaN];return Pc=Nc=Rc=Ac=Ic=Mc=Lc=jc=Dc=0,e}};function zc(e,t){Pc+=e,Nc+=t,++Rc}function Uc(){Fc.point=Bc}function Bc(e,t){Fc.point=Hc,zc(kc=e,Sc=t)}function Hc(e,t){var n=e-kc,r=t-Sc,i=jl(n*n+r*r);Ac+=i*(kc+e)/2,Ic+=i*(Sc+t)/2,Mc+=i,zc(kc=e,Sc=t)}function Wc(){Fc.point=zc}function Vc(){Fc.point=qc}function Yc(){Gc(Ec,Oc)}function qc(e,t){Fc.point=Gc,zc(Ec=kc=e,Oc=Sc=t)}function Gc(e,t){var n=e-kc,r=t-Sc,i=jl(n*n+r*r);Ac+=i*(kc+e)/2,Ic+=i*(Sc+t)/2,Mc+=i,Lc+=(i=Sc*e-kc*t)*(kc+e),jc+=i*(Sc+t),Dc+=3*i,zc(kc=e,Sc=t)}var Xc=Fc;function Kc(e){this._context=e}Kc.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,Sl)}},result:Ul};var Zc,$c,Qc,Jc,ef,tf=bl(),nf={point:Ul,lineStart:function(){nf.point=rf},lineEnd:function(){Zc&&of($c,Qc),nf.point=Ul},polygonStart:function(){Zc=!0},polygonEnd:function(){Zc=null},result:function(){var e=+tf;return tf.reset(),e}};function rf(e,t){nf.point=of,$c=Jc=e,Qc=ef=t}function of(e,t){Jc-=e,ef-=t,tf.add(jl(Jc*Jc+ef*ef)),Jc=e,ef=t}var af=nf;function sf(){this._string=[]}function uf(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}sf.prototype={_radius:4.5,_circle:uf(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=uf(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};function lf(e){return function(t){var n=new cf;for(var r in e)n[r]=e[r];return n.stream=t,n}}function cf(){}cf.prototype={constructor:cf,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};Al(30*Cl);lf({point:function(e,t){this.stream.point(e*Cl,t*Cl)}});function ff(e){return function(t,n){var r=Al(t),i=Al(n),o=e(r*i);return[o*i*Ll(t),o*Ll(n)]}}function hf(e){return function(t,n){var r=jl(t*t+n*n),i=e(r),o=Ll(i),a=Al(i);return[Rl(t*o,r*a),zl(r&&n*o/r)]}}var df=ff((function(e){return jl(2/(1+e))}));df.invert=hf((function(e){return 2*zl(e/2)}));var pf=ff((function(e){return(e=Fl(e))&&e/Ll(e)}));pf.invert=hf((function(e){return e}));function yf(e,t){return[e,Ml(Dl((Ol+t)/2))]}yf.invert=function(e,t){return[e,2*Nl(Il(t))-Ol]};function mf(e,t){return[e,t]}mf.invert=mf;var gf=1.340264,vf=-.081106,bf=893e-6,_f=.003796,wf=jl(3)/2;function Tf(e,t){var n=zl(wf*Ll(t)),r=n*n,i=r*r*r;return[e*Al(n)/(wf*(gf+3*vf*r+i*(7*bf+9*_f*r))),n*(gf+vf*r+i*(bf+_f*r))]}Tf.invert=function(e,t){for(var n,r=t,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=n=(r*(gf+vf*i+o*(bf+_f*i))-t)/(gf+3*vf*i+o*(7*bf+9*_f*i)))*r)*i*i,!(Pl(n)<1e-12));++a);return[wf*e*(gf+3*vf*i+o*(7*bf+9*_f*i))/Al(r),zl(Ll(r)/wf)]};function xf(e,t){var n=Al(t),r=Al(e)*n;return[n*Ll(e)/r,Ll(t)/r]}xf.invert=hf(Nl);function Ef(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}Ef.invert=function(e,t){var n,r=t,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-t)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(Pl(n)>xl&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};function Of(e,t){return[Al(t)*Ll(e),Ll(t)]}Of.invert=hf(zl);function kf(e,t){var n=Al(t),r=1+Al(e)*n;return[n*Ll(e)/r,Ll(t)/r]}kf.invert=hf((function(e){return 2*Nl(e)}));function Sf(e,t){return[Ml(Dl((Ol+t)/2)),-e]}Sf.invert=function(e,t){return[-t,2*Nl(Il(e))-Ol]};var Cf=Object.assign||function(e){for(var t=1;t>a,l=i+2*s>>a,c=sl(20);function f(r){var i=new Float32Array(u*l),f=new Float32Array(u*l);r.forEach((function(r,o,c){var f=+e(r,o,c)+s>>a,h=+t(r,o,c)+s>>a,d=+n(r,o,c);f>=0&&f=0&&h>a),yl({width:u,height:l,data:f},{width:u,height:l,data:i},o>>a),pl({width:u,height:l,data:i},{width:u,height:l,data:f},o>>a),yl({width:u,height:l,data:f},{width:u,height:l,data:i},o>>a),pl({width:u,height:l,data:i},{width:u,height:l,data:f},o>>a),yl({width:u,height:l,data:f},{width:u,height:l,data:i},o>>a);var d=c(i);if(!Array.isArray(d)){var p=Yt(i);d=Wt(0,p,d),(d=Dt(0,Math.floor(p/d)*d,d)).shift()}return dl().thresholds(d).size([u,l])(i).map(h)}function h(e){return e.value*=Math.pow(2,-2*a),e.coordinates.forEach(d),e}function d(e){e.forEach(p)}function p(e){e.forEach(y)}function y(e){e[0]=e[0]*Math.pow(2,a)-s,e[1]=e[1]*Math.pow(2,a)-s}function m(){return u=r+2*(s=3*o)>>a,l=i+2*s>>a,f}return f.x=function(t){return arguments.length?(e="function"===typeof t?t:sl(+t),f):e},f.y=function(e){return arguments.length?(t="function"===typeof e?e:sl(+e),f):t},f.weight=function(e){return arguments.length?(n="function"===typeof e?e:sl(+e),f):n},f.size=function(e){if(!arguments.length)return[r,i];var t=Math.ceil(e[0]),n=Math.ceil(e[1]);if(!(t>=0)&&!(t>=0))throw new Error("invalid size");return r=t,i=n,m()},f.cellSize=function(e){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(e)/Math.LN2),m()},f.thresholds=function(e){return arguments.length?(c="function"===typeof e?e:Array.isArray(e)?sl(il.call(e)):sl(e),f):c},f.bandwidth=function(e){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*e*e+1)-1)/2),m()},f}().x((function(e){return h(e)})).y((function(e){return d(e)})).size([u,s]).bandwidth(r)(a),y=function(e,t){var n,r,i=4.5;function o(e){return e&&("function"===typeof i&&r.pointRadius(+i.apply(this,arguments)),ql(e,n(r))),r.result()}return o.area=function(e){return ql(e,n(bc)),bc.result()},o.measure=function(e){return ql(e,n(af)),af.result()},o.bounds=function(e){return ql(e,n(Cc)),Cc.result()},o.centroid=function(e){return ql(e,n(Xc)),Xc.result()},o.projection=function(t){return arguments.length?(n=null==t?(e=null,fc):(e=t).stream,o):e},o.context=function(e){return arguments.length?(r=null==e?(t=null,new sf):new Kc(t=e),"function"!==typeof i&&r.pointRadius(i),o):t},o.pointRadius=function(e){return arguments.length?(i="function"===typeof e?e:(r.pointRadius(+e),+e),o):i},o.projection(e).context(t)}(),m=function(e){return e.reduce((function(e,t){return{min:Math.min(e.min,t.value),max:Math.max(e.max,t.value)}}),{min:1/0,max:-1/0})}(p),g=m.min,v=m.max,b=Dn().domain([g,v]).range(o||na);return q.a.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--contour "+i,transform:"translate("+l+","+c+")"},p.map((function(e,t){return q.a.createElement("path",{className:"rv-xy-plot__series--contour-line",key:"rv-xy-plot__series--contour-line-"+t,d:y(e),style:Cf({fill:b(e.value)},f)})})))}}]),t}(Jo);Nf.propTypes=Cf({},Jo.propTypes,{animation:o.a.bool,bandwidth:o.a.number,className:o.a.string,marginLeft:o.a.number,marginTop:o.a.number,style:o.a.object}),Nf.defaultProps=Cf({},Jo.defaultProps,{bandwidth:40,style:{}});var Rf=Object.assign||function(e){for(var t=1;ta/2?"left":"right":f);return q.a.createElement("div",{className:"rv-crosshair "+n,style:{left:h+"px",top:d+"px"}},q.a.createElement("div",{className:"rv-crosshair__line",style:Rf({height:s+"px"},u.line)}),q.a.createElement("div",{className:p},t||q.a.createElement("div",{className:"rv-crosshair__inner__content",style:u.box},q.a.createElement("div",null,this._renderCrosshairTitle(),this._renderCrosshairItems()))))}}],[{key:"defaultProps",get:function(){return{titleFormat:If,itemsFormat:Mf,style:{line:{},title:{},box:{}}}}},{key:"propTypes",get:function(){return{className:o.a.string,values:o.a.arrayOf(o.a.oneOfType([o.a.number,o.a.string,o.a.object])),series:o.a.object,innerWidth:o.a.number,innerHeight:o.a.number,marginLeft:o.a.number,marginTop:o.a.number,orientation:o.a.oneOf(["left","right"]),itemsFormat:o.a.func,titleFormat:o.a.func,style:o.a.shape({line:o.a.object,title:o.a.object,box:o.a.object})}}}]),t}(Y.PureComponent);jf.displayName="Crosshair";var Df=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zf;switch(e){case"diamond":return q.a.createElement("polygon",{style:n,points:"0 0 "+t/2+" "+t/2+" 0 "+t+" "+-t/2+" "+t/2+" 0 0"});case"star":var r=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);te.y?Math.PI/2:3*Math.PI/2:Math.atan((t.y-e.y)/(t.x-e.x))}(r,i)+Math.PI/2;return u.map((function(e,t){var n=Hf({x1:0,y1:0,x2:a*Math.cos(l),y2:a*Math.sin(l)},s.ticks),r=Hf({x:a*Math.cos(l),y:a*Math.sin(l),textAnchor:"start"},s.text);return q.a.createElement("g",{key:t,transform:"translate("+e.x+", "+e.y+")",className:"rv-xy-plot__axis__tick"},q.a.createElement("line",Hf({},n,{className:"rv-xy-plot__axis__tick__line"})),q.a.createElement("text",Hf({},r,{className:"rv-xy-plot__axis__tick__text"}),o(e.text)))}))}var Vf=Object.assign||function(e){for(var t=1;t1){var y=c-d,m=d+(cv*v+b*b&&(d=m+(1&h?1:-1)/2,h=g)}var _=d+"-"+h,w=i[_];w?w.push(l):(o.push(w=i[_]=[l]),w.x=(d+(1&h)/2)*t,w.y=h*n)}return o}function c(e){var t=0,n=0;return hh.map((function(r){var i=Math.sin(r)*e,o=-Math.cos(r)*e,a=i-t,s=o-n;return t=i,n=o,[a,s]}))}return l.hexagon=function(t){return"m"+c(null==t?e:+t).join("l")+"z"},l.centers=function(){for(var s=[],u=Math.round(i/n),l=Math.round(r/t),c=u*n;cl),d=a&&(tf);return r&&i?h||d:r?h:!i||d}},{key:"_convertAreaToCoordinates",value:function(e){var t=this.props,n=t.enableX,r=t.enableY,i=t.marginLeft,o=t.marginTop,a=Lo(this.props,"x"),s=Lo(this.props,"y");return n&&r?{bottom:s.invert(e.bottom),left:a.invert(e.left-i),right:a.invert(e.right-i),top:s.invert(e.top)}:r?{bottom:s.invert(e.bottom-o),top:s.invert(e.top-o)}:n?{left:a.invert(e.left-i),right:a.invert(e.right-i)}:{}}},{key:"startBrushing",value:function(e){var t=this,n=this.props,r=n.onBrushStart,i=n.onDragStart,o=n.drag,a=this.state.dragArea,s=Th(e.nativeEvent),u=s.xLoc,l=s.yLoc,c=function(e,n){var r={bottom:l,left:u,right:u,top:l};t.setState({dragging:e,brushArea:a&&!n?a:r,brushing:!e,startLocX:u,startLocY:l})},f=this._clickedOutsideDrag(u,l);if(o&&!a||!o||f)return c(!1,f),void(r&&r(e));o&&a&&(c(!0,f),i&&i(e))}},{key:"stopBrushing",value:function(e){var t=this.state,n=t.brushing,r=t.dragging,i=t.brushArea;if(n||r){var o=this.props,a=o.onBrushEnd,s=o.onDragEnd,u=o.drag,l=Math.abs(i.right-i.left)<5,c=Math.abs(i.top-i.bottom)<5||l;this.setState({brushing:!1,dragging:!1,brushArea:u?i:{top:0,right:0,bottom:0,left:0},startLocX:0,startLocY:0,dragArea:u&&!c&&i}),n&&a&&a(c?null:this._convertAreaToCoordinates(i)),u&&s&&s(c?null:this._convertAreaToCoordinates(i))}}},{key:"onBrush",value:function(e){var t=this.props,n=t.onBrush,r=t.onDrag,i=t.drag,o=this.state,a=o.brushing,s=o.dragging,u=Th(e.nativeEvent),l=u.xLoc,c=u.yLoc;if(a){var f=this._getDrawArea(l,c);this.setState({brushArea:f}),n&&n(this._convertAreaToCoordinates(f))}if(i&&s){var h=this._getDragArea(l,c);this.setState({brushArea:h}),r&&r(this._convertAreaToCoordinates(h))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.color,r=t.className,i=t.highlightHeight,o=t.highlightWidth,a=t.highlightX,s=t.highlightY,u=t.innerWidth,l=t.innerHeight,c=t.marginLeft,f=t.marginRight,h=t.marginTop,d=t.marginBottom,p=t.opacity,y=this.state.brushArea,m=y.left,g=y.right,v=y.top,b=y.bottom,_=0;a&&(_=Lo(this.props,"x")(a));var w=0;s&&(w=Lo(this.props,"y")(s));var T=o||c+f+u,x=i||h+d+l;return q.a.createElement("g",{transform:"translate("+_+", "+w+")",className:r+" rv-highlight-container"},q.a.createElement("rect",{className:"rv-mouse-target",fill:"black",opacity:"0",x:"0",y:"0",width:Math.max(T,0),height:Math.max(x,0),onMouseDown:function(t){return e.startBrushing(t)},onMouseMove:function(t){return e.onBrush(t)},onMouseUp:function(t){return e.stopBrushing(t)},onMouseLeave:function(t){return e.stopBrushing(t)},onTouchEnd:function(t){t.preventDefault(),e.stopBrushing(t)},onTouchCancel:function(t){t.preventDefault(),e.stopBrushing(t)},onContextMenu:function(e){return e.preventDefault()},onContextMenuCapture:function(e){return e.preventDefault()}}),q.a.createElement("rect",{className:"rv-highlight",pointerEvents:"none",opacity:p,fill:n,x:m,y:v,width:Math.min(Math.max(0,g-m),T),height:Math.min(Math.max(0,b-v),x)}))}}]),t}(Jo);xh.displayName="HighlightOverlay",xh.defaultProps={color:"rgb(77, 182, 172)",className:"",enableX:!0,enableY:!0,opacity:.3},xh.propTypes=bh({},Jo.propTypes,{enableX:o.a.bool,enableY:o.a.bool,highlightHeight:o.a.number,highlightWidth:o.a.number,highlightX:o.a.oneOfType([o.a.string,o.a.number]),highlightY:o.a.oneOfType([o.a.string,o.a.number]),onBrushStart:o.a.func,onDragStart:o.a.func,onBrush:o.a.func,onDrag:o.a.func,onBrushEnd:o.a.func,onDragEnd:o.a.func});var Eh=xh,Oh=Object.assign||function(e){for(var t=1;tr/2?Sh.LEFT:Sh.RIGHT),u===Sh.AUTO&&(l.vertical=t>i/2?Sh.TOP:Sh.BOTTOM),l}},{key:"_getAlignClassNames",value:function(e){var t=this.props.orientation;return(t?"rv-hint--orientation-"+t:"")+" rv-hint--horizontalAlign-"+e.horizontal+"\n rv-hint--verticalAlign-"+e.vertical}},{key:"_getAlignStyle",value:function(e,t,n){return Oh({},this._getXCSS(e.horizontal,t),this._getYCSS(e.vertical,n))}},{key:"_getCSSBottom",value:function(e){if(void 0===e||null===e)return{bottom:0};var t=this.props,n=t.innerHeight;return{bottom:t.marginBottom+n-e}}},{key:"_getCSSLeft",value:function(e){return void 0===e||null===e?{left:0}:{left:this.props.marginLeft+e}}},{key:"_getCSSRight",value:function(e){if(void 0===e||null===e)return{right:0};var t=this.props,n=t.innerWidth;return{right:t.marginRight+n-e}}},{key:"_getCSSTop",value:function(e){return void 0===e||null===e?{top:0}:{top:this.props.marginTop+e}}},{key:"_getPositionInfo",value:function(){var e=this.props,t=e.value,n=e.getAlignStyle,r=Fo(this.props,"x")(t),i=Fo(this.props,"y")(t),o=this._getAlign(r,i);return{position:n?n(o,r,i):this._getAlignStyle(o,r,i),positionClassName:this._getAlignClassNames(o)}}},{key:"_getXCSS",value:function(e,t){switch(e){case Sh.LEFT_EDGE:return this._getCSSLeft(null);case Sh.RIGHT_EDGE:return this._getCSSRight(null);case Sh.LEFT:return this._getCSSRight(t);case Sh.RIGHT:default:return this._getCSSLeft(t)}}},{key:"_getYCSS",value:function(e,t){switch(e){case Sh.TOP_EDGE:return this._getCSSTop(null);case Sh.BOTTOM_EDGE:return this._getCSSBottom(null);case Sh.BOTTOM:return this._getCSSTop(t);case Sh.TOP:default:return this._getCSSBottom(t)}}},{key:"_mapOrientationToAlign",value:function(e){switch(e){case Ch.BOTTOM_LEFT:return{horizontal:Sh.LEFT,vertical:Sh.BOTTOM};case Ch.BOTTOM_RIGHT:return{horizontal:Sh.RIGHT,vertical:Sh.BOTTOM};case Ch.TOP_LEFT:return{horizontal:Sh.LEFT,vertical:Sh.TOP};case Ch.TOP_RIGHT:return{horizontal:Sh.RIGHT,vertical:Sh.TOP}}}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.format,r=e.children,i=e.style,o=e.className,a=this._getPositionInfo(),s=a.position,u=a.positionClassName;return q.a.createElement("div",{className:"rv-hint "+u+" "+o,style:Oh({},i,s,{position:"absolute"})},r||q.a.createElement("div",{className:"rv-hint__content",style:i.content},n(t).map((function(e,t){return q.a.createElement("div",{key:"rv-hint"+t,style:i.row},q.a.createElement("span",{className:"rv-hint__title",style:i.title},e.title),": ",q.a.createElement("span",{className:"rv-hint__value",style:i.value},e.value))}))))}}],[{key:"defaultProps",get:function(){return{format:Ph,align:{horizontal:Sh.AUTO,vertical:Sh.AUTO},style:{}}}},{key:"propTypes",get:function(){return{marginTop:o.a.number,marginLeft:o.a.number,innerWidth:o.a.number,innerHeight:o.a.number,scales:o.a.object,value:o.a.object,format:o.a.func,style:o.a.object,className:o.a.string,align:o.a.shape({horizontal:o.a.oneOf([Sh.AUTO,Sh.LEFT,Sh.RIGHT,Sh.LEFT_EDGE,Sh.RIGHT_EDGE]),vertical:o.a.oneOf([Sh.AUTO,Sh.BOTTOM,Sh.TOP,Sh.BOTTOM_EDGE,Sh.TOP_EDGE])}),getAlignStyle:o.a.func,orientation:o.a.oneOf([Ch.BOTTOM_LEFT,Ch.BOTTOM_RIGHT,Ch.TOP_LEFT,Ch.TOP_RIGHT])}}}]),t}(Y.PureComponent);Nh.displayName="Hint",Nh.ORIENTATION=Ch,Nh.ALIGN=Sh;var Rh=Nh,Ah=Object.assign||function(e){for(var t=1;t-1&&n_;if(!T&&!x)return null;var E=_p({opacity:i?i(t):ia,stroke:a&&a(t),strokeWidth:s||1},u),O=r/2,k={x1:m+y,y1:g,x2:v,y2:g,style:E},S={x1:m-y,y1:g,x2:b,y2:g,style:E},C={x1:v,y1:g-O,x2:v,y2:g+O,style:E},P={x1:b,y1:g-O,x2:b,y2:g+O,style:E},N={x1:m,y1:g-y,x2:m,y2:_,style:E},R={x1:m,y1:g+y,x2:m,y2:w,style:E},A={x1:m-O,y1:_,x2:m+O,y2:_,style:E},I={x1:m-O,y1:w,x2:m+O,y2:w,style:E};return q.a.createElement("g",{className:"mark-whiskers",key:n,onClick:function(e){return l(t,e)},onContextMenu:function(e){return h(t,e)},onMouseOver:function(e){return f(t,e)},onMouseOut:function(e){return c(t,e)}},T?q.a.createElement("g",{className:"x-whiskers"},q.a.createElement("line",k),q.a.createElement("line",S),q.a.createElement("line",C),q.a.createElement("line",P)):null,x?q.a.createElement("g",{className:"y-whiskers"},q.a.createElement("line",N),q.a.createElement("line",R),q.a.createElement("line",A),q.a.createElement("line",I)):null)}}(c)))}}]),t}(Jo);wp.displayName="WhiskerSeries",wp.propTypes=_p({},Jo.propTypes,{strokeWidth:o.a.number}),wp.defaultProps=_p({},Jo.defaultProps,{crossBarWidth:6,size:0,strokeWidth:1});var Tp=n(89),xp=n.n(Tp),Ep=Object.assign||function(e){for(var t=1;tRp&&clearInterval(o),i+=1):clearInterval(o)}),1)}(n,d,p,y):Ap(n,d,p,y)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.innerHeight,r=t.innerWidth,i=t.marginBottom,o=t.marginLeft,a=t.marginRight,s=t.marginTop,u=t.pixelRatio,l=n+s+i,c=r+o+a;return q.a.createElement("div",{style:{left:0,top:0},className:"rv-xy-canvas"},q.a.createElement("canvas",{className:"rv-xy-canvas-element",height:l*u,width:c*u,style:{height:l+"px",width:c+"px"},ref:function(t){return e.canvas=t}}),this.props.children)}}],[{key:"defaultProps",get:function(){return{pixelRatio:window&&window.devicePixelRatio||1}}}]),t}(Y.Component);Ip.displayName="CanvasWrapper",Ip.propTypes={marginBottom:o.a.number.isRequired,marginLeft:o.a.number.isRequired,marginRight:o.a.number.isRequired,marginTop:o.a.number.isRequired,innerHeight:o.a.number.isRequired,innerWidth:o.a.number.isRequired,pixelRatio:o.a.number.isRequired};var Mp=Ip,Lp=function(){function e(e,t){for(var n=0;n-1,b=v?"rv-xy-plot__axis--vertical":"rv-xy-plot__axis--horizontal",_=l,w=m;if(f){var T=Lo(r,i);v?_=T(0):w=c+T(0)}return q.a.createElement("g",{transform:"translate("+_+","+w+")",className:"rv-xy-plot__axis "+b+" "+o,style:p},!s&&q.a.createElement(Kp,{height:a,width:g,orientation:h,style:my({},p,p.line)}),!u&&q.a.createElement(oy,my({},r,{style:my({},p,p.ticks)})),y?q.a.createElement(yy,{position:d,title:y,height:a,width:g,style:my({},p,p.title),orientation:h}):null)}}]),t}(Y.PureComponent);Oy.displayName="Axis",Oy.propTypes=xy,Oy.defaultProps=Ey,Oy.requiresSVG=!0;var ky=Oy,Sy=Object.assign||function(e){for(var t=1;ts.max)&&(l=!1),{x:o,y:a}})),f=om+"-line",h={animation:t,className:l?f:f+" "+om+"-line-unselected",key:o+"-polygon",data:c,color:e.color||r[o%r.length],style:rm({},a.lines,e.style||{})};return l||(h.style=rm({},h.style,a.deselectedLineStyle)),s?q.a.createElement(Id,h):q.a.createElement(Ed,h)}))}({animation:r,brushFilters:t,colorRange:s,domains:l,data:u,showMarks:y,style:m}),w=q.a.createElement(bd,{animation:!0,key:o,className:om+"-label",data:sm({domains:l,style:m.labels})}),T=Op(this.props,Cp),x=T.marginLeft,E=T.marginRight;return q.a.createElement(Bp,{height:c,width:v,margin:h,dontCheckIfEmpty:!0,className:o+" "+om,onMouseLeave:d,onMouseEnter:p,xType:"ordinal",yDomain:[0,1]},a,b.concat(_).concat(w),i&&l.map((function(n){var r=function(r){var i,o,a;e.setState({brushFilters:rm({},t,(i={},o=n.name,a=r?{min:r.bottom,max:r.top}:null,o in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,i))})};return q.a.createElement(Eh,{key:n.name,drag:!0,highlightX:n.name,onBrushEnd:r,onDragEnd:r,highlightWidth:(v-x-E)/l.length,enableX:!1})})))}}]),t}(Y.Component);um.displayName="ParallelCoordinates",um.propTypes={animation:Pt,brushing:o.a.bool,className:o.a.string,colorType:o.a.string,colorRange:o.a.arrayOf(o.a.string),data:o.a.arrayOf(o.a.object).isRequired,domains:o.a.arrayOf(o.a.shape({name:o.a.string.isRequired,domain:o.a.arrayOf(o.a.number).isRequired,tickFormat:o.a.func})).isRequired,height:o.a.number.isRequired,margin:Sp,style:o.a.shape({axes:o.a.object,labels:o.a.object,lines:o.a.object}),showMarks:o.a.bool,tickFormat:o.a.func,width:o.a.number.isRequired},um.defaultProps={className:"",colorType:"category",colorRange:ea,style:{axes:{line:{},ticks:{},text:{}},labels:{fontSize:10,textAnchor:"middle"},lines:{strokeWidth:1,strokeOpacity:1},deselectedLineStyle:{strokeOpacity:.1}},tickFormat:am};var lm=Object.assign||function(e){for(var t=1;t0?Math.abs(e-.5)<=1e-12&&(e=.5):e<0&&Math.abs(e+.5)<=1e-12&&(e=-.5),e}function dm(e){var t=e.domains,n=e.startingAngle,r=e.style;return t.map((function(e,i){var o=e.name,a=i/t.length*Math.PI*2+n;return{x:1.2*Math.cos(a),y:1.2*Math.sin(a),label:o,style:r}}))}function pm(e){var t=e.animation,n=e.className,r=e.children,i=e.colorRange,o=e.data,a=e.domains,s=e.height,u=e.hideInnerMostValues,l=e.margin,c=e.onMouseLeave,f=e.onMouseEnter,h=e.startingAngle,d=e.style,p=e.tickFormat,y=e.width,m=e.renderAxesOverPolygons,g=e.onValueMouseOver,v=e.onValueMouseOut,b=e.onSeriesMouseOver,_=e.onSeriesMouseOut,w=function(e){var t=e.animation,n=e.domains,r=e.startingAngle,i=e.style,o=e.tickFormat,a=e.hideInnerMostValues;return n.map((function(e,s){var u=s/n.length*Math.PI*2+r,l=e.domain;return q.a.createElement(Kf,{animation:t,key:s+"-axis",axisStart:{x:0,y:0},axisEnd:{x:hm(Math.cos(u)),y:hm(Math.sin(u))},axisDomain:l,numberOfTicks:5,tickValue:function(t){return a&&t===l[0]?"":e.tickFormat?e.tickFormat(t):o(t)},style:i.axes})}))}({domains:a,animation:t,hideInnerMostValues:u,startingAngle:h,style:d,tickFormat:p}),T=function(e){var t=e.animation,n=e.colorRange,r=e.domains,i=e.data,o=e.style,a=e.startingAngle,s=e.onSeriesMouseOver,u=e.onSeriesMouseOut,l=r.reduce((function(e,t){var n=t.domain;return e[t.name]=Dn().domain(n).range([0,1]),e}),{});return i.map((function(e,i){var c=r.map((function(t,n){var i=t.name,o=t.getValue,s=o?o(e):e[i],u=n/r.length*Math.PI*2+a,c=Math.max(l[i](s),0);return{x:c*Math.cos(u),y:c*Math.sin(u),name:e.name}}));return q.a.createElement(Kd,{animation:t,className:cm+"-polygon",key:i+"-polygon",data:c,style:lm({stroke:e.color||e.stroke||n[i%n.length],fill:e.color||e.fill||n[i%n.length]},o.polygons),onSeriesMouseOver:s,onSeriesMouseOut:u})}))}({animation:t,colorRange:i,domains:a,data:o,startingAngle:h,style:d,onSeriesMouseOver:b,onSeriesMouseOut:_}),x=function(e){var t=e.animation,n=e.domains,r=e.data,i=e.startingAngle,o=e.style,a=e.onValueMouseOver,s=e.onValueMouseOut;if(a){var u=n.reduce((function(e,t){var n=t.domain;return e[t.name]=Dn().domain(n).range([0,1]),e}),{});return r.map((function(e,r){var l=n.map((function(t,r){var o=t.name,a=t.getValue,s=a?a(e):e[o],l=r/n.length*Math.PI*2+i,c=Math.max(u[o](s),0);return{x:c*Math.cos(l),y:c*Math.sin(l),domain:o,value:s,dataName:e.name}}));return q.a.createElement(Cd,{animation:t,className:cm+"-polygonPoint",key:r+"-polygonPoint",data:l,size:10,style:lm({},o.polygons,{fill:"transparent",stroke:"transparent"}),onValueMouseOver:a,onValueMouseOut:s})}))}}({animation:t,colorRange:i,domains:a,data:o,startingAngle:h,style:d,onValueMouseOver:g,onValueMouseOut:v}),E=q.a.createElement(bd,{animation:t,key:n,className:cm+"-label",data:dm({domains:a,style:d.labels,startingAngle:h})});return q.a.createElement(Bp,{height:s,width:y,margin:l,dontCheckIfEmpty:!0,className:n+" "+cm,onMouseLeave:c,onMouseEnter:f,xDomain:[-1,1],yDomain:[-1,1]},r,!m&&w.concat(T).concat(E).concat(x),m&&T.concat(E).concat(w).concat(x))}pm.displayName="RadarChart",pm.propTypes={animation:Pt,className:o.a.string,colorType:o.a.string,colorRange:o.a.arrayOf(o.a.string),data:o.a.arrayOf(o.a.object).isRequired,domains:o.a.arrayOf(o.a.shape({name:o.a.string.isRequired,domain:o.a.arrayOf(o.a.number).isRequired,tickFormat:o.a.func})).isRequired,height:o.a.number.isRequired,hideInnerMostValues:o.a.bool,margin:Sp,startingAngle:o.a.number,style:o.a.shape({axes:o.a.object,labels:o.a.object,polygons:o.a.object}),tickFormat:o.a.func,width:o.a.number.isRequired,renderAxesOverPolygons:o.a.bool,onValueMouseOver:o.a.func,onValueMouseOut:o.a.func,onSeriesMouseOver:o.a.func,onSeriesMouseOut:o.a.func},pm.defaultProps={className:"",colorType:"category",colorRange:ea,hideInnerMostValues:!0,startingAngle:Math.PI/2,style:{axes:{line:{},ticks:{},text:{}},labels:{fontSize:10,textAnchor:"middle"},polygons:{strokeWidth:.5,strokeOpacity:1,fillOpacity:.1}},tickFormat:fm,renderAxesOverPolygons:!1};var ym=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:1.1,r=t.getLabel,i=t.getSubLabel;return e.reduce((function(e,t){var o=t.angle,a=t.angle0,s=t.radius,u=-1*((o+a)/2)+Math.PI/2,l=[];return r(t)&&l.push({angle:u,radius:s*n,label:r(t)}),i(t)&&l.push({angle:u,radius:s*n,label:i(t),style:{fontSize:10},yOffset:12}),e.concat(l)}),[])}(T,{getLabel:s,getSubLabel:u},d);return q.a.createElement(Bp,{height:l,width:w,margin:ym({},y,O),className:n+" "+mm,onMouseLeave:m,onMouseEnter:g,xDomain:[-x,x],yDomain:[-x,x]},q.a.createElement(Uu,ym({},E,{getAngle:function(e){return e.angle}})),b&&!h&&q.a.createElement(bd,{data:k,style:p}),r,b&&h&&q.a.createElement(bd,{data:k,style:p}))}vm.displayName="RadialChart",vm.propTypes={animation:Pt,className:o.a.string,colorType:o.a.string,data:o.a.arrayOf(o.a.shape({angle:o.a.number,className:o.a.string,label:o.a.string,radius:o.a.number,style:o.a.object})).isRequired,getAngle:o.a.func,getAngle0:o.a.func,padAngle:o.a.oneOfType([o.a.func,o.a.number]),getRadius:o.a.func,getRadius0:o.a.func,getLabel:o.a.func,height:o.a.number.isRequired,labelsAboveChildren:o.a.bool,labelsStyle:o.a.object,margin:Sp,onValueClick:o.a.func,onValueMouseOver:o.a.func,onValueMouseOut:o.a.func,showLabels:o.a.bool,style:o.a.object,subLabel:o.a.func,width:o.a.number.isRequired},vm.defaultProps={className:"",colorType:"category",colorRange:ea,padAngle:0,getAngle:function(e){return e.angle},getAngle0:function(e){return e.angle0},getRadius:function(e){return e.radius},getRadius0:function(e){return e.radius0},getLabel:function(e){return e.label},getSubLabel:function(e){return e.subLabel}};function bm(e){return e.target.depth}function _m(e,t){return e.sourceLinks.length?e.depth:t-1}function wm(e){return function(){return e}}function Tm(e,t){return Em(e.source,t.source)||e.index-t.index}function xm(e,t){return Em(e.target,t.target)||e.index-t.index}function Em(e,t){return e.y0-t.y0}function Om(e){return e.value}function km(e){return(e.y0+e.y1)/2}function Sm(e){return km(e.source)*e.value}function Cm(e){return km(e.target)*e.value}function Pm(e){return e.index}function Nm(e){return e.nodes}function Rm(e){return e.links}function Am(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}var Im=function(){var e=0,t=0,n=1,r=1,i=24,o=8,a=Pm,s=_m,u=Nm,l=Rm,c=32;function f(){var f={nodes:u.apply(null,arguments),links:l.apply(null,arguments)};return function(e){e.nodes.forEach((function(e,t){e.index=t,e.sourceLinks=[],e.targetLinks=[]}));var t=$t(e.nodes,a);e.links.forEach((function(e,n){e.index=n;var r=e.source,i=e.target;"object"!==typeof r&&(r=e.source=Am(t,r)),"object"!==typeof i&&(i=e.target=Am(t,i)),r.sourceLinks.push(e),i.targetLinks.push(e)}))}(f),function(e){e.nodes.forEach((function(e){e.value=Math.max(Xt(e.sourceLinks,Om),Xt(e.targetLinks,Om))}))}(f),function(t){var r,o,a;for(r=t.nodes,o=[],a=0;r.length;++a,r=o,o=[])r.forEach((function(e){e.depth=a,e.sourceLinks.forEach((function(e){o.indexOf(e.target)<0&&o.push(e.target)}))}));for(r=t.nodes,o=[],a=0;r.length;++a,r=o,o=[])r.forEach((function(e){e.height=a,e.targetLinks.forEach((function(e){o.indexOf(e.source)<0&&o.push(e.source)}))}));var u=(n-e-i)/(a-1);t.nodes.forEach((function(t){t.x1=(t.x0=e+Math.max(0,Math.min(a-1,Math.floor(s.call(null,t,a))))*u)+i}))}(f),function(e){var n=Qt().key((function(e){return e.x0})).sortKeys(Nt).entries(e.nodes).map((function(e){return e.values}));(function(){var i=Gt(n,(function(e){return(r-t-(e.length-1)*o)/Xt(e,Om)}));n.forEach((function(e){e.forEach((function(e,t){e.y1=(e.y0=t)+e.value*i}))})),e.links.forEach((function(e){e.width=e.value*i}))})(),l();for(var i=1,a=c;a>0;--a)u(i*=.99),l(),s(i),l();function s(e){n.forEach((function(t){t.forEach((function(t){if(t.targetLinks.length){var n=(Xt(t.targetLinks,Sm)/Xt(t.targetLinks,Om)-km(t))*e;t.y0+=n,t.y1+=n}}))}))}function u(e){n.slice().reverse().forEach((function(t){t.forEach((function(t){if(t.sourceLinks.length){var n=(Xt(t.sourceLinks,Cm)/Xt(t.sourceLinks,Om)-km(t))*e;t.y0+=n,t.y1+=n}}))}))}function l(){n.forEach((function(e){var n,i,a,s=t,u=e.length;for(e.sort(Em),a=0;a0&&(n.y0+=i,n.y1+=i),s=n.y1+o;if((i=s-o-r)>0)for(s=n.y0-=i,n.y1-=i,a=u-2;a>=0;--a)(i=(n=e[a]).y1+o-s)>0&&(n.y0-=i,n.y1-=i),s=n.y0}))}}(f),h(f),f}function h(e){e.nodes.forEach((function(e){e.sourceLinks.sort(xm),e.targetLinks.sort(Tm)})),e.nodes.forEach((function(e){var t=e.y0,n=t;e.sourceLinks.forEach((function(e){e.y0=t+e.width/2,t+=e.width})),e.targetLinks.forEach((function(e){e.y1=n+e.width/2,n+=e.width}))}))}return f.update=function(e){return h(e),e},f.nodeId=function(e){return arguments.length?(a="function"===typeof e?e:wm(e),f):a},f.nodeAlign=function(e){return arguments.length?(s="function"===typeof e?e:wm(e),f):s},f.nodeWidth=function(e){return arguments.length?(i=+e,f):i},f.nodePadding=function(e){return arguments.length?(o=+e,f):o},f.nodes=function(e){return arguments.length?(u="function"===typeof e?e:wm(e),f):u},f.links=function(e){return arguments.length?(l="function"===typeof e?e:wm(e),f):l},f.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],f):[n-e,r-t]},f.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],f):[[e,t],[n,r]]},f.iterations=function(e){return arguments.length?(c=+e,f):c},f};function Mm(e){return[e.source.x1,e.y0]}function Lm(e){return[e.target.x0,e.y1]}var jm=function(){return cs().source(Mm).target(Lm)},Dm=Object.assign||function(e){for(var t=1;t=0;)t+=n[r].value;else t=1;e.value=t}function Km(e,t){var n,r,i,o,a,s=new Jm(e),u=+e.value&&(s.value=e.value),l=[s];for(null==t&&(t=Zm);n=l.pop();)if(u&&(n.value=+n.data.value),(i=t(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)l.push(r=n.children[o]=new Jm(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Qm)}function Zm(e){return e.children}function $m(e){e.data=e.data.data}function Qm(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Jm(e){this.data=e,this.depth=this.height=0,this.parent=null}Jm.prototype=Km.prototype={constructor:Jm,count:function(){return this.eachAfter(Xm)},each:function(e){var t,n,r,i,o=this,a=[o];do{for(t=a.reverse(),a=[];o=t.pop();)if(e(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(t[n]);return this},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each((function(t){e.push(t)})),e},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Km(this).eachBefore($m)}};var eg=Array.prototype.slice;var tg=function(e){for(var t,n,r=0,i=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(eg.call(e))).length,o=[];r0&&n*n>r*r+i*i}function og(e,t){for(var n=0;n(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=e.x-r*s-o*u,n.y=e.y-r*u+o*s):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=t.x+r*s-o*u,n.y=t.y+r*u+o*s)):(n.x=t.x+n.r,n.y=t.y)}function cg(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function fg(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function hg(e){this._=e,this.next=null,this.previous=null}function dg(e){if(!(i=e.length))return 0;var t,n,r,i,o,a,s,u,l,c,f;if((t=e[0]).x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;lg(n,t,r=e[2]),t=new hg(t),n=new hg(n),r=new hg(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;sh&&(h=s),m=c*c*y,(d=Math.max(h/m,m/f))>p){c-=s;break}p=d}g.push(a={value:c,dice:u1?t:1)},n}(Sg),Ng=function e(t){function n(e,n,r,i,o){if((a=e._squarify)&&a.ratio===t)for(var a,s,u,l,c,f=-1,h=a.length,d=e.value;++f1?t:1)},n}(Sg),Rg=Object.assign||function(e){for(var t=1;t90?"end":"start"},e.labelStyle),rotation:a?s>90?s+180:90===s?90:s:null})}))}(d,{getAngle:t,getAngle0:n,getLabel:l,getRadius0:function(e){return e.radius0}});return q.a.createElement(Bp,{height:s,hasTreeStructure:!0,width:c,className:Ag+" "+i,margin:y,xDomain:[-p,p],yDomain:[-p,p]},q.a.createElement(Uu,Rg({colorType:h},e,{animation:r,radiusDomain:[0,p],data:r?d.map((function(e,t){return Rg({},e,{parent:null,children:null,index:t})})):d,_data:r?d:null,arcClassName:Ag+"__series--radial__arc"},Ig.reduce((function(t,n){var i,o=e[n];return t[n]=r?(i=o,function(e,t){return i?i(d[e.index],t):Mg}):o,t}),{}))),m.length>0&&q.a.createElement(bd,{data:m,getLabel:l}),o)}Lg.displayName="Sunburst",Lg.propTypes={animation:Pt,getAngle:o.a.func,getAngle0:o.a.func,className:o.a.string,colorType:o.a.string,data:o.a.object.isRequired,height:o.a.number.isRequired,hideRootNode:o.a.bool,getLabel:o.a.func,onValueClick:o.a.func,onValueMouseOver:o.a.func,onValueMouseOut:o.a.func,getSize:o.a.func,width:o.a.number.isRequired,padAngle:o.a.oneOfType([o.a.func,o.a.number])},Lg.defaultProps={getAngle:function(e){return e.angle},getAngle0:function(e){return e.angle0},className:"",colorType:"literal",getColor:function(e){return e.color},hideRootNode:!1,getLabel:function(e){return e.label},getSize:function(e){return e.size},padAngle:0};var jg=Object.assign||function(e){for(var t=1;t=n-1){var c=s[t];return c.x0=i,c.y0=o,c.x1=a,void(c.y1=u)}var f=l[t],h=r/2+f,d=t+1,p=n-1;for(;d>>1;l[y]u-o){var v=(i*g+a*m)/r;e(t,d,m,i,o,v,u),e(d,n,g,v,o,a,u)}else{var b=(o*g+u*m)/r;e(t,d,m,i,o,a,b),e(d,n,g,i,b,a,u)}}(0,u,e.value,t,n,r,i)}},Zg=function(e){return e},$g=["opacity","color"];function Qg(e){var t=e.data.children||[],n=Xg({},e,Wo(e,t,$g),{_allData:t});return{opacity:Fo(n,"opacity"),color:Fo(n,"color")}}var Jg=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state=Xg({scales:Qg(e)},Op(e,e.margin)),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Gg(t,[{key:"componentWillReceiveProps",value:function(e){this.setState(Xg({scales:Qg(e)},Op(e,e.margin)))}},{key:"_getNodesToRender",value:function(){var e=this.state,t=e.innerWidth,n=e.innerHeight,r=this.props,i=r.data,o=r.mode,a=r.padding,s=r.sortFunction,u=r.getSize;if(!i)return[];if("partition"===o||"partition-pivot"===o){var l=Eg().size("partition-pivot"===o?[n,t]:[t,n]).padding(a)(Km(i).sum(u).sort((function(e,t){return s(e,t,u)}))).descendants();return"partition-pivot"===o?l.map((function(e){return Xg({},e,{x0:e.y0,x1:e.y1,y0:e.x0,y1:e.x1})})):l}if("circlePack"===o)return function(){var e=null,t=1,n=1,r=mg;function i(i){return i.x=t/2,i.y=n/2,e?i.eachBefore(bg(e)).eachAfter(_g(r,.5)).eachBefore(wg(1)):i.eachBefore(bg(vg)).eachAfter(_g(mg,1)).eachAfter(_g(r,i.r/Math.min(t,n))).eachBefore(wg(Math.min(t,n)/(2*i.r))),i}return i.radius=function(t){return arguments.length?(e=pg(t),i):e},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(e){return arguments.length?(r="function"===typeof e?e:gg(+e),i):r},i}().size([t,n]).padding(a)(Km(i).sum(u).sort((function(e,t){return s(e,t,u)}))).descendants();var c=Kg[o];return function(){var e=Pg,t=!1,n=1,r=1,i=[0],o=mg,a=mg,s=mg,u=mg,l=mg;function c(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),i=[0],t&&e.eachBefore(Tg),e}function f(t){var n=i[t.depth],r=t.x0+n,c=t.y0+n,f=t.x1-n,h=t.y1-n;f-1&&ov.splice(t,1)}(e),0===ov.length&&(tv.a.clearTimeout(sv),tv.a.removeEventListener("resize",uv))}}function fv(e,t,n){var r=function(r){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return t._onResize=function(){var e=Object(po.a)(t[iv]),n=e.offsetHeight,r=e.offsetWidth,i=t.state.height===n?{}:{height:n},o=t.state.width===r?{}:{width:r};t.setState(nv({},i,o))},t.state={height:0,width:0},t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),rv(i,null,[{key:"propTypes",get:function(){var t=e.propTypes;t.height,t.width;return function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["height","width"])}}]),rv(i,[{key:"componentDidMount",value:function(){this._onResize(),this.cancelSubscription=cv(this._onResize)}},{key:"componentWillReceiveProps",value:function(){this._onResize()}},{key:"componentWillUnmount",value:function(){this.cancelSubscription()}},{key:"render",value:function(){var r=this,i=this.state,o=i.height,a=i.width,s=nv({},this.props,{animation:0===o&&0===a?null:this.props.animation}),u=nv({},n?{height:o}:{},t?{width:a}:{});return q.a.createElement("div",{ref:function(e){return r[iv]=e},style:{width:"100%",height:"100%"}},q.a.createElement(e,nv({},u,s)))}}]),i}(q.a.Component);return r.displayName="Flexible"+function(e){return e.displayName||e.name||"Component"}(e),r}fv(Bp,!0,!1),function(e){fv(e,!1,!0)}(Bp),function(e){fv(e,!0,!0)}(Bp);n.d(t,"a",(function(){return Kf})),n.d(t,"c",(function(){return Rh})),n.d(t,"d",(function(){return Qh})),n.d(t,"e",(function(){return Id})),n.d(t,"f",(function(){return Cd})),n.d(t,"g",(function(){return sp})),n.d(t,"i",(function(){return Bp})),n.d(t,"h",(function(){return Iy})),n.d(t,"j",(function(){return Uy})),n.d(t,"b",(function(){return Qy}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return(i="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}function o(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n(0);var r=n(1),i=n.n(r);function o(e){return e.type&&"Tab"===e.type.tabsRole}function a(e){return e.type&&"TabPanel"===e.type.tabsRole}function s(e){return e.type&&"TabList"===e.type.tabsRole}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){return r.Children.map(e,(function(e){return null===e?null:function(e){return o(e)||s(e)||a(e)}(e)?t(e):e.props&&e.props.children&&"object"===typeof e.props.children?Object(r.cloneElement)(e,function(e){for(var t=1;t=this.getTabsCount())){var n=this.props;(0,n.onSelect)(e,n.selectedIndex,t)}},h.getNextTab=function(e){for(var t=this.getTabsCount(),n=e+1;ne;)if(!_(this.getTab(t)))return t;return e},h.getFirstTab=function(){for(var e=this.getTabsCount(),t=0;t=0||(i[n]=e[n]);return i}(t,["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName"]));return i.a.createElement("div",g({},o,{className:d()(n),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:function(t){e.node=t,r&&r(t)},"data-tabs":!0}),this.getChildren())},u}(r.Component);w.defaultProps={className:"react-tabs",focus:!1},w.propTypes={};var T=1,x=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).handleSelected=function(e,t,r){var i=n.props.onSelect,o=n.state.mode;if("function"!==typeof i||!1!==i(e,t,r)){var a={focus:"keydown"===r.type};o===T&&(a.selectedIndex=e),n.setState(a)}},n.state=r.copyPropsToState(n.props,{},t.defaultFocus),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.getDerivedStateFromProps=function(e,t){return r.copyPropsToState(e,t)},r.getModeFromProps=function(e){return null===e.selectedIndex?T:0},r.copyPropsToState=function(e,t,n){void 0===n&&(n=!1);var i={focus:n,mode:r.getModeFromProps(e)};if(i.mode===T){var o=m(e.children)-1,a=null;a=null!=t.selectedIndex?Math.min(t.selectedIndex,o):e.defaultIndex||0,i.selectedIndex=a}return i},r.prototype.render=function(){var e=this.props,t=e.children,n=(e.defaultIndex,e.defaultFocus,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,["children","defaultIndex","defaultFocus"])),r=this.state,o=r.focus,a=r.selectedIndex;return n.focus=o,n.onSelect=this.handleSelected,null!=a&&(n.selectedIndex=a),i.a.createElement(w,n,t)},r}(r.Component);function E(){return(E=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,["children","className"]);return i.a.createElement("ul",E({},r,{className:d()(n),role:"tablist"}),t)},r}(r.Component);function k(){return(k=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(n,["children","className","disabled","disabledClassName","focus","id","panelId","selected","selectedClassName","tabIndex","tabRef"]);return i.a.createElement("li",k({},y,{className:d()(o,(e={},e[f]=c,e[s]=a,e)),ref:function(e){t.node=e,p&&p(e)},role:"tab",id:u,"aria-selected":c?"true":"false","aria-disabled":a?"true":"false","aria-controls":l,tabIndex:h||(c?"0":null)}),r)},r}(r.Component);function C(){return(C=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,["children","className","forceRender","id","selected","selectedClassName","tabId"]);return i.a.createElement("div",C({},c,{className:d()(r,(e={},e[u]=s,e)),role:"tabpanel",id:a,"aria-labelledby":l}),o||s?n:null)},r}(r.Component);P.defaultProps={className:"react-tabs__tab-panel",forceRender:!1,selectedClassName:"react-tabs__tab-panel--selected"},P.propTypes={},P.tabsRole="TabPanel",n.d(t,"d",(function(){return x})),n.d(t,"b",(function(){return O})),n.d(t,"a",(function(){return S})),n.d(t,"c",(function(){return P}))},function(e,t,n){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n "+e:e}},e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n=0;n13||Number(o)>13,u=function(e){return s?e:e&&e.getDOMNode()},l={},c={test:!0,production:!0};function f(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.process&&c.production||n&&l[t]||(console.warn(t),l[t]=!0)}}).call(this,n(13))},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array,t.nodebuffer="undefined"!==typeof e,t.uint8array="undefined"!==typeof Uint8Array,"undefined"===typeof ArrayBuffer)t.blob=!1;else{var r=new ArrayBuffer(0);try{t.blob=0===new Blob([r],{type:"application/zip"}).size}catch(o){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),t.blob=0===i.getBlob("application/zip").size}catch(o){t.blob=!1}}}try{t.nodestream=!!n(65).Readable}catch(o){t.nodestream=!1}}).call(this,n(31).Buffer)},function(e,t,n){"use strict";var r="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(e[r]=n[r])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o1)for(var n=1;n=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;s[254]=s[254]=1;function l(){a.call(this,"utf-8 decode"),this.leftOver=null}function c(){a.call(this,"utf-8 encode")}t.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,r,o,a,s=e.length,u=0;for(o=0;o>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t}(e)},t.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,o,a=e.length,u=new Array(2*a);for(n=0,t=0;t4)u[n++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&t1?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}return u.length!==n&&(u.subarray?u=u.subarray(0,n):u.length=n),r.applyFromCharCode(u)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(l,a),l.prototype.processChunk=function(e){var n=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=n;(n=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),n.set(o,this.leftOver.length)}else n=this.leftOver.concat(n);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128===(192&e[n]);)n--;return n<0?t:0===n?t:n+s[e[n]]>t?n:t}(n),u=n;a!==n.length&&(i.uint8array?(u=n.subarray(0,a),this.leftOver=n.subarray(a,n.length)):(u=n.slice(0,a),this.leftOver=n.slice(a,n.length))),this.push({data:t.utf8decode(u),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=l,r.inherits(c,a),c.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=c},function(e,t){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function h(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0||!Array.isArray(t)&&t?l({},e,t):{}}function g(e){var t=e.icon,n=e.mask,i=e.symbol,o=e.className,a=e.title,s=y(t),u=m("classes",[].concat(h(function(e){var t,n=e.spin,r=e.pulse,i=e.fixedWidth,o=e.inverse,a=e.border,s=e.listItem,u=e.flip,c=e.size,f=e.rotation,h=e.pull,d=(l(t={"fa-spin":n,"fa-pulse":r,"fa-fw":i,"fa-inverse":o,"fa-border":a,"fa-li":s,"fa-flip-horizontal":"horizontal"===u||"both"===u,"fa-flip-vertical":"vertical"===u||"both"===u},"fa-".concat(c),"undefined"!==typeof c&&null!==c),l(t,"fa-rotate-".concat(f),"undefined"!==typeof f&&null!==f),l(t,"fa-pull-".concat(h),"undefined"!==typeof h&&null!==h),l(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(d).map((function(e){return d[e]?e:null})).filter((function(e){return e}))}(e)),h(o.split(" ")))),f=m("transform","string"===typeof e.transform?r.b.transform(e.transform):e.transform),d=m("mask",y(n)),b=Object(r.a)(s,c({},u,f,d,{symbol:i,title:a}));if(!b)return function(){var e;!p&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",s),null;var _=b.abstract,w={};return Object.keys(e).forEach((function(t){g.defaultProps.hasOwnProperty(t)||(w[t]=e[t])})),v(_[0],w)}g.displayName="FontAwesomeIcon",g.propTypes={border:o.a.bool,className:o.a.string,mask:o.a.oneOfType([o.a.object,o.a.array,o.a.string]),fixedWidth:o.a.bool,inverse:o.a.bool,flip:o.a.oneOf(["horizontal","vertical","both"]),icon:o.a.oneOfType([o.a.object,o.a.array,o.a.string]),listItem:o.a.bool,pull:o.a.oneOf(["right","left"]),pulse:o.a.bool,rotation:o.a.oneOf([90,180,270]),size:o.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:o.a.bool,symbol:o.a.oneOfType([o.a.bool,o.a.string]),title:o.a.string,transform:o.a.oneOfType([o.a.string,o.a.object]),swapOpacity:o.a.bool},g.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var v=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),o=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=d(t.slice(0,r)),o=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=o:e[i]=o,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[d(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,u=f(r,["style"]);return o.attrs.style=c({},o.attrs.style,s),t.apply(void 0,[n.tag,c({},o.attrs,u)].concat(h(i)))}.bind(null,s.a.createElement)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r={prefix:"fas",iconName:"question-circle",icon:[512,512,[],"f059","M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"]},i={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return(i="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}function o(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t,n){(function(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=n}).call(this,n(13))},function(e,t,n){"use strict";(function(e){var r=n(118),i=n(119),o=n(64);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var f=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128===(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return T(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function j(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,o){return o||j(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,o){return o||j(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function W(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(13))},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"===typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"===typeof e},t.isString=function(e){return"string"===typeof e},t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"===typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"===typeof e},t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=e.isBuffer}).call(this,n(31).Buffer)},function(e,t,n){"use strict";var r=null;r="undefined"!==typeof Promise?Promise:n(131),e.exports={Promise:r}},function(e,t,n){e.exports=n(116)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"===typeof e[n]?e[n]:e[n].val);return t},e.exports=t.default},function(e,t,n){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var l={get:function(e,t,n){if(!t)return e;var r=f(t),i=void 0;try{i=r.reduce((function(e,t){return e[t]}),e)}catch(o){}return"undefined"!==typeof i?i:n},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=arguments[2],r=f(t),i=void 0,o=e;for(;(i=r.shift())&&r.length;)o[i]||(o[i]={}),o=o[i];return o[i]=n,e},takeRight:function(e,t){var n=t>e.length?0:e.length-t;return e.slice(n)},last:function(e){return e[e.length-1]},orderBy:function(e,t,n,r){return e.sort((function(e,i){for(var o=0;o2&&void 0!==arguments[2]?arguments[2]:e;return r=e,function(e){return"function"===typeof e&&!!Object.getPrototypeOf(e).isReactComponent}(r)||function(e){return"function"===typeof e&&String(e).includes(".createElement")}(r)?i.a.createElement(e,t):"function"===typeof e?e(t):n;var r},asPx:function(e){return e=Number(e),Number.isNaN(e)?null:e+"px"}};function c(e){return Array.isArray(e)}function f(e){return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(c(t))for(var r=0;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var O=function(){return{}},k={data:[],resolveData:function(e){return e},loading:!1,showPagination:!0,showPaginationTop:!1,showPaginationBottom:!0,showPageSizeOptions:!0,pageSizeOptions:[5,10,20,25,50,100],defaultPage:0,defaultPageSize:20,showPageJump:!0,collapseOnSortingChange:!0,collapseOnPageChange:!0,collapseOnDataChange:!0,freezeWhenExpanded:!1,sortable:!0,multiSort:!0,resizable:!0,filterable:!1,defaultSortDesc:!1,defaultSorted:[],defaultFiltered:[],defaultResized:[],defaultExpanded:{},defaultFilterMethod:function(e,t,n){var r=e.pivotId||e.id;return void 0===t[r]||String(t[r]).startsWith(e.value)},defaultSortMethod:function(e,t,n){return t=null===t||void 0===t?"":t,(e="string"===typeof(e=null===e||void 0===e?"":e)?e.toLowerCase():e)>(t="string"===typeof t?t.toLowerCase():t)?1:e1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return[t.map((function(t,i){var o=R({},t,{_viewIndex:r+=1}),a=n.concat([i]);if(o[q]&&l.get(re,a)){var s=e(o[q],a,r),u=N(s,2);o[q]=u[0],r=u[1]}return o})),r]}(Ie),ze=N(Fe,1);Ie=ze[0];var Ue=J>0,Be=J+12&&void 0!==arguments[2]?arguments[2]:[],s={original:n[X],row:n,index:n[K],viewIndex:We+=1,pageSize:Q,page:J,level:o.length,nestingPath:o.concat([r]),aggregated:n[G],groupedByPivot:n[Z],subRows:n[q]},u=l.get(re,s.nestingPath),c=_(Ve,s,void 0,e),f=l.splitProps(w(Ve,s,void 0,e));return i.a.createElement(le,R({key:s.nestingPath.join("_")},c),i.a.createElement(ce,R({className:a()(f.className,n._viewIndex%2?"-even":"-odd"),style:f.style},f.rest),ke.map((function(t,r){var o=ne.find((function(e){return e.id===t.id}))||{},c="function"===typeof t.show?t.show():t.show,f=l.getFirstDefined(o.value,t.width,t.minWidth),h=l.getFirstDefined(o.value,t.width,t.maxWidth),d=l.splitProps(T(Ve,s,t,e)),p=l.splitProps(t.getProps(Ve,s,t,e)),y=[d.className,t.className,p.className],m=R({},d.style,t.style,p.style),g=R({},s,{isExpanded:u,column:R({},t),value:s.row[t.id],pivoted:t.pivoted,expander:t.expander,resized:ne,show:c,width:f,maxWidth:h,tdProps:d,columnProps:p,classes:y,styles:m}),v=g.value,b=void 0,_=void 0,w=void 0,x=l.normalizeComponent(t.Cell,g,v),E=t.Aggregated||(t.aggregate?t.Cell:Te),O=t.Expander||be,k=t.PivotValue||_e,S=we||function(e){return i.a.createElement("div",null,i.a.createElement(O,e),i.a.createElement(k,e))},C=t.Pivot||S;(g.pivoted||g.expander)&&(g.expandable=!0,b=!0,!g.pivoted||g.subRows||me||(g.expandable=!1)),g.pivoted?(_=s.row[W]===t.id&&g.subRows,w=Y.indexOf(t.id)>Y.indexOf(s.row[W])&&g.subRows,x=_?l.normalizeComponent(C,R({},g,{value:n[V]}),n[V]):w?l.normalizeComponent(E,g,v):null):g.aggregated&&(x=l.normalizeComponent(E,g,v)),g.expander&&(x=l.normalizeComponent(O,g,n[V]),Y&&(g.groupedByPivot&&(x=null),g.subRows||me||(x=null)));var P=b?function(t){var n=l.clone(re);return n=u?l.set(n,g.nestingPath,!1):l.set(n,g.nestingPath,{}),e.setStateWithData({expanded:n},(function(){return oe&&oe(n,g.nestingPath,t,g)}))}:function(){},N={onClick:P};return d.rest.onClick&&(N.onClick=function(e){d.rest.onClick(e,(function(){return P(e)}))}),p.rest.onClick&&(N.onClick=function(e){p.rest.onClick(e,(function(){return P(e)}))}),i.a.createElement(he,R({key:r+"-"+t.id,className:a()(y,!g.expandable&&!c&&"hidden",g.expandable&&"rt-expandable",(_||w)&&"rt-pivot"),style:R({},m,{flex:f+" 0 auto",width:l.asPx(f),maxWidth:l.asPx(h)})},d.rest,p.rest,N),x)}))),s.subRows&&u&&s.subRows.map((function(e,n){return t(e,n,s.nestingPath)})),me&&!s.subRows&&u&&me(s,(function(){var e=l.clone(re);l.set(e,s.nestingPath,!1)})))}(t,n)})),Le.map(et)),je?function(){var t=l.splitProps(x(Ve,void 0,void 0,e)),n=l.splitProps(E(Ve,void 0,void 0,e));return i.a.createElement(de,R({className:t.className,style:R({},t.style,{minWidth:He+"px"})},t.rest),i.a.createElement(ce,R({className:a()(n.className),style:n.style},n.rest),ke.map(tt)))}():null),I&&L?i.a.createElement("div",{className:"pagination-bottom"},nt(!1)):null,!Ie.length&&i.a.createElement(ge,Ke,l.normalizeComponent(F)),i.a.createElement(ye,R({loading:$,loadingText:D},Xe)))};return n?n(Ve,rt,this):rt()}}]),t}(function(e){return function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),y(t,[{key:"getResolvedState",value:function(e,t){return p({},l.compactObject(this.state),l.compactObject(this.props),l.compactObject(t),l.compactObject(e))}},{key:"getDataModel",value:function(e,t){var n=this,r=e.columns,o=e.pivotBy,a=void 0===o?[]:o,s=e.data,u=e.resolveData,c=e.pivotIDKey,f=e.pivotValKey,h=e.subRowsKey,y=e.aggregatedKey,v=e.nestingLevelKey,b=e.originalKey,_=e.indexKey,w=e.groupedByPivotKey,T=e.SubComponent,x=!1;r.forEach((function(e){e.columns&&(x=!0)}));var E=[].concat(g(r)),O=r.find((function(e){return e.expander||e.columns&&e.columns.some((function(e){return e.expander}))}));O&&!O.expander&&(O=O.columns.find((function(e){return e.expander}))),T&&!O&&(E=[O={expander:!0}].concat(g(E)));var k=[],S=function(e,t){var r=function(e,t){var r=void 0;if((r=e.expander?p({},n.props.column,n.props.expanderDefaults,e):p({},n.props.column,e)).maxWidth-1)&&l.getFirstDefined(e.show,!0)}));return p({},e,{columns:t})}return e}))).filter((function(e){return e.columns?e.columns.length:!(a.indexOf(e.id)>-1)&&l.getFirstDefined(e.show,!0)}))).findIndex((function(e){return e.pivot}));if(a.length){var R=[];a.forEach((function(e){var t=k.find((function(t){return t.id===e}));t&&R.push(t)}));var A=R.reduce((function(e,t){return e&&e===t.parentColumn&&t.parentColumn}),R[0].parentColumn),I=x&&A.Header,M={Header:I=I||function(){return i.a.createElement("strong",null,"Pivoted")},columns:R.map((function(e){return p({},n.props.pivotDefaults,e,{pivoted:!0})}))};N>=0?(M=p({},C[N],M),C.splice(N,1,M)):C.unshift(M)}var L=[],j=[],D=function(e,t){L.push(p({},n.props.column,t,{columns:e})),j=[]};C.forEach((function(e){if(e.columns)return P=P.concat(e.columns),j.length>0&&D(j),void D(e.columns,e);P.push(e),j.push(e)})),x&&j.length>0&&D(j);var F=this.resolvedData;this.resolvedData&&!t||(F=u(s),this.resolvedData=F),F=F.map((function(e,t){return function e(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=(m(r={},b,t),m(r,_,n),m(r,h,t[h]),m(r,v,i),r);return k.forEach((function(e){e.expander||(o[e.id]=e.accessor(t))})),o[h]&&(o[h]=o[h].map((function(t,n){return e(t,n,i+1)}))),o}(e,t)}));var z=P.filter((function(e){return!e.expander&&e.aggregate})),U=function(e){var t={};return z.forEach((function(n){var r=e.map((function(e){return e[n.id]}));t[n.id]=n.aggregate(r,e)})),t};if(a.length){F=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r===n.length)return t;var i=Object.entries(l.groupBy(t,n[r])).map((function(e){var t,i=d(e,2),o=i[0],a=i[1];return m(t={},c,n[r]),m(t,f,o),m(t,n[r],o),m(t,h,a),m(t,v,r),m(t,w,!0),t}));return i=i.map((function(t){var i,o=e(t[h],n,r+1);return p({},t,(m(i={},h,o),m(i,y,!0),i),U(o))}))}(F,a)}return p({},e,{resolvedData:F,allVisibleColumns:P,headerGroups:L,allDecoratedColumns:k,hasHeaderGroups:x})}},{key:"getSortedData",value:function(e){var t=e.manual,n=e.sorted,r=e.filtered,i=e.defaultFilterMethod,o=e.resolvedData,a=e.allDecoratedColumns,s={};return a.filter((function(e){return e.sortMethod})).forEach((function(e){s[e.id]=e.sortMethod})),{sortedData:t?o:this.sortData(this.filterData(o,r,i,a),n,s)}}},{key:"fireFetchData",value:function(){var e=p({},this.getResolvedState(),{page:this.getStateOrProp("page"),pageSize:this.getStateOrProp("pageSize"),filtered:this.getStateOrProp("filtered")});this.props.onFetchData(e,this)}},{key:"getPropOrState",value:function(e){return l.getFirstDefined(this.props[e],this.state[e])}},{key:"getStateOrProp",value:function(e){return l.getFirstDefined(this.state[e],this.props[e])}},{key:"filterData",value:function(e,t,n,r){var i=this,o=e;return t.length&&(o=(o=t.reduce((function(e,t){var i=r.find((function(e){return e.id===t.id}));if(!i||!1===i.filterable)return e;var o=i.filterMethod||n;return i.filterAll?o(t,e,i):e.filter((function(e){return o(t,e,i)}))}),o)).map((function(e){return e[i.props.subRowsKey]?p({},e,m({},i.props.subRowsKey,i.filterData(e[i.props.subRowsKey],t,n,r))):e})).filter((function(e){return!e[i.props.subRowsKey]||e[i.props.subRowsKey].length>0}))),o}},{key:"sortData",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.length)return e;var i=(this.props.orderByMethod||l.orderBy)(e,t.map((function(e){return r[e.id]?function(t,n){return r[e.id](t[e.id],n[e.id],e.desc)}:function(t,r){return n.props.defaultSortMethod(t[e.id],r[e.id],e.desc)}})),t.map((function(e){return!e.desc})),this.props.indexKey);return i.forEach((function(e){e[n.props.subRowsKey]&&(e[n.props.subRowsKey]=n.sortData(e[n.props.subRowsKey],t,r))})),i}},{key:"getMinRows",value:function(){return l.getFirstDefined(this.props.minRows,this.getStateOrProp("pageSize"))}},{key:"onPageChange",value:function(e){var t=this.props,n=t.onPageChange,r=t.collapseOnPageChange,i={page:e};r&&(i.expanded={}),this.setStateWithData(i,(function(){return n&&n(e)}))}},{key:"onPageSizeChange",value:function(e){var t=this.props.onPageSizeChange,n=this.getResolvedState(),r=n.pageSize*n.page,i=Math.floor(r/e);this.setStateWithData({pageSize:e,page:i},(function(){return t&&t(e,i)}))}},{key:"sortColumn",value:function(e,t){var n=this.getResolvedState(),r=n.sorted,i=n.skipNextSort,o=n.defaultSortDesc,a=Object.prototype.hasOwnProperty.call(e,"defaultSortDesc")?e.defaultSortDesc:o,s=!a;if(i)this.setStateWithData({skipNextSort:!1});else{var u=this.props.onSortedChange,c=l.clone(r||[]).map((function(e){return e.desc=l.isSortingDesc(e),e}));if(l.isArray(e)){var f=c.findIndex((function(t){return t.id===e[0].id}));if(f>-1)c[f].desc===s?t?c.splice(f,e.length):e.forEach((function(e,t){c[f+t].desc=a})):e.forEach((function(e,t){c[f+t].desc=s})),t||(c=c.slice(f,e.length));else c=t?c.concat(e.map((function(e){return{id:e.id,desc:a}}))):e.map((function(e){return{id:e.id,desc:a}}))}else{var h=c.findIndex((function(t){return t.id===e.id}));if(h>-1){var d=c[h];d.desc===s?t?c.splice(h,1):(d.desc=a,c=[d]):(d.desc=s,t||(c=[d]))}else t?c.push({id:e.id,desc:a}):c=[{id:e.id,desc:a}]}this.setStateWithData({page:!r.length&&c.length||!t?0:this.state.page,sorted:c},(function(){return u&&u(c,e,t)}))}}},{key:"filterColumn",value:function(e,t){var n=this.getResolvedState().filtered,r=this.props.onFilteredChange,i=(n||[]).filter((function(t){return t.id!==e.id}));""!==t&&i.push({id:e.id,value:t}),this.setStateWithData({filtered:i},(function(){return r&&r(i,e,t)}))}},{key:"resizeColumnStart",value:function(e,t,n){var r=this;e.stopPropagation();var i=e.target.parentElement.getBoundingClientRect().width,o=void 0;o=n?e.changedTouches[0].pageX:e.pageX,this.trapEvents=!0,this.setStateWithData({currentlyResizing:{id:t.id,startX:o,parentWidth:i}},(function(){n?(document.addEventListener("touchmove",r.resizeColumnMoving),document.addEventListener("touchcancel",r.resizeColumnEnd),document.addEventListener("touchend",r.resizeColumnEnd)):(document.addEventListener("mousemove",r.resizeColumnMoving),document.addEventListener("mouseup",r.resizeColumnEnd),document.addEventListener("mouseleave",r.resizeColumnEnd))}))}},{key:"resizeColumnMoving",value:function(e){e.stopPropagation();var t=this.props,n=t.onResizedChange,r=t.column,i=this.getResolvedState(),o=i.resized,a=i.currentlyResizing,s=i.columns.find((function(e){return e.accessor===a.id||e.id===a.id})),u=s&&null!=s.minResizeWidth?s.minResizeWidth:r.minResizeWidth,l=o.filter((function(e){return e.id!==a.id})),c=void 0;"touchmove"===e.type?c=e.changedTouches[0].pageX:"mousemove"===e.type&&(c=e.pageX);var f=Math.max(a.parentWidth+c-a.startX,u);l.push({id:a.id,value:f}),this.setStateWithData({resized:l},(function(){return n&&n(l,e)}))}},{key:"resizeColumnEnd",value:function(e){e.stopPropagation();var t="touchend"===e.type||"touchcancel"===e.type;t&&(document.removeEventListener("touchmove",this.resizeColumnMoving),document.removeEventListener("touchcancel",this.resizeColumnEnd),document.removeEventListener("touchend",this.resizeColumnEnd)),document.removeEventListener("mousemove",this.resizeColumnMoving),document.removeEventListener("mouseup",this.resizeColumnEnd),document.removeEventListener("mouseleave",this.resizeColumnEnd),t||this.setStateWithData({skipNextSort:!0,currentlyResizing:!1})}}]),t}(e)}(function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),h(t,[{key:"UNSAFE_componentWillMount",value:function(){this.setStateWithData(this.getDataModel(this.getResolvedState(),!0))}},{key:"componentDidMount",value:function(){this.fireFetchData()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e,t){var n=this.getResolvedState(),r=this.getResolvedState(e,t);["sorted","filtered","resized","expanded"].forEach((function(e){var t="default"+(e.charAt(0).toUpperCase()+e.slice(1));JSON.stringify(n[t])!==JSON.stringify(r[t])&&(r[e]=r[t])})),["sortable","filterable","resizable"].forEach((function(e){if(n[e]!==r[e]){var t=e.replace("able","")+"ed",i="default"+(t.charAt(0).toUpperCase()+t.slice(1));r[t]=r[i]}})),n.data===r.data&&n.columns===r.columns&&n.pivotBy===r.pivotBy&&n.sorted===r.sorted&&n.filtered===r.filtered||this.setStateWithData(this.getDataModel(r,n.data!==r.data))}},{key:"setStateWithData",value:function(e,t){var n=this,r=this.getResolvedState(),i=this.getResolvedState({},e),o=i.freezeWhenExpanded;if(i.frozen=!1,o)for(var a=Object.keys(i.expanded),s=0;s=i.pages?i.pages-1:i.page,0)),this.setState(i,(function(){t&&t(),r.page===i.page&&r.pageSize===i.pageSize&&r.sorted===i.sorted&&r.filtered===i.filtered||n.fireFetchData()}))}}]),t}(r.Component)));I.propTypes=P,I.defaultProps=k;t.a=I},function(e,t,n){},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0;n-=1){var r=e[n];if(!1!==r.show)return r}}},function(e,t,n){(function(e){var r="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(106),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(13))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=0);return t},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n,i,o,a,s){var u=n+(-o*(t-i)+-a*n)*e,l=t+u*e;if(Math.abs(u)0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function f(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)o(u,this,t);else{var l=u.length,c=y(u,l);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){(t=e.exports=n(66)).Stream=t,t.Readable=t,t.Writable=n(52),t.Duplex=n(20),t.Transform=n(70),t.PassThrough=n(125)},function(e,t,n){"use strict";(function(t,r,i){var o=n(36);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o.nextTick;v.WritableState=g;var l=n(32);l.inherits=n(22);var c={deprecate:n(124)},f=n(67),h=n(37).Buffer,d=i.Uint8Array||function(){};var p,y=n(68);function m(){}function g(e,t){s=s||n(20),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,l=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(E,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),E(e,t))}(e,n,r,t,i);else{var a=T(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?u(_,e,n,a,i):_(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||n(20),!p.call(v,this)&&!(this instanceof s))return new v(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),f.call(this)}function b(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),E(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:l.length,l,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var n=T(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.inherits(v,f),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===v&&(e&&e._writableState instanceof g)}})):p=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=e,h.isBuffer(r)||r instanceof d);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"===typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!==typeof n&&(n=m),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=h.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,E(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=y.destroy,v.prototype._undestroy=y.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(19),n(44).setImmediate,n(13))},function(e,t,n){"use strict";var r=n(33),i=n(74),o=n(75),a=n(76);o=n(75);function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},e.exports=s},function(e,t,n){"use strict";var r=n(3);var i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t){return"undefined"!==typeof e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},function(e,t,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,n){"use strict";(function(e,r){function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return m.head.insertBefore(t,r),e}}var ee="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function te(){for(var e=12,t="";e-- >0;)t+=ee[62*Math.random()|0];return t}function ne(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function re(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function ie(e){return e.size!==Q.size||e.x!==Q.x||e.y!==Q.y||e.rotate!==Q.rotate||e.flipX||e.flipY}function oe(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var ae={x:0,y:0,width:"100%",height:"100%"};function se(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function ue(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,u=e.symbol,l=e.title,c=e.extra,f=e.watchable,h=void 0!==f&&f,d=r.found?r:n,p=d.width,y=d.height,m="fa-w-".concat(Math.ceil(p/y*16)),g=[S.replacementClass,o?"".concat(S.familyPrefix,"-").concat(o):"",m].filter((function(e){return-1===c.classes.indexOf(e)})).concat(c.classes).join(" "),v={children:[],attributes:s({},c.attributes,{"data-prefix":i,"data-icon":o,class:g,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(y)})};h&&(v.attributes[w]=""),l&&v.children.push({tag:"title",attributes:{id:v.attributes["aria-labelledby"]||"title-".concat(te())},children:[l]});var b=s({},v,{prefix:i,iconName:o,main:n,mask:r,transform:a,symbol:u,styles:c.styles}),_=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.mask,a=e.transform,u=i.width,l=i.icon,c=o.width,f=o.icon,h=oe({transform:a,containerWidth:c,iconWidth:u}),d={tag:"rect",attributes:s({},ae,{fill:"white"})},p=l.children?{children:l.children.map(se)}:{},y={tag:"g",attributes:s({},h.inner),children:[se(s({tag:l.tag,attributes:s({},l.attributes,h.path)},p))]},m={tag:"g",attributes:s({},h.outer),children:[y]},g="mask-".concat(te()),v="clip-".concat(te()),b={tag:"mask",attributes:s({},ae,{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[d,m]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(t=f,"g"===t.tag?t.children:[t])},b]};return n.push(_,{tag:"rect",attributes:s({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(g,")")},ae)}),{children:n,attributes:r}}(b):function(e){var t=e.children,n=e.attributes,r=e.main,i=e.transform,o=re(e.styles);if(o.length>0&&(n.style=o),ie(i)){var a=oe({transform:i,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:s({},a.outer),children:[{tag:"g",attributes:s({},a.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:s({},r.icon.attributes,a.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(b),T=_.children,x=_.attributes;return b.children=T,b.attributes=x,u?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s({},i,{id:!0===o?"".concat(t,"-").concat(S.familyPrefix,"-").concat(n):o}),children:r}]}]}(b):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(ie(a)&&n.found&&!r.found){var u={x:n.width/n.height/2,y:.5};i.style=re(s({},o,{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(b)}var le=function(){},ce=(S.measurePerformance&&g&&g.mark&&g.measure,function(e,t,n,r){var i,o,a,s=Object.keys(e),u=s.length,l=void 0!==r?function(e,t){return function(n,r,i,o){return e.call(t,n,r,i,o)}}(t,r):t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,i=Object.keys(t).reduce((function(e,n){var r=t[n];return!!r.icon?e[r.iconName]=r.icon:e[n]=r,e}),{});"function"!==typeof P.hooks.addPack||r?P.styles[e]=s({},P.styles[e]||{},i):P.hooks.addPack(e,i),"fas"===e&&fe("fa",t)}var he=P.styles,de=P.shims,pe=function(){var e=function(e){return ce(he,(function(t,n,r){return t[r]=ce(n,e,{}),t}),{})};e((function(e,t,n){return t[3]&&(e[t[3]]=n),e})),e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in he;ce(de,(function(e,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||t||(i="fas"),e[r]={prefix:i,iconName:o},e}),{})};pe();P.styles;function ye(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function me(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,o=void 0===i?[]:i;return"string"===typeof e?ne(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(ne(e[n]),'" ')}),"").trim()}(r),">").concat(o.map(me).join(""),"")}var ge=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),t):t};function ve(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}ve.prototype=Object.create(Error.prototype),ve.prototype.constructor=ve;var be={fill:"currentColor"},_e={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},we={tag:"path",attributes:s({},be,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},Te=s({},_e,{attributeName:"opacity"});s({},be,{cx:"256",cy:"364",r:"28"}),s({},_e,{attributeName:"r",values:"28;14;28;28;14;28;"}),s({},Te,{values:"1;0;1;1;0;1;"}),s({},be,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),s({},Te,{values:"1;0;0;0;0;1;"}),s({},be,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),s({},Te,{values:"0;0;1;1;0;0;"}),P.styles;function xe(e){var t=e[0],n=e[1],r=u(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(S.familyPrefix,"-").concat(E.GROUP)},children:[{tag:"path",attributes:{class:"".concat(S.familyPrefix,"-").concat(E.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(S.familyPrefix,"-").concat(E.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}P.styles;var Ee='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';function Oe(){var e=b,t=_,n=S.familyPrefix,r=S.replacementClass,i=Ee;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}function ke(){S.autoAddCss&&!Re&&(J(Oe()),Re=!0)}function Se(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return me(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(v){var t=m.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Ce(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return ye(Ne.definitions,n,r)||ye(P.styles,n,r)}var Pe,Ne=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Q:n,i=t.symbol,o=void 0!==i&&i,a=t.mask,u=void 0===a?null:a,l=t.title,c=void 0===l?null:l,f=t.classes,h=void 0===f?[]:f,d=t.attributes,p=void 0===d?{}:d,y=t.styles,m=void 0===y?{}:y;if(e){var g=e.prefix,v=e.iconName,b=e.icon;return Se(s({type:"icon"},e),(function(){return ke(),S.autoA11y&&(c?p["aria-labelledby"]="".concat(S.replacementClass,"-title-").concat(te()):(p["aria-hidden"]="true",p.focusable="false")),ue({icons:{main:xe(b),mask:u?xe(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:v,transform:s({},Q,r),symbol:o,title:c,extra:{attributes:p,styles:m,classes:h}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:Ce(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:Ce(r||{})),Pe(n,s({},t,{mask:r}))})}).call(this,n(13),n(44).setImmediate)},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);tt?e:t+1}e.exports=e.exports.default=function(e){return(e||"")+""+n+r().toString(36)},e.exports.process=function(e){return(e||"")+n+r().toString(36)},e.exports.time=function(e){return(e||"")+r().toString(36)}}).call(this,n(19))},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){e.exports=n(120)},function(e,t,n){"use strict";(function(t,r){var i=n(36);e.exports=b;var o,a=n(64);b.ReadableState=v;n(50).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=n(67),l=n(37).Buffer,c=t.Uint8Array||function(){};var f=n(32);f.inherits=n(22);var h=n(121),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var p,y=n(122),m=n(68);f.inherits(b,u);var g=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var r=t instanceof(o=o||n(20));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(69).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||n(20),!(this instanceof b))return new b(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function _(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,E(e)}(e,a)):(i||(o=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof c||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):k(e,a)):w(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(O,e):O(e))}function O(e){d("emit readable"),e.emit("readable"),N(e)}function k(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(S,e,t))}function S(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function A(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function M(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?A(this):E(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&A(this),null;var r,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&A(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?c:b;function l(t,r){d("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,d("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",f),e.removeListener("error",m),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",y),h=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function c(){d("onend"),e.end()}o.endEmitted?i.nextTick(u):n.once("end",u),e.on("unpipe",l);var f=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,N(e))}}(n);e.on("drain",f);var h=!1;var p=!1;function y(t){d("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==M(o.pipes,e))&&!h&&(d("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function m(t){d("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",v),b()}function v(){d("onfinish"),e.removeListener("close",g),b()}function b(){d("unpipe"),n.unpipe(e)}return n.on("data",y),function(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",g),e.once("finish",v),e.emit("pipe",n),o.flowing||(d("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=a;var r=n(20),i=n(32);function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>2,s=(3&t)<<4|n>>4,u=d>1?(15&n)<<2|i>>6:64,l=d>2?63&i:64,c.push(o.charAt(a)+o.charAt(s)+o.charAt(u)+o.charAt(l));return c.join("")},t.decode=function(e){var t,n,r,a,s,u,l=0,c=0;if("data:"===e.substr(0,"data:".length))throw new Error("Invalid base64 input, it looks like a data url.");var f,h=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&h--,e.charAt(e.length-2)===o.charAt(64)&&h--,h%1!==0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|h):new Array(0|h);l>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(l++)))>>2,r=(3&s)<<6|(u=o.indexOf(e.charAt(l++))),f[c++]=t,64!==s&&(f[c++]=n),64!==u&&(f[c++]=r);return f}},function(e,t,n){"use strict";(function(t){var r=n(3),i=n(133),o=n(10),a=n(71),s=n(16),u=n(33),l=null;if(s.nodestream)try{l=n(134)}catch(h){}function c(e,n){return new u.Promise((function(i,o){var s=[],u=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",(function(e,t){s.push(e),n&&n(t)})).on("error",(function(e){s=[],o(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return r.transformTo(e,t)}}(l,function(e,n){var r,i=0,o=null,a=0;for(r=0;r=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},function(e,t,n){"use strict";var r=n(3),i=n(10);function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},e.exports=o},function(e,t,n){"use strict";var r=n(10),i=n(54);function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n(3).inherits(o,r),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},e.exports=o},function(e,t,n){"use strict";var r=n(10);t.STORE={magic:"\0\0",compressWorker:function(e){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},t.DEFLATE=n(137)},function(e,t,n){"use strict";e.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s>>8^o[255&(e^t[s])];return-1^e}},function(e,t,n){"use strict";var r=n(17),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(l){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(l){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(e,t){if(t<65534&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},t.buf2binstring=function(e){return u(e,e.length)},t.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n4)l[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return u(l,r)},t.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128===(192&e[n]);)n--;return n<0?t:0===n?t:n+a[e[n]]>t?n:t}},function(e,t,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(e,t,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t,n){"use strict";t.LOCAL_FILE_HEADER="PK\x03\x04",t.CENTRAL_FILE_HEADER="PK\x01\x02",t.CENTRAL_DIRECTORY_END="PK\x05\x06",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",t.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",t.DATA_DESCRIPTOR="PK\x07\b"},function(e,t,n){"use strict";var r=n(3),i=n(16),o=n(85),a=n(151),s=n(152),u=n(87);e.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new u(r.transformTo("uint8array",e)):new o(r.transformTo("array",e)):new a(e)}},function(e,t,n){"use strict";var r=n(86);function i(e){r.call(this,e);for(var t=0;t=0;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&r===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},function(e,t,n){"use strict";var r=n(3);function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},e.exports=i},function(e,t,n){"use strict";var r=n(85);function i(e){r.call(this,e)}n(3).inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n(95)},function(e,t,n){var r=Array.prototype.slice,i=n(114),o=n(115),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var l,c;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(u(e)){if(!u(t))return!1;if(e.length!==t.length)return!1;for(l=0;l=0;l--)if(f[l]!=h[l])return!1;for(l=f.length-1;l>=0;l--)if(c=f[l],!a(e[c],t[c],n))return!1;return typeof e===typeof t}(e,t,n))};function s(e){return null===e||void 0===e}function u(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}},function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!==typeof this[t]&&(e[t]=this[t]);return e}}r.prototype=n(117),r.prototype.loadAsync=n(149),r.support=n(16),r.defaults=n(73),r.version="3.2.0",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=n(33),e.exports=r},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r=n(59),i="function"===typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.forward_ref"):60112,d=i?Symbol.for("react.suspense"):60113;i&&Symbol.for("react.suspense_list");var p=i?Symbol.for("react.memo"):60115,y=i?Symbol.for("react.lazy"):60116;i&&Symbol.for("react.fundamental"),i&&Symbol.for("react.responder"),i&&Symbol.for("react.scope");var m="function"===typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nR.length&&R.push(e)}function M(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case a:u=!0}}if(u)return r(i,t,""===n?"."+L(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l