hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
68272b803abf234845532a4f8c18403c3eb80912
979
js
JavaScript
testManager/src/app/testManager/components/TestPlanComponent/EventCalendar/CalendarBackItem.js
choerodon/choerodon-front-test-manager
b4e81974bf2fd9bbfa0ad423df990c265408993e
[ "Apache-2.0" ]
6
2018-07-20T02:11:06.000Z
2019-04-01T05:38:43.000Z
testManager/src/app/testManager/components/TestPlanComponent/EventCalendar/CalendarBackItem.js
choerodon/choerodon-front-test-manager
b4e81974bf2fd9bbfa0ad423df990c265408993e
[ "Apache-2.0" ]
null
null
null
testManager/src/app/testManager/components/TestPlanComponent/EventCalendar/CalendarBackItem.js
choerodon/choerodon-front-test-manager
b4e81974bf2fd9bbfa0ad423df990c265408993e
[ "Apache-2.0" ]
12
2018-07-20T02:55:51.000Z
2020-01-02T09:49:25.000Z
import React, { Component } from 'react'; import { Tooltip } from 'choerodon-ui'; import moment from 'moment'; import './CalendarBackItem.scss'; class CalendarBackItem extends Component { shouldComponentUpdate(nextProps, nextState) { return !this.props.date.isSame(nextProps.date); } render() { const { date } = this.props; return ( // 周末字体颜色不同 <div className="CalendarBackItem" style={{ color: moment(date).day() === 6 || moment(date).day() === 0 ? '#303F9F' : 'black' }} > <div className="CalendarBackItem-content"> <Tooltip title={moment(date).format('LL')} placement="topLeft"> <div> {moment(date).format('dddd')} </div> <div style={{ marginTop: 5 }}> {moment(date).format('MMMDo')} </div> </Tooltip> </div> </div> ); } } CalendarBackItem.propTypes = { }; export default CalendarBackItem;
24.475
101
0.561798
6827b0bc677112613a7d618391b5aa353c38e437
240
js
JavaScript
generators/app/templates/app/repos/IamRepo_mysql.js
ccau1/generator-hexin-node
6198e6269df001345b972d3ca90ba80c2f148aff
[ "MIT" ]
null
null
null
generators/app/templates/app/repos/IamRepo_mysql.js
ccau1/generator-hexin-node
6198e6269df001345b972d3ca90ba80c2f148aff
[ "MIT" ]
null
null
null
generators/app/templates/app/repos/IamRepo_mysql.js
ccau1/generator-hexin-node
6198e6269df001345b972d3ca90ba80c2f148aff
[ "MIT" ]
null
null
null
'use strict'; const SequelizeGenericRepository = require('hexin-core/repos/SequelizeGenericRepository'); class IamRepo extends SequelizeGenericRepository { constructor(ctxt) { super(ctxt.Iam, ctxt); } } module.exports = IamRepo;
20
90
0.7625
68284a48f2e6f029d3bbd6e2c4ec58e2f40b29c5
298
js
JavaScript
drivebox/src/main/webapp/attachments/lib/zyeeda/main.js
BGCX262/zyeeda-framework-hg-to-git
11474ddd8112efc1321dd391471a851b86112753
[ "Apache-2.0" ]
null
null
null
drivebox/src/main/webapp/attachments/lib/zyeeda/main.js
BGCX262/zyeeda-framework-hg-to-git
11474ddd8112efc1321dd391471a851b86112753
[ "Apache-2.0" ]
null
null
null
drivebox/src/main/webapp/attachments/lib/zyeeda/main.js
BGCX262/zyeeda-framework-hg-to-git
11474ddd8112efc1321dd391471a851b86112753
[ "Apache-2.0" ]
null
null
null
ZUI.call(function(Z) { Z.cfg = { uploader : { totalCountUrl : '/drivebox/rs/docs/count', uploadUrl : '/drivebox/rs/docs', listUrl : '/drivebox/rs/docs' } }; ZYEEDA.com.zyeeda.zui.framework.demo.AttachmentDemo.main(Z); });
24.833333
65
0.516779
68284f53c0e13822954cb002bf70251994c3a8cf
4,244
js
JavaScript
components/data-grid/test/data-grid-selection-api.test.js
Vonage/vivid
d73b307cb3204f1ccde5493947bde32815a3aa9d
[ "Apache-2.0" ]
11
2021-10-12T20:08:24.000Z
2022-02-24T03:09:17.000Z
components/data-grid/test/data-grid-selection-api.test.js
Vonage/vivid
d73b307cb3204f1ccde5493947bde32815a3aa9d
[ "Apache-2.0" ]
202
2021-09-25T18:49:17.000Z
2022-03-30T20:04:04.000Z
components/data-grid/test/data-grid-selection-api.test.js
Vonage/vivid
d73b307cb3204f1ccde5493947bde32815a3aa9d
[ "Apache-2.0" ]
2
2021-12-12T03:10:15.000Z
2022-03-04T07:22:04.000Z
import '@vonage/vwc-data-grid'; import { getColumns, getItems } from './helper-utils.test.js'; import { waitNextTask, textToDomToParent, isolatedElementsCreation } from '../../../test/test-helpers.js'; const COMPONENT_NAME = 'vwc-data-grid'; describe('data grid selection API', () => { let addElement = isolatedElementsCreation(); it('should set item selected on select item', async () => { let fires = 0; const [g] = addElement( textToDomToParent(`<${COMPONENT_NAME}></${COMPONENT_NAME}>`) ); await waitNextTask(); g.addEventListener('selected-items-changed', () => fires++); g.columns = getColumns(); g.items = getItems(3); expect(g.selectedItems).exist; expect(g.selectedItems.length).equal(0); g.selectItem(g.items[0]); expect(g.selectedItems).exist; expect(g.selectedItems.length).equal(1); expect(g.selectedItems[0]).equal(g.items[0]); expect(fires).equal(1); }); it('should unset item selected on de-select item', async () => { let fires = 0; const [g] = addElement( textToDomToParent(`<${COMPONENT_NAME}></${COMPONENT_NAME}>`) ); await waitNextTask(); g.addEventListener('selected-items-changed', () => fires++); g.columns = getColumns(); g.items = getItems(3); g.selectItem(g.items[0]); g.deselectItem(g.items[0]); expect(g.selectedItems).exist; expect(g.selectedItems.length).equal(0); expect(fires).equal(2); }); it('should set all items selected on select all', async () => { let fires = 0; const [g] = addElement( textToDomToParent(`<${COMPONENT_NAME}></${COMPONENT_NAME}>`) ); await waitNextTask(); g.addEventListener('selected-items-changed', () => fires++); g.columns = getColumns(); g.items = getItems(3); await waitNextTask(); g.selectAll(); expect(g.selectedItems.length).equal(3); expect(fires).equal(1); }); it('should not do anything when empty items on select all', async () => { let fires = 0; const [g] = addElement( textToDomToParent(`<${COMPONENT_NAME}></${COMPONENT_NAME}>`) ); await waitNextTask(); g.addEventListener('selected-items-changed', () => fires++); g.columns = getColumns(); g.items = []; await waitNextTask(); g.selectAll(); expect(g.selectedItems.length).equal(0); expect(fires).equal(0); }); it('should unset all items selected on de-select all', async () => { let fires = 0; const [g] = addElement( textToDomToParent(`<${COMPONENT_NAME}></${COMPONENT_NAME}>`) ); await waitNextTask(); g.addEventListener('selected-items-changed', () => fires++); g.columns = getColumns(); g.items = getItems(3); await waitNextTask(); g.selectAll(); g.deselectAll(); expect(g.selectedItems.length).equal(0); expect(fires).equal(2); }); it('should set all items selected when select item used with default mode', async () => { let fires = 0; const [g] = addElement( textToDomToParent(`<${COMPONENT_NAME}></${COMPONENT_NAME}>`) ); await waitNextTask(); g.addEventListener('selected-items-changed', () => fires++); g.columns = getColumns(); g.items = getItems(3); await waitNextTask(); g.selectItem(g.items[0]); g.selectItem(g.items[1], false); expect(g.selectedItems.length).equal(2); expect(fires).equal(2); }); it('should set only one item selected when select item used with single mode', async () => { let fires = 0; const [g] = addElement( textToDomToParent(`<${COMPONENT_NAME}></${COMPONENT_NAME}>`) ); await waitNextTask(); g.addEventListener('selected-items-changed', () => fires++); g.columns = getColumns(); g.items = getItems(3); await waitNextTask(); g.selectItem(g.items[0]); g.selectItem(g.items[1], true); expect(g.selectedItems.length).equal(1); expect(g.selectedItems[0]).equal(g.items[1]); expect(fires).equal(2); }); it('should throw when select all used with data provider', async () => { const [g] = addElement( textToDomToParent(`<${COMPONENT_NAME}></${COMPONENT_NAME}>`) ); await waitNextTask(); const i = getItems(3); g.dataProvider = (_params, cb) => cb(i, i.length); g.columns = getColumns(); await waitNextTask(); expect(g.selectAll.bind(g)).throw(`'selectAll' is NOT supported when grid data supplied by 'dataProvider' method`); }); });
27.558442
117
0.660933
682961833c7efa71ad8688c6a4c9e67c7fda94d2
1,700
js
JavaScript
app/classes/search_filter.js
mattlavis-transform/ottp2
8cb17016770ac305ee4acaf7396aa1a623af6c0d
[ "MIT" ]
1
2022-03-28T12:24:00.000Z
2022-03-28T12:24:00.000Z
app/classes/search_filter.js
mattlavis-transform/ottp2
8cb17016770ac305ee4acaf7396aa1a623af6c0d
[ "MIT" ]
null
null
null
app/classes/search_filter.js
mattlavis-transform/ottp2
8cb17016770ac305ee4acaf7396aa1a623af6c0d
[ "MIT" ]
null
null
null
const SearchFilterEntry = require('./search_filter_entry'); class SearchFilter { constructor(key, value = null) { var filter_data = require('../data/search/filters.json'); var instance = filter_data[key.replace("filter_", "")]; this.key = key; this.name = instance.display; this.level = instance.level; this.values = []; if (value != null) { this.add_value(value); } } add_value(new_value) { var found = false; this.values.forEach(value => { if (value.value == new_value) { found = true; value.count += 1; } }); if (!found) { var search_filter_entry = new SearchFilterEntry(new_value); this.values.push(search_filter_entry); } } // sort_values() { // var i; // this.values.sort(); // var value_count = this.values.length; // for (i = 0; i < value_count; i++) { // var v = this.values[i]; // if (v.value.toLowerCase() == "other") { // var a = 1; // this.values = this.values.filter((n) => { return n.toLowerCase() != "other" }); // this.values.push("other"); // break; // } // } // var a = 1; // } sort_values() { this.values.sort(compare_filters); function compare_filters(a, b) { if (a.count > b.count) { return -1; } if (a.count < b.count) { return 1; } return 0; } } } module.exports = SearchFilter
27.419355
98
0.462941
6829c2a1f5151a91b551b49bc2c51076d005b308
2,289
js
JavaScript
src/client/app/widgets/footer.js
fanky5g/gnaas2
0d1fc5695d8339d3cbd9142a347009948036b5f2
[ "MIT" ]
null
null
null
src/client/app/widgets/footer.js
fanky5g/gnaas2
0d1fc5695d8339d3cbd9142a347009948036b5f2
[ "MIT" ]
null
null
null
src/client/app/widgets/footer.js
fanky5g/gnaas2
0d1fc5695d8339d3cbd9142a347009948036b5f2
[ "MIT" ]
null
null
null
(function() { 'use strict'; angular .module('gnaas.widgets') .directive('footerTemplate', Footer); function Footer() { var templateString = [ '<footer class="footer">', '<div class="footer-container" layout="column">', '<div layout="row" layout-sm="column">', '<div flex="45" flex-sm="100" class="social-links" layout="row" layout-align="center center">', '<div class="social-link">', '<a href="https://www.facebook.com/gnaas2015" target="_blank">', '<i class="fa fa-facebook"></i>', '</a>', '</div>', '<div class="social-link">', '<a href="https://twitter.com/gnaasgh" target="_blank">', '<i class="fa fa-twitter"></i>', '</a>', '</div>', '<div class="social-link">', '<a href="https://www.youtube.com/channel/UCgH3ShIjeuBTTopQeg6aXAA" target="_blank">', '<i class="fa fa-youtube-play"></i>', '</a>', '</div>', '<div class="social-link">', '<a href="https://plus.google.com/u/0/107903844483698496222" target="_blank">', '<i class="fa fa-google-plus"></i>', '</a>', '</div>', '</div>', '<div class="links" flex="55" flex-sm="100" layout="column" layout-align="center">', '<ul>', '<li>', '<a target="_blank" href="http://ug.gnaas.org/">University of Ghana</a>', '</li>', '<li>', '<a target="_blank" href="http://udsnav.gnaas.org/">University of Development Studies, Navrongo Campus</a>', '</li>', '<li>', '<a target="_blank" href="http://knust.gnaas.org/">University of Science and Technology</a>', '</li>', '</ul>', '</div>', '</div>', '<div layout="row" class="copyright" layout-fill>', '<p>&copy;{{Date | date : "yyyy"}} GNAAS</p>', '</div>', '</div>', '</footer>' ].join('\n'); return { restrict: 'E', replace: true, template: templateString }; } })();
35.215385
120
0.447357
6829fd7a80df7a0aa4965d3dd79f3bd6db7198c3
3,563
js
JavaScript
js/hangman.js
gaurav512/Hangman-game
084f9fa084022187d38d3e5502391caf1dff0355
[ "MIT" ]
1
2020-11-12T12:56:07.000Z
2020-11-12T12:56:07.000Z
js/hangman.js
gaurav512/Hangman-game
084f9fa084022187d38d3e5502391caf1dff0355
[ "MIT" ]
null
null
null
js/hangman.js
gaurav512/Hangman-game
084f9fa084022187d38d3e5502391caf1dff0355
[ "MIT" ]
null
null
null
let phrases = [ "FRIENDS", "SILICON-VALLEY", "BREAKING-BAD", "THE-OFFICE", "GAME-OF-THRONES", "THE-BIG-BANG-THEORY", "STAR-WARS", "LORD-OF-THE-RINGS", "THE-GODFATHER", "IRON-MAN", "BATMAN", "HARRY-POTTER", "TAYLOR-SWIFT", "JOHN-LENNON", "FREDDIE-MERCURY", "LADY-GAGA", "EMINEM", "ED-SHEERAN" ]; let phrase_hint = [ "Stars six main characters", "Bay Area", "The greatest cooking show ever", "A documentary about paper", "Anti-climatic", "187IQ", "4th May", "You shall pass this question", "The greatest film ever?", "3000", "When a billionaire cosplays", "Boy spends 7 years third-wheeling", "Breakup song", "Jesus?", "Closest to the sun", "A grammy + an Oscar", "Wtf did he say?", "BODMAS rule" ]; let phrase_category = [ "TV Show", "Movie Franchise", "Singer" ]; let answer = ""; let maxwrong = 6; let mistakes = 0; let guessed = ['-']; let wordStatus = null; let category = ""; let hint = ""; function randomWord() { let randomIndex = Math.floor(Math.random() * phrases.length); answer = phrases[randomIndex]; category = phrase_category[Math.floor(Number(randomIndex)/6)]; hint = phrase_hint[randomIndex]; console.log(category); document.getElementById("category").innerHTML = "Category: " + category; } function generateButtons() { let buttonsList1 = 'ABCDEFGHIJKLM'.split('').map(letter => ` <button class="btn btn-lg btn-primary m-2" id='` + letter + `' onClick="handleGuess('` + letter + `')" > `+ letter +`</button>` ).join(' '); let buttonsList2 = 'NOPQRSTUVWXYZ'.split('').map(letter => ` <button class="btn btn-lg btn-primary m-2" id='` + letter + `' onClick="handleGuess('` + letter + `')" > `+ letter +`</button>` ).join(' '); document.getElementById('keyboard').innerHTML = buttonsList1 + '<br>' + buttonsList2; } function handleGuess(selectedLetter) { guessed.indexOf(selectedLetter) == -1 ? guessed.push(selectedLetter) : null; document.getElementById(selectedLetter).setAttribute('disabled', true); if(answer.indexOf(selectedLetter) >= 0) { guessedWord(); checkWin(); } else { mistakes++; updateMistakes(); checkLoss(); } } function checkWin() { if(wordStatus.split(' ').join('') == answer.split('-').join('')) { document.getElementById('keyboard').innerHTML = wordStatus + " is correct! You Won!!!"; document.getElementById('hangmanpic').src = "./imgs/0.png" } } function checkLoss() { if(mistakes == maxwrong) { document.getElementById('wordSpotlight').innerHTML = "The answer was: " + answer.split('-').join(' '); document.getElementById('keyboard').innerHTML = "You Lost :("; } } function updateMistakes() { document.getElementById('mistakes').innerHTML = mistakes; document.getElementById('hangmanpic').src = "./imgs/" + mistakes + ".png" } function guessedWord() { wordStatus = answer.split('').map(letter => (letter == '-' ? ' ' : (guessed.indexOf(letter) >= 0 ? letter+' ' : "_ "))).join(''); document.getElementById("wordSpotlight").innerHTML ='<pre>' + wordStatus + '</pre>'; } function reset() { mistakes = 0; guessed = ['-']; wordStatus = null; category = null; hint = null; document.getElementById('hangmanpic').src = "./imgs/0.png"; document.getElementById("category").innerHTML = ""; randomWord(); guessedWord(); updateMistakes(); generateButtons(); } function getHint() { document.getElementById("myPopup").innerHTML = hint; document.getElementById("myPopup").classList.toggle("show"); } document.getElementById('maxWrong').innerHTML = maxwrong; randomWord(); generateButtons(); guessedWord();
22.408805
131
0.661802
682a7b9987c04ea0c6f0d2441dd3d9ee8aa052e9
398
js
JavaScript
tests/where.js
Chrisly01559/shopify-monitor
e5cd3e287f41a747da69bf77bca22bf6b63a00fa
[ "MIT", "Unlicense" ]
1
2019-03-19T06:08:44.000Z
2019-03-19T06:08:44.000Z
tests/where.js
Chrisly01559/shopify-monitor
e5cd3e287f41a747da69bf77bca22bf6b63a00fa
[ "MIT", "Unlicense" ]
null
null
null
tests/where.js
Chrisly01559/shopify-monitor
e5cd3e287f41a747da69bf77bca22bf6b63a00fa
[ "MIT", "Unlicense" ]
null
null
null
const _ = require('underscore'); var products = [ { "name": "lol", "loc": [ "https://shop.dertbag.us/products/dertbag-academy-champion-t-shirt" ], "lastmod": [ "2016-05-20T17:20:00-04:00" ] } ] var val = products.find(function (o) { return o.loc[0] == ["httpproducts/dertbag-academy-champion-t-shirt"]; }); if (val == null) { console.log("null lol"); }
19.9
112
0.572864
682aa402ec3b719f75f2588af2cbad836fd3b8d2
1,172
js
JavaScript
dist-mdi/mdi/linux.js
maciejg-git/vue-bootstrap-icons
bc60cf77193e15cc72ec7eb7f9949ed8b552e7ec
[ "MIT", "CC-BY-4.0", "MIT-0" ]
null
null
null
dist-mdi/mdi/linux.js
maciejg-git/vue-bootstrap-icons
bc60cf77193e15cc72ec7eb7f9949ed8b552e7ec
[ "MIT", "CC-BY-4.0", "MIT-0" ]
null
null
null
dist-mdi/mdi/linux.js
maciejg-git/vue-bootstrap-icons
bc60cf77193e15cc72ec7eb7f9949ed8b552e7ec
[ "MIT", "CC-BY-4.0", "MIT-0" ]
null
null
null
import { h } from 'vue' export default { name: "Linux", vendor: "Mdi", type: "", tags: ["linux"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name":"mdi-linux","innerHTML":"<path d='M14.62,8.35C14.2,8.63 12.87,9.39 12.67,9.54C12.28,9.85 11.92,9.83 11.53,9.53C11.33,9.37 10,8.61 9.58,8.34C9.1,8.03 9.13,7.64 9.66,7.42C11.3,6.73 12.94,6.78 14.57,7.45C15.06,7.66 15.08,8.05 14.62,8.35M21.84,15.63C20.91,13.54 19.64,11.64 18,9.97C17.47,9.42 17.14,8.8 16.94,8.09C16.84,7.76 16.77,7.42 16.7,7.08C16.5,6.2 16.41,5.3 16,4.47C15.27,2.89 14,2.07 12.16,2C10.35,2.05 9,2.81 8.21,4.4C8,4.83 7.85,5.28 7.75,5.74C7.58,6.5 7.43,7.29 7.25,8.06C7.1,8.71 6.8,9.27 6.29,9.77C4.68,11.34 3.39,13.14 2.41,15.12C2.27,15.41 2.13,15.7 2.04,16C1.85,16.66 2.33,17.12 3.03,16.96C3.47,16.87 3.91,16.78 4.33,16.65C4.74,16.5 4.9,16.6 5,17C5.65,19.15 7.07,20.66 9.24,21.5C13.36,23.06 18.17,20.84 19.21,16.92C19.28,16.65 19.38,16.55 19.68,16.65C20.14,16.79 20.61,16.89 21.08,17C21.57,17.09 21.93,16.84 22,16.36C22.03,16.1 21.94,15.87 21.84,15.63' />"}, ) } }
90.153846
1,014
0.62372
682af5a145c87aabb61120bd7eecd38fcce6a631
1,282
js
JavaScript
practice/instance/index.js
jiaen188/vue-ssr-demo
055c33a85284cd9cd1e89a454b80467a40bd4a4d
[ "MIT" ]
null
null
null
practice/instance/index.js
jiaen188/vue-ssr-demo
055c33a85284cd9cd1e89a454b80467a40bd4a4d
[ "MIT" ]
null
null
null
practice/instance/index.js
jiaen188/vue-ssr-demo
055c33a85284cd9cd1e89a454b80467a40bd4a4d
[ "MIT" ]
null
null
null
import Vue from 'vue' const app = new Vue({ // el: '#root', template: '<div ref="div">{{text}} {{obj.a}}</div>', data: { text: 0, obj: {} } // watch: { // text (newText, oldText) { // console.log(`${newText} : ${oldText}`) // } // } }) app.$mount('#root') let i = 0 setInterval(() => { i++ // app.text += 1 // app.text += 1 // app.text += 1 // app.text += 1 // app.text += 1 // app.obj.a = i app.$set(app.obj, 'a', i) // app.$forceUpdate() // app.$options.data.text += 1 // app.$data.text += 1 }, 1000) // console.log(app.$data) // console.log(app.$props) // console.log(app.$el) // console.log(app.$options) // app.$options.render = (h) => { // return h('div', {}, 'new render function') // } // console.log(app.$root === app) // console.log(app.$children) // console.log(app.$slots) // console.log(app.$scopedSlots) // console.log(app.$refs) // console.log(app.$isServer) // const unWatch = app.$watch('text', (newText, oldText) => { // console.log(`${newText} : ${oldText}`) // }) // setTimeout(() => { // unWatch() // }, 2000) // 监听一次,相比$on // app.$once('test', (a, b) => { // console.log(`test emited ${1} ${b}`) // }) // setInterval(() => { // app.$emit('test', 1, 2) // }, 1000) // app.$forceUpdate()
19.723077
61
0.519501
682b8c2b1aca9f468de2af9cc84d4646f328b7d0
1,196
js
JavaScript
src/App.js
imsmit/my-react-apps
89acb38e66238bbff9daea78d1a66538f3fb5b18
[ "MIT" ]
1
2019-12-22T20:13:44.000Z
2019-12-22T20:13:44.000Z
src/App.js
imsmit/my-react-apps
89acb38e66238bbff9daea78d1a66538f3fb5b18
[ "MIT" ]
23
2019-12-13T03:55:30.000Z
2021-01-05T18:32:50.000Z
src/App.js
imsmit/my-react-apps
89acb38e66238bbff9daea78d1a66538f3fb5b18
[ "MIT" ]
null
null
null
import React, { Component } from "react"; import { BrowserRouter, Route, Switch } from "react-router-dom"; import "./scss/App.scss"; import { AppData } from "./config"; import Header from "./components/Header"; import Tasker from "./components/tasker/Tasker"; import Weather from "./components/weather/Weather"; import DateCalculator from "./components/date-calculator/DateCalculator"; class App extends Component { constructor(props) { super(props); this.state = {}; this.navlinks = [ { title: "Days calculator", to: "/" }, { title: "Weather", to: "/weather" }, { title: "Tasker (Beta)", to: "/tasker" }, ]; } render() { let { appTitle, themeColor } = AppData; return ( <BrowserRouter> <Header title={appTitle} links={this.navlinks} background={themeColor} /> <Switch> <Route exact path="/" component={DateCalculator} /> <Route path="/weather" component={Weather} /> <Route path="/tasker" component={Tasker} /> <Route path="/days-calc" component={DateCalculator} /> </Switch> </BrowserRouter> ); } } export default App;
26
73
0.597826
682c2e87708c76b0cb993600d8a042a8fd69b546
7,074
js
JavaScript
www/src/pages/features.js
cwlsn/gatsby
165d0ec1da5ae6bd85d7c6a7f3776e0dcbadcfb5
[ "MIT" ]
null
null
null
www/src/pages/features.js
cwlsn/gatsby
165d0ec1da5ae6bd85d7c6a7f3776e0dcbadcfb5
[ "MIT" ]
null
null
null
www/src/pages/features.js
cwlsn/gatsby
165d0ec1da5ae6bd85d7c6a7f3776e0dcbadcfb5
[ "MIT" ]
1
2018-10-09T16:38:48.000Z
2018-10-09T16:38:48.000Z
import React, { Component } from "react" import { graphql } from "gatsby" import Helmet from "react-helmet" import Layout from "../components/layout" import EvaluationTable from "../components/evaluation-table" import EvaluationCell from "../components/evaluation-cell" import FuturaParagraph from "../components/futura-paragraph" import { itemListFeatures } from "../utils/sidebar/item-list" import Container from "../components/container" import { options, rhythm } from "../utils/typography" import presets, { colors } from "../utils/presets" const legendBorderColor = colors.ui.light const LegendTable = () => { const legendBallStyle = { float: `none`, marginLeft: 0, marginRight: 0, display: `inline-block`, } const legendBallCellStyle = { display: `table-cell`, verticalAlign: `middle`, textAlign: `center`, padding: 10, borderLeft: `1px solid ${legendBorderColor}`, borderBottom: `1px solid ${legendBorderColor}`, } const legendExplanationCellStyle = { display: `table-cell`, verticalAlign: `middle`, textAlign: `center`, padding: 10, borderLeft: `1px solid ${legendBorderColor}`, borderBottom: `1px solid ${legendBorderColor}`, [presets.Phablet]: { borderBottom: 0, }, } const balls = [ <div css={legendBallCellStyle}> <h4 style={{ margin: 0 }}>Icon</h4> </div>, <div css={legendBallCellStyle}> <EvaluationCell num="3" style={legendBallStyle} /> </div>, <div css={legendBallCellStyle}> <EvaluationCell num="2" style={legendBallStyle} /> </div>, <div css={legendBallCellStyle}> <EvaluationCell num="1" style={legendBallStyle} /> </div>, <div css={legendBallCellStyle}> <EvaluationCell num="0" style={legendBallStyle} /> </div>, ] const legendText = [ <div css={legendExplanationCellStyle}> <h5 style={{ margin: 0 }}>Feature Availability</h5> </div>, <div css={legendExplanationCellStyle}>Out of the box</div>, <div css={legendExplanationCellStyle}>Plugins available</div>, <div css={legendExplanationCellStyle}>Needs customization</div>, <div css={legendExplanationCellStyle}>Not possible</div>, ] return ( <div> <Helmet> <title>Features</title> </Helmet> <div css={{ border: `1px solid ${legendBorderColor}`, borderLeft: 0, fontFamily: options.headerFontFamily.join(`,`), display: `none`, [presets.Phablet]: { display: `table`, }, }} > <div css={{ display: `table-row` }}>{balls}</div> <div css={{ display: `table-row` }}>{legendText}</div> </div> <div css={{ display: `table`, border: `1px solid ${legendBorderColor}`, borderLeft: 0, fontFamily: options.headerFontFamily.join(`,`), [presets.Phablet]: { display: `none`, }, }} > {[0, 1, 2, 3, 4].map(i => ( <div css={{ display: `table-row` }} key={i}> {balls[i]} {legendText[i]} </div> ))} </div> </div> ) } const FeaturesHeader = () => ( <section> <h1 id="introduction" style={{ marginTop: 0 }}> Features </h1> <FuturaParagraph> There are many ways to build a website. If you're considering Gatsby, you may also be looking at some alternatives: </FuturaParagraph> <ul css={{ fontFamily: options.headerFontFamily.join(`,`) }}> <li> <b>Traditional static site generators</b> such as {` `} <a href="http://jekyllrb.com/">Jekyll</a> let you put text or markdown in a specific directory such as <code>pages/</code> in a version-controlled codebase. They then build a specific kind of site, usually a blog, as HTML files from the content you've added. These files can be cached and served from a CDN. </li> <li> <b>Content Management Systems</b> (CMSs) like {` `} <a href="http://wordpress.org/">Wordpress</a> give you an online text editor to create content. You customize the look and feel through choosing themes and plugins, or writing custom PHP or Javascript code. Content is saved in a database, which is retrieved and sent to users when they visit the website. Depending on your requirements you can self-host your website, or use an official hosting provider. </li> <li> <b>Site builders</b> like {` `} <a href="http://squarespace.com/">Squarespace</a> are a type of hosted closed-source CMS. They focus on making it fast to build a website; however, they don't allow self-hosting or enable you to export your website and customize it. </li> </ul> <FuturaParagraph> The chart below details Gatsby's capabilities in comparison with a representative from each category. Click on any row to see a more detailed explanation on that feature and our rating for each system. </FuturaParagraph> <h6 id="legend" css={{ textTransform: `uppercase` }}> Legend </h6> <LegendTable /> </section> ) const getFeaturesData = function(data) { const sections = (data || []) .map((row, i) => (row.node.Category ? i : -1)) .filter(rowNum => rowNum !== -1) .map((rowNum, i, arr) => { if (i < arr.length - 1) { return [rowNum, arr[i + 1]] } return [rowNum, data.length] }) .map(bounds => data.slice(bounds[0], bounds[1])) const sectionHeaders = (data || []) .filter(row => row.node.Category) .map(row => row.node.Category) return { sectionHeaders, sections, } } const FeaturesFooter = () => ( <p css={{ fontSize: `80%`, marginTop: rhythm(1) }}> Want to help keep this information complete, accurate, and up-to-date? Please comment {` `} <a href="https://github.com/gatsbyjs/gatsby/issues/2444" target="_blank" rel="noopener noreferrer" > here. </a> </p> ) class FeaturesPage extends Component { render() { const { sections, sectionHeaders } = getFeaturesData( this.props.data.allGatsbySpecsCsv.edges ) return ( <Layout location={this.props.location} itemList={itemListFeatures} enableScrollSync={true} > <Container> <main id={`reach-skip-nav`}> <FeaturesHeader /> <EvaluationTable sections={sections} sectionHeaders={sectionHeaders} /> <FeaturesFooter /> </main> </Container> </Layout> ) } } export default FeaturesPage export const pageQuery = graphql` query { allGatsbySpecsCsv { edges { node { Category Subcategory Feature Gatsby Wordpress Squarespace Jekyll Description } } } } `
28.409639
80
0.592027
682c76382fc81ccd00bb1c8f2015c1c11e6a6002
1,758
js
JavaScript
src/utils/common.js
mihajlolazar/react-draft-wysiwyg
f3abdd83f989d8c6bf5fa69e7e69e4bb104825a5
[ "MIT" ]
null
null
null
src/utils/common.js
mihajlolazar/react-draft-wysiwyg
f3abdd83f989d8c6bf5fa69e7e69e4bb104825a5
[ "MIT" ]
null
null
null
src/utils/common.js
mihajlolazar/react-draft-wysiwyg
f3abdd83f989d8c6bf5fa69e7e69e4bb104825a5
[ "MIT" ]
null
null
null
/* @flow */ /** * Utility function to execute callback for eack key->value pair. */ export function forEach(obj: Object, callback: Function) { if (obj) { for (const key in obj) { // eslint-disable-line no-restricted-syntax if ({}.hasOwnProperty.call(obj, key)) { callback(key, obj[key]); } } } } export function hasProperty(obj: Object, property: string) { let result = false; if (obj) { for (const key in obj) { // eslint-disable-line no-restricted-syntax if ({}.hasOwnProperty.call(obj, key) && property === key) { result = true; break; } } } return result; } /** * The function returns true if the string passed to it has no content. */ export function isEmptyString(str: string): boolean { return !str || !str.trim() } /** * The function will return true for simple javascript object, * which is not any other built in type like Array. */ export function isMap(obj) { return Object.prototype.toString.call(obj) === '[object Object]'; } /** * The function will return filter out props fron and return new props. */ export function filter(obj, keys) { const filteredKeys = Object.keys(obj).filter(key => keys.indexOf(key) < 0); const filteredObject = {}; if (filteredKeys && filteredKeys.length > 0) { filteredKeys.forEach((key) => { filteredObject[key] = obj[key]; }); } return filteredObject; } export function stopPropagation(event) { event.stopPropagation(); } export const getFileExtension = (fileName: string) => { return fileName.split('.').pop().toLowerCase(); }; export const isImage = (imageName: string) => { const extension = getFileExtension(imageName); return ['jpg','jpeg','png','svg','gif'].indexOf(extension) > -1; };
24.760563
77
0.652446
682d1675a03236bd98f49ee8fbcbfe5dfaed3bc9
451
js
JavaScript
assets/bower_components/ckeditor/plugins/uploadwidget/lang/hr-MazHep.js
dicky54putra/ycpt
f2c23ad2f4021ab716a597e138144312d6352536
[ "MIT" ]
null
null
null
assets/bower_components/ckeditor/plugins/uploadwidget/lang/hr-MazHep.js
dicky54putra/ycpt
f2c23ad2f4021ab716a597e138144312d6352536
[ "MIT" ]
null
null
null
assets/bower_components/ckeditor/plugins/uploadwidget/lang/hr-MazHep.js
dicky54putra/ycpt
f2c23ad2f4021ab716a597e138144312d6352536
[ "MIT" ]
1
2020-12-17T11:39:37.000Z
2020-12-17T11:39:37.000Z
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("uploadwidget","hr",{abort:"Slanje prekinuto od strane korisnika",doneOne:"Datoteka uspješno poslana.",doneMany:"Uspješno poslano %1 datoteka.",uploadOne:"Slanje datoteke ({percentage}%)...",uploadMany:"Slanje datoteka, {current} od {max} gotovo ({percentage}%)..."});
90.2
293
0.725055
682d9f3c4ab60ced4b997ec77ce116f17e1287f3
13,304
js
JavaScript
src/app.js
Manthee1/qcl
2d7a7f14593b6f927a22446179a46fa23d9d1839
[ "MIT" ]
2
2021-04-02T22:57:01.000Z
2021-04-26T11:56:02.000Z
src/app.js
Manthee1/qcl
2d7a7f14593b6f927a22446179a46fa23d9d1839
[ "MIT" ]
null
null
null
src/app.js
Manthee1/qcl
2d7a7f14593b6f927a22446179a46fa23d9d1839
[ "MIT" ]
null
null
null
const views = { startingView: "Test", _: "./src/views/", //root path to the views directory list: { GoodbyeWorldView: { src: "GoodbyeWorldView.html" }, HelloWorldView: { src: "HelloWorldView.html" }, Test: { src: "Test.html" }, //Same as for components. //You can call router.setView(nameOfTheViewDefinedInThisList) and change the view. } } const components = { _: "./src/components/", //root path to the components directory list: { HelloWorld: { src: "HelloWorld.html" }, GoodbyeWorld: { src: "GoodbyeWorld.html" }, // HelloWorld - tag name that will be overwritten with the html of the source file // HelloWorld.html - is the html file that contains the component html // If a a component is not defined but it's html file is the "components" or what ever you put as the source dir. Then it will try and load it (given that the tag name is lowercase) // h.html works that way! It's not listed here but if it exists in the view than it will be loaded. }, styles: {}, // Leave empty scripts: {}, eventListenerList: ["abort", "afterprint", "animationend", "animationiteration", "animationstart", "beforeprint", "beforeunload", "blur", "canplay", "canplaythrough", "change", "click", "contextmenu", "copy", "cut", "dblclick", "drag", "dragend", "dragenter", "dragleave", "dragover", "dragstart", "drop", "durationchange", "ended", "error", "focus", "focusin", "focusout", "fullscreenchange", "fullscreenerror", "hashchange", "input", "invalid", "keydown", "keypress", "keyup", "load", "loadeddata", "loadedmetadata", "loadstart", "message", "mousedown", "mouseenter", "mouseleave", "mousemove", "mouseover", "mouseout", "mouseup", "mousewheel", "offline", "online", "open", "pagehide", "pageshow", "paste", "pause", "play", "playing", "popstate", "progress", "ratechange", "resize", "reset", "scroll", "search", "seeked", "seeking", "select", "show", "stalled", "storage", "submit", "suspend", "timeupdate", "toggle", "touchcancel", "touchend", "touchmove", "touchstart", "transitionend", "unload", "volumechange", "waiting", "wheel",], parse: async function (componentName) { const componentSelector = componentName + ":not([___parsing])"; if (!isDefined(document.querySelector(componentSelector))) { return true } let componentPath = componentName + '.html' if (!isObjectEmpty(this.list[componentName]) && !isTextEmpty(this.list[componentName].src)) componentPath = this.list[componentName].src console.log("Parsing", componentPath); let componentData, componentText; // Fetch the component try {// Try catch so that nonexisting components don't throw errors. componentData = await fetch(this._ + componentPath) componentText = await componentData.text() } catch (e) { componentData = { ok: false } } if (componentData.ok == true) { // For every same component tag apply the fetched data for (const x of document.querySelectorAll(componentSelector)) { x.setAttribute('___parsing', true); // Generate a component id and create a object let generatedId = null; while (true) { generatedId = Math.round(Math.random() * 1000) if (!exportData._.includes(generatedId)) { exportData._.push(generatedId); exportData[generatedId] = { _id: generatedId, componentName: componentName, elements: [], data: {}, updateElements: function () { console.log(this._id, '`' + x.markup + '`'); this.elements.forEach(x => { console.log(x, x.getElement()); x.getElement().innerHTML = exportData.run(this._id, '`' + x.markup + '`'); }) } }; break; } } // Add the fetched data to the tag x.innerHTML += componentText // Run all script tags and remove them document.querySelectorAll("script[local]").forEach(x => { eval(x.innerHTML); x.remove(); }) // Parse the import data await this.import('css') await this.import('js') //Mark elements that are components with the '___component' attribute for (const element of x.querySelectorAll("import[type='components']")) { componentsArray = element.getAttribute('src').split(' ') componentsArray.forEach(componentName => x.querySelectorAll(componentName).forEach(component => component.setAttribute('___component', true))) } let i = 0; // Add a class name referencing the component object and parse the markup for (const element of x.querySelectorAll("*:not(import):not([___component])")) { element.classList.add(componentName + '-' + generatedId) parsedMarkup = element.innerHTML.replaceAll('{{', '${').replaceAll("}}", "}") element.innerHTML = exportData.run(generatedId, '`' + parsedMarkup + '`') const idAttribute = `${componentName}-${generatedId}-${i++}` const elementObj = { getElement: function () { return document.querySelector(`[___id="${this._id}"]`) }, _id: idAttribute, markup: parsedMarkup } if (!element.hasAttribute("___id")) { element.setAttribute('___id', idAttribute) element.setAttribute('___component-id', generatedId) } exportData[generatedId].elements.push(elementObj); } //Overwrite the component initializer with the component. x.outerHTML = x.innerHTML; //Run the code of the onDeploy function from the exportData of the component if (isFunction(exportData[generatedId].data.onDeploy)) { exportData[generatedId].data.run = function () { exportData[generatedId].data.onDeploy() } exportData[generatedId].data.run() } await this.import('components') } //Adds a event listener for every existing listener. this.eventListenerList.forEach(eventListener => { for (const x of document.querySelectorAll(`*[--${eventListener}]`)) { let clickAction = x.getAttribute(`--${eventListener}`); x.removeAttribute(`--${eventListener}`); if (isDefined(clickAction)) { let componentId = x.closest('[___component-id]').getAttribute('___component-id') x.addEventListener(eventListener, e => { exportData.run(componentId, clickAction); }) } } }); } else throw `There is no entry for ${componentName} in the component list` }, //Run parser for each component run: async function () { let componentIndex = {}; for (const component of Object.keys(this.list)) { const componentName = component componentIndex[componentName] = true // Value is useless here so it does not matter what it is assigned as.. } for (const component of document.body.querySelectorAll("*")) { const componentName = component.localName componentIndex[componentName] = true // Value is useless here so it does not matter what it is assigned as.. } for (const componentName of Object.keys(componentIndex)) { this.parse(componentName); } }, //Parse the import tags and import the specified things... import: async function (typeToImport = "") { typeToImport = typeToImport || ""; return new Promise(async (resolve) => { let elements = typeToImport == "" ? document.querySelectorAll(`import`) : document.querySelectorAll(`import[type='${typeToImport}']`) for (const x of elements) { let type = x.getAttribute('type').trim() let src = x.getAttribute('src').trim() switch (type) { //Simple checks and add a link element to the <head> case "css": const force = isDefined(x.getAttribute('force')); const fixed = isDefined(x.getAttribute('fixed')); if (!isDefined(this.styles[src]) || force) { const cssLink = document.querySelector('html').querySelector(`[href='${src}']`) if (force && isDefined(cssLink)) { cssLink.remove(); } document.querySelector('head').insertAdjacentHTML('beforeend', `<link type="text/css" rel="stylesheet" href=${src}>`) this.styles[src] = { fixed: fixed }; } break; //Parse the imported components case "components": let componentsList = src.split(" "); for (let componentName of componentsList) { console.log("Component Import ", componentName); componentName = componentName.trim(); await this.parse(componentName); } break; //Fetch javascript and execute it case "js": if (!isDefined(this.scripts[src])) { let jsText = await fetch(src); jsText = await jsText.text(); this.scripts[src] = { text: await jsText }; await eval(await jsText); } else eval(this.scripts[src].text) break; default: break; } x.remove() } resolve(true) }); }, } router = { setView: async function (name) { if (isDefined(views.list[name])) { //Fetch the view html let viewData = await fetch(views._ + views.list[name].src); document.querySelector("body").innerHTML = await viewData.text() //Create the export data object exportData = { _: [], run: function (id, code) { this[id].data.run = function () { return eval(code) }; return this[id].data.run(); }, } //Remove all the unfixed styles from <head> Object.entries(components.styles).forEach(x => { if (!x[1].fixed) { delete components.styles[x[0]] const cssLink = document.querySelector('html').querySelector(`[href='${x[0]}']`) if (isDefined(cssLink)) cssLink.remove() } }) components.run(); return true } throw `There is no entry for ${name} in the views list` }, } //Parses a component js export object function exportLocal(obj) { //Verify that obj is an object and is not empty or return; if (!isDefined(obj) || !isObject(obj)) return; let lastId = exportData._.slice(-1) exportData[lastId].data = obj //Also verify that obj.data is an object and is not empty or return; if (!isDefined(obj.data) || !isObject(obj.data)) return; Object.keys(obj.data).forEach(x => { Object.defineProperty(exportData[lastId].data, x, { set: function (val) { this.data[x] = val; console.log('we settin ' + x + ' to:', val); exportData[lastId].updateElements() }, get: function (val) { return this.data[x] }, }) }) } let isDefined = el => { if (typeof el == "undefined" || el == null) return false; else return true; } let isObject = obj => isDefined(obj) && Object.prototype.toString.call(obj) == "[object Object]" let isObjectEmpty = obj => { if (isDefined(obj)) return Object.entries(obj).length == 0 else return true } let isFunction = func => { if (isDefined(func) && typeof func == "function") return true return false } let isArrayEmpty = arr => { if (isDefined(arr) && typeof arr == "Object") return arr.length == 0 } let isTextEmpty = x => { return (x.toString().trim().length == 0); } window.onload = async (event) => { router.setView(views.startingView) }
45.875862
1,042
0.532171
682f7cb7348a5483b24d9ffe89f2681e2f30b368
1,945
js
JavaScript
src/i18n/lang/mt.js
aaashutoshmishra/test
9bbd64838347c44d584c0d22895227a40b479e04
[ "MIT" ]
null
null
null
src/i18n/lang/mt.js
aaashutoshmishra/test
9bbd64838347c44d584c0d22895227a40b479e04
[ "MIT" ]
null
null
null
src/i18n/lang/mt.js
aaashutoshmishra/test
9bbd64838347c44d584c0d22895227a40b479e04
[ "MIT" ]
null
null
null
export default { errors: { errorLabel: 'Żball', invalidBlockcerts: 'Mhux kredenzjal validu ta \'Blockcerts\'. Jekk jogħġbok iċċekkja ma \'l-emittent jew ir-riċevitur li pprovda din il-kredenzjali.', invalidBlockcertsUrl: 'Il-URL taċ-ċertifikat mhuwiex validu', invalidFormatDragAndDrop: 'Only JSON files are accepted', invalidUrl: 'This does not seem to be a valid URL.', noDownloadLink: 'No link provided for download!', noMetadata: 'No metadata specified for this record', noShareUrl: 'No URL to share!', noTransactionId: 'No transaction ID' }, text: { brandName: 'Blockcerts', blockcertsHint: 'Visit Blockcerts website', by: 'by', certified: 'Certified by', certIdURL: 'Record URL', closeButton: 'Click to close', downloadLink: 'Download Record in JSON format', dragAndDropHint: '(you can also drag & drop your file).', fileUpload: 'Choose JSON file', issued: 'Issued on', issueDate: 'Issue Date', issuerName: 'Issuer', issuerPublicKey: 'Issuer\'s public key', issuerURL: 'Issuer profile URL', item: 'Item', itemPlural: 'Items', metadataButton: 'View Metadata', metadataTitle: 'Certificate Metadata', motto: 'Blockcerts, The Open Standard for Blockchain Credentials', recipient: 'Recipient', share: 'Share on', shareButton: 'Share on Social Networks', signed: 'Signed by', substepsListClose: 'Hide', substepsListHint: 'Toggle open list of substeps', transactionId: 'Transaction ID', urlInput: 'Enter the certificate URL', urlInputPlaceholder: 'Certificate URL', verificationStepProgress: 'Verifying step...', verify: 'Verify', verifyAgain: 'Verify again', verifyOther: 'Verify another record', viewRecord: 'View Record' }, date: { months: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec'], pattern: 'MM DD, YYYY' } };
36.698113
154
0.667352
6830e2fba7e9f2f678cb069ad1b0cee0d5cfd30a
1,146
js
JavaScript
Semana-4/SpeedDial/src/js/routes.js
artur309/Formacao-ANPRI-Desenvolvimento-Mobile-com-Tecnologia-Web
a800742dec4d6ca646c0faec5fe9e7985ca247e0
[ "MIT" ]
null
null
null
Semana-4/SpeedDial/src/js/routes.js
artur309/Formacao-ANPRI-Desenvolvimento-Mobile-com-Tecnologia-Web
a800742dec4d6ca646c0faec5fe9e7985ca247e0
[ "MIT" ]
null
null
null
Semana-4/SpeedDial/src/js/routes.js
artur309/Formacao-ANPRI-Desenvolvimento-Mobile-com-Tecnologia-Web
a800742dec4d6ca646c0faec5fe9e7985ca247e0
[ "MIT" ]
null
null
null
import HomePage from '../pages/home.f7.html'; import ContatosPage from '../pages/contatos.f7.html'; import DetalhesPage from '../pages/detalhes.f7.html'; import NotFoundPage from '../pages/404.f7.html'; import ListAlunos from './alunos.json'; var routes = [ { path: '/', component: HomePage, }, { path: '/contatos/', async: function (routeTo, routeFrom, resolve, reject) { var router = this; var app = router.app; app.preloader.show(); var listaContatos = ListAlunos; app.preloader.hide(); resolve( { component: ContatosPage }, { context: { listaContactos: listaContatos } } ); } }, { path: '/', component: ListAlunos, }, { path: '/detalhes/:Num/:Nome/:Mail/:Telemovel/:Morada/:Coordenadas/', component: DetalhesPage, async: function (routeTo, routeFrom, resolve, reject) { var router = this; var app = router.app; app.preloader.show(); var listaContatos = ListAlunos; app.preloader.hide(); resolve( { component: ContatosPage }, { context: { listaContactos: listaContatos } } ); } }, { path: '(.*)', component: NotFoundPage, }, ]; export default routes;
16.140845
69
0.645724
68313894cdd23dac81247f6e538c32b25788ac46
2,527
js
JavaScript
src/templates/project.js
admin1189/GatsbyJS_site
f19a79f9f3e9e807ab95d56e17f3e4fc2584440a
[ "MIT" ]
null
null
null
src/templates/project.js
admin1189/GatsbyJS_site
f19a79f9f3e9e807ab95d56e17f3e4fc2584440a
[ "MIT" ]
4
2021-05-11T17:13:41.000Z
2022-02-27T06:27:16.000Z
src/templates/project.js
admin1189/GatsbyJS_site
f19a79f9f3e9e807ab95d56e17f3e4fc2584440a
[ "MIT" ]
null
null
null
import React, { Component } from "react" import { graphql } from "gatsby" import ProjectLayout from "../Layouts/ProjectLayout" import Seo from "../components/seo" import Header from "../components/Header" export default class Project extends Component { constructor(props) { super(props) this.state = { bgState: 0 } this.handleScrolling = this.handleScrolling.bind(this) } handleScrolling() { if (window.pageYOffset >= window.innerHeight) { this.setState({ bgState: 1 }) } else { this.setState({ bgState: 0 }) } } componentDidMount() { document.addEventListener("scroll", this.handleScrolling, false) } render() { return ( <div> <Seo title="About" /> <div style={{ position: "fixed", top: "0", zIndex: 10, right: 0, width: "100vw", paddingBottom: "1.7rem", transition: "all 0.5s", background: `${this.state.bgState ? "#f2f2f2" : "transparent"}`, }} > <Header /> </div> <ProjectLayout data={this.props.data} /> </div> ) } } export const query = graphql` query($slug: String, $cat: String) { sanityProject(slug: { current: { eq: $slug } }) { title descriptionTitle description bgPath mainImage { asset { fixed(height: 1080, width: 1960) { ...GatsbySanityImageFixed } } } image1 { asset { fluid { ...GatsbySanityImageFluid } } } image2 { asset { fluid { ...GatsbySanityImageFluid } } } image3 { asset { fluid { ...GatsbySanityImageFluid } } } image4 { asset { fluid { ...GatsbySanityImageFluid } } } image5 { asset { fluid { ...GatsbySanityImageFluid } } } image6 { asset { fluid { ...GatsbySanityImageFluid } } } } allSanityProject( filter: { categories: { elemMatch: { title: { eq: $cat } } } } ) { edges { next { title slug { current } } previous { title slug { current } } } } } `
20.544715
76
0.454294
68318f38675b475e62fa25b9bbe417bec49f12bb
9,220
js
JavaScript
screen/transactions/details.js
mdfkbtc/bid-mobile-wallet
fbad1f647e815a3b0f1aa69d334502e10bdd3e96
[ "MIT" ]
null
null
null
screen/transactions/details.js
mdfkbtc/bid-mobile-wallet
fbad1f647e815a3b0f1aa69d334502e10bdd3e96
[ "MIT" ]
null
null
null
screen/transactions/details.js
mdfkbtc/bid-mobile-wallet
fbad1f647e815a3b0f1aa69d334502e10bdd3e96
[ "MIT" ]
3
2020-08-02T10:56:55.000Z
2020-08-10T14:07:26.000Z
/* global alert */ import React, { Component } from 'react'; import { View, ScrollView, TouchableOpacity, Text, TextInput, Linking, StatusBar, StyleSheet } from 'react-native'; import { SafeBlueArea, BlueCard, BlueText, BlueLoading, BlueSpacing20, BlueCopyToClipboardButton, BlueNavigationStyle, } from '../../BlueComponents'; import HandoffSettings from '../../class/handoff'; import Handoff from 'react-native-handoff'; import PropTypes from 'prop-types'; import loc from '../../loc'; import { BlueCurrentTheme } from '../../components/themes'; /** @type {AppStorage} */ const BlueApp = require('../../BlueApp'); const dayjs = require('dayjs'); const styles = StyleSheet.create({ root: { flex: 1, }, scroll: { flex: 1, }, rowHeader: { flex: 1, flexDirection: 'row', marginBottom: 4, justifyContent: 'space-between', }, rowCaption: { fontSize: 16, fontWeight: '500', marginBottom: 4, color: BlueCurrentTheme.colors.foregroundColor, }, rowValue: { marginBottom: 26, color: 'grey', }, txId: { fontSize: 16, fontWeight: '500', color: BlueCurrentTheme.colors.foregroundColor, }, txHash: { marginBottom: 8, color: 'grey', }, txLink: { marginBottom: 26, color: BlueCurrentTheme.colors.alternativeTextColor2, }, save: { marginHorizontal: 16, justifyContent: 'center', alignItems: 'center', }, saveText: { color: 'white', }, memoTextInput: { flexDirection: 'row', borderColor: BlueCurrentTheme.colors.formBorder, borderBottomColor: BlueCurrentTheme.colors.formBorder, borderWidth: 1, borderBottomWidth: 0.5, backgroundColor: BlueCurrentTheme.colors.inputBackgroundColor, minHeight: 44, height: 44, alignItems: 'center', marginVertical: 8, borderRadius: 4, paddingHorizontal: 8, color: '#81868e', }, }); function onlyUnique(value, index, self) { return self.indexOf(value) === index; } function arrDiff(a1, a2) { const ret = []; for (const v of a2) { if (a1.indexOf(v) === -1) { ret.push(v); } } return ret; } export default class TransactionsDetails extends Component { constructor(props) { super(props); const hash = props.route.params.hash; let foundTx = {}; let from = []; let to = []; for (const tx of BlueApp.getTransactions()) { if (tx.hash === hash) { foundTx = tx; for (const input of foundTx.inputs) { from = from.concat(input.addresses); } for (const output of foundTx.outputs) { if (output.addresses) to = to.concat(output.addresses); if (output.scriptPubKey && output.scriptPubKey.addresses) to = to.concat(output.scriptPubKey.addresses); } } } let wallet = false; for (const w of BlueApp.getWallets()) { for (const t of w.getTransactions()) { if (t.hash === hash) { console.log('tx', hash, 'belongs to', w.getLabel()); wallet = w; } } } let memo = ''; if (BlueApp.tx_metadata[foundTx.hash]) { if (BlueApp.tx_metadata[foundTx.hash].memo) { memo = BlueApp.tx_metadata[foundTx.hash].memo; } } this.state = { isLoading: true, tx: foundTx, from, to, wallet, isHandOffUseEnabled: false, memo, }; props.navigation.setParams({ handleOnSaveButtonTapped: this.handleOnSaveButtonTapped }); } async componentDidMount() { console.log('transactions/details - componentDidMount'); const isHandOffUseEnabled = await HandoffSettings.isHandoffUseEnabled(); this.setState({ isLoading: false, isHandOffUseEnabled, }); } handleOnSaveButtonTapped = () => { BlueApp.tx_metadata[this.state.tx.hash] = { memo: this.state.memo }; BlueApp.saveToDisk().then(_success => alert('Transaction note has been successfully saved.')); }; handleOnMemoChangeText = value => { this.setState({ memo: value }); }; render() { if (this.state.isLoading || !('tx' in this.state)) { return <BlueLoading />; } return ( <SafeBlueArea forceInset={{ horizontal: 'always' }} style={styles.root}> {this.state.isHandOffUseEnabled && ( <Handoff title={`BlockIdCoin Transaction ${this.state.tx.hash}`} type="com.blockidchain.blockidcoinwallet" url={`https://bid.cryptoscope.cc/tx/?txid=${this.state.tx.hash}`} /> )} <StatusBar barStyle="default" /> <ScrollView style={styles.scroll}> <BlueCard> <View> <TextInput placeholder={loc.send.details_note_placeholder} value={this.state.memo} placeholderTextColor="#81868e" style={styles.memoTextInput} onChangeText={this.handleOnMemoChangeText} /> <BlueSpacing20 /> </View> {'from' in this.state && ( <> <View style={styles.rowHeader}> <BlueText style={styles.rowCaption}>{loc.transactions.details_from}</BlueText> <BlueCopyToClipboardButton stringToCopy={this.state.from.filter(onlyUnique).join(', ')} /> </View> <BlueText style={styles.rowValue}>{this.state.from.filter(onlyUnique).join(', ')}</BlueText> </> )} {'to' in this.state && ( <> <View style={styles.rowHeader}> <BlueText style={styles.rowCaption}>{loc.transactions.details_to}</BlueText> <BlueCopyToClipboardButton stringToCopy={this.state.to.filter(onlyUnique).join(', ')} /> </View> <BlueText style={styles.rowValue}>{arrDiff(this.state.from, this.state.to.filter(onlyUnique)).join(', ')}</BlueText> </> )} {'fee' in this.state.tx && ( <> <BlueText style={styles.rowCaption}>{loc.send.create_fee}</BlueText> <BlueText style={styles.rowValue}>{this.state.tx.fee + ' sats'}</BlueText> </> )} {'hash' in this.state.tx && ( <> <View style={styles.rowHeader}> <BlueText style={styles.txId}>Txid</BlueText> <BlueCopyToClipboardButton stringToCopy={this.state.tx.hash} /> </View> <BlueText style={styles.txHash}>{this.state.tx.hash}</BlueText> <TouchableOpacity onPress={() => { const url = `https://bid.cryptoscope.cc/tx/?txid=${this.state.tx.hash}`; Linking.canOpenURL(url).then(supported => { if (supported) { Linking.openURL(url); } }); }} > <BlueText style={styles.txLink}>{loc.transactions.details_show_in_block_explorer}</BlueText> </TouchableOpacity> </> )} {'received' in this.state.tx && ( <> <BlueText style={styles.rowCaption}>{loc.transactions.details_received}</BlueText> <BlueText style={styles.rowValue}>{dayjs(this.state.tx.received).format('MM/DD/YYYY h:mm A')}</BlueText> </> )} {'block_height' in this.state.tx && this.state.tx.block_height > 0 && ( <> <BlueText style={styles.rowCaption}>{loc.transactions.details_block}</BlueText> <BlueText style={styles.rowValue}>{this.state.tx.block_height}</BlueText> </> )} {'inputs' in this.state.tx && ( <> <BlueText style={styles.rowCaption}>{loc.transactions.details_inputs}</BlueText> <BlueText style={styles.rowValue}>{this.state.tx.inputs.length}</BlueText> </> )} {'outputs' in this.state.tx && this.state.tx.outputs.length > 0 && ( <> <BlueText style={styles.rowCaption}>{loc.transactions.details_outputs}</BlueText> <BlueText style={styles.rowValue}>{this.state.tx.outputs.length}</BlueText> </> )} </BlueCard> </ScrollView> </SafeBlueArea> ); } } TransactionsDetails.propTypes = { route: PropTypes.shape({ name: PropTypes.string, params: PropTypes.shape({ hash: PropTypes.string, }), }), navigation: PropTypes.shape({ setParams: PropTypes.func, }), }; TransactionsDetails.navigationOptions = ({ navigation, route }) => ({ ...BlueNavigationStyle(), title: loc.transactions.details_title, headerStyle: { ...BlueNavigationStyle().headerStyle, backgroundColor: 'transparent', }, headerRight: () => ( <TouchableOpacity disabled={route.params.isLoading === true} style={styles.save} onPress={route.params.handleOnSaveButtonTapped}> <Text style={styles.saveText}>{loc.wallets.details_save}</Text> </TouchableOpacity> ), });
30.939597
133
0.569306
68319db66f5f3fae33854fcd218e6421259e294a
274
js
JavaScript
ACAD/js/custom.js
novanet-libraries/new-ui-packages
1d433ecc16ee932b12e4e59ced203005edb98805
[ "MIT" ]
null
null
null
ACAD/js/custom.js
novanet-libraries/new-ui-packages
1d433ecc16ee932b12e4e59ced203005edb98805
[ "MIT" ]
null
null
null
ACAD/js/custom.js
novanet-libraries/new-ui-packages
1d433ecc16ee932b12e4e59ced203005edb98805
[ "MIT" ]
null
null
null
if (window.location.hostname == 'novanet-primo.hosted.exlibrisgroup.com'){ location.href = location.href.replace('novanet-primo.hosted.exlibrisgroup.com', 'acadia.novanet.ca'); } /* (function () { "use strict"; var app = angular.module('viewCustom', []); })(); */
22.833333
103
0.671533
68327b775e5bc54045db38406f9ff6e254baf0c9
4,723
js
JavaScript
sound/12863_3_Chaos_sf2_file.js
surikov/webaudiofontdata
23ca907d4370a04fd89ca483a92915e4d6159ab9
[ "MIT" ]
26
2017-11-27T19:38:47.000Z
2022-02-14T07:21:05.000Z
sound/12863_3_Chaos_sf2_file.js
surikov/webaudiofontdata
23ca907d4370a04fd89ca483a92915e4d6159ab9
[ "MIT" ]
3
2017-08-19T16:04:12.000Z
2020-03-11T07:25:00.000Z
sound/12863_3_Chaos_sf2_file.js
surikov/webaudiofontdata
23ca907d4370a04fd89ca483a92915e4d6159ab9
[ "MIT" ]
14
2017-06-30T03:04:25.000Z
2021-11-14T06:47:46.000Z
console.log('load _drum_63_3_Chaos_sf2_file'); var _drum_63_3_Chaos_sf2_file={ zones:[ { midi:128 ,loopStart:0 ,loopEnd:0 ,keyRangeLow:63 ,keyRangeHigh:63 ,sampleRate:44100 ,coarseTune:0 ,fineTune:0 ,originalPitch:6300 ,file:'SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU3LjcyLjEwMQAAAAAAAAAAAAAA//tAwAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAAAIAAAMuwBHR0dHR0dHR0dHR0dkZGRkZGRkZGRkZGSBgYGBgYGBgYGBgYGBnZ2dnZ2dnZ2dnZ2durq6urq6urq6urq6utvb29vb29vb29vb2/f39/f39/f39/f39/f///////////////8AAAAATGF2YzU3Ljk2AAAAAAAAAAAAAAAAJAaRAAAAAAAADLv4L2wVAAAAAAD/+8DEAAAGCANrtBAAA6Oy7H81kEgopPawVFpFqgcD4PwQMCc/g+H4PvfKcuCBzgh3cuf/gmD4P4P//lAQd/8H3////wfEAdGhXNbJYRGepMJSNCbmTeNEUROOWfaycQqSIzEDSaaYE0EJDUSyUWGFzJBwwSDhoYpZfIHoT2O1IkYa1HnWByU27Y4EX4GlZXE3Fclu7rxCUt2HQa7U7rKYRKZS2rS5A+8qqO/IrztWZmklVBFqDKXzXa25PZpYrCYjW7lyAoGvTlylp5ZYuUFSkuyiSSq1qrUl1a3GZRdpJFy5rlPjutDtmWzUSy+rzfNY6tVqa7Scwz1TUNTK3dmfwws91Z3uP00ppMfxxxwx5ljWnIzLrFmmpavd3eatbmaKclGX3saHGp/K5Ys/9SqTBrW3ZmlrSkvTQLJNaQ6CHS/EAzFEe11NzaC3OwznCB6tCOOJQPjDhUHxxjFPC2rirp1LUo+75p/uO9alPi6q6Wv09uOrZr12+2p4WxV1J5Mjd7tXCe2drL7St8lhQf+BpdM9Gz5MFdFJi+/R+pMDZJaENyspKc14c3AkLgDAKjduw8KRLhpiPEwwWYAYMhTFhSgMIwyXr4QSn25rA1yzMRygESSqEBNWuxHN0yYfB7YdQZO2xSWTUvQFw+HI5bR9LTqGssriZbQq5nsSkaepHN166tE8XVhfpzcZ7vFbGVNYH0NlTV6brXNt97t/P+1KD/EsiZ9O3+lmZNkDTkTZGj5ytMQLRJ8XrYYMwMQhGKeeUkxpnT1BOjq+eJ7jymEEc1hzFtohN8RBIMBwqBB4ZmNpWYFB4wEzCQNEgYVAim+VAIWzT6dEtCl46stau1iTTEXbWUyVTSX2C2JJ+qLagFl7KhNAplhi7DiYnPx0zYbUtZiJdAuRr1vKm4VLRtK2u/nP7B94c+W4qUPBxeLqZfLa5aVk6L8/r7LKMWdYYpJMpLPQ5GIs8jelF//7gMTWAA3A12P9hAAqwjDp/aYafWUxT4ViU7NzKJGl5hH5OahZuuRGqrm4oghYpK4nSyLzOvRRTkw2SAqWHhEc0ccnASGTB6QJh5SbAJiYGcPvMz8USJ7BVTEcuEgAXOXlp2zMDfhl8zBTzwUQWkHMFQeQGRQqcIEKIDTBMsOxRCRs85Q2RaiSLTRPnEBELJdDTUkBiS9IixZsiTPEby8yVHJCGiBCHSGpHjAfWRjjKcJJQLQZjJLJLISqpZeJZV+xj7xi4bk1LvO0yl1rtrELoZscVV821UOvIiIOyk+cpsVNCrkrliTTXW6W6PbqdQSGeFZHNY5LwoQgUSBIiOBpB4GggxgRiDisQBpILFAgRF7YhoHSOepLxr2Edrt5CH7aY98DhZLJqkOzpBPh6eHIonNYtUGgVF9E+eJz5CX0KqaD4BOeOk6KNsweJ5dvatKo1GbS57p/CjddgY+zTL7K1sqlxUcM64dlfHYr//uAxPKAFlmZR+4w0+rOMGj9vCS1wdsWwN0ZxqbST5JK0P0ZRpnk87Sse0iNIHa+Gw7YRZpR4nW1YFy9iNqEriHjt376rKbuOBaQEZWlmV2SO3c00cLiAoiAzQaPAAp4NoDSgFPAKi56xkdCIbrIOo9uHH86RYwUAXDkdhIOQ6EsnXLSZkgslEulDyEjdYxepoutmXapmfSLqxPraF9e2p5CZWLm4rvvUe/rQs1dvzT12tcAsVFJbXQH+e47LPPX6lba5jTLvO1mXH5vDtb0tHVdkHUcgtabWlqjztv2tYK6+5ll0uNs3qzk5XG4ojp31Khs0G26qpYEp4eGW37Xf8BfjDGwqYBDQx+cM8mDXJrmFFCTct4ZYCQjmpITYgqtBNPBjd2Eyas90bMICYC2Q8B544hpCCskQzUHoSxhCRFxCWXUQkR+B1kiOK3k2mVm0DkK70RvqxYZWkReUEctSfJ5PERC4iJ5HbWXaYX/+4DE6wAWWY9F7bDT6rIuaH28MK1ipNmOX6Mk8huPRsn2bBtslXOSgsjt6hoyU0KLi0CsK3XxyLWfGVX87hvldt/9iIjqa1QaqkBHaIh0321tmNdESRXQABBEZdOiEBHDZ9GCEoOhoHBRg4QmgjOqWGW4xxur2vJHoDWjFf7TRaXO5fj0QdKQh0lUAg45lhCSqX4oiWBFBYiQkUUTVFlDpRkqtWoTyr1OQkFJF0lnvhBhFSExCU0lxARsCNGIuRLJ1GUn4ijIuQMAh1QUKCAkFE2i0wphGlYGqS5HnMERqzVVEJAxuZQnCvoQfZxCjKBwZ8GGJgVsgtp3B6e7um3/3tmNk1pwANPss1FCd4WgH0Qx0gFBIbWAEMaAqJzW0NWersd9Xr72WlyKCnl7qM9LJgntQ5CEeSUVG1iM1W8cLmTyT5Ic60fr3LRtq0GOtYiwtZLlf++0iv6orMYw/G4cnqH3+whFX6RnqyvUev/7gMTnABVRa0PtJNPqvTRnfbSO7PuxzrU6opi0zyDuakdtQR2TE7cmfkOz99Qa7ofG5Le0C/62L1pKLR6RiLVNVenM93GzkIWWnNoIkXHMwLlPMu331iaY+CFRhhTZtmplfwKdFRuPNDOpzRljHCAwWFAKlkHPnmokq2INCiFYoRqVLzk6OiUSTokIS8Qm2XG0Z86WjssvxY8lO1x21+V8/JJ4uOkF9b1nvNWl5hVUX1hoJpU4iSQw0dupO55H5F5DxnTesWkehVSK9InaOMSWlsXhbNCa0nhK1djN5eNFp69S6dqrJNSkvGPpsg9/EN9dvvSz1uTcKsKH1UUDtYiHXWyMgE4oRtkczIEzLhhoIWBI8JAog1o4LgFjlQOShYxIKdMgJApFwnkAdYxRKG6yVRYvOz9MriJi7BIBqsVUNZfYLxKZNy5V1ZrB7dpFSDGiysVqbrCquLjxynjhEdL2TKDisIXRgK0pYcgV//uQxOYAFc2fOeyw0+qvM2X9pho1pVF4juooGpCCjiW4lfftf1rfxa3L+tOxh3a49O+PJTH2UhVIFmmS6nxrw5jXNQdsT7LkteRlc7LMOEtRIUCy/9ZDnatyf6OKigJDIyo6zjTKIgGDio2BepmWkwdSM9BQQuAwoNakUnW6uSulYAYAwjEoGxaXCU60ZX7kVFbNKPBSJhaVYWOJFRVeWOlSQ9pVa8kVXWlWRU2GZpUk1VWmVVJFTVWBUOQaiqrTC1NKrFiqL/F//6qqkiwszXKr7MxTdcNbNw1rRRzFHSutTWqqzXPrqzN5IqdSWeDQMhqGiINPeRZ1QVhpZ35Z//YWBqpMQU1FMy45OS41VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVTEFNRTMuOTkuNVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//uAxP6AFyWbJ+0wz+KbsSL9hiGYVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+xDE1gPAAAGkAAAAIAAANIAAAARVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQ==' ,anchor:0.00242630 //'Open High Conga } ] };
236.15
4,419
0.954266
6832b312ad63cccb5729aff389e247f4f1b70bc5
152
js
JavaScript
routes/config.js
Smokov/eternal-auth
76d42de18cd68cd3dc318e1160efe428db10aa85
[ "Apache-2.0" ]
null
null
null
routes/config.js
Smokov/eternal-auth
76d42de18cd68cd3dc318e1160efe428db10aa85
[ "Apache-2.0" ]
1
2021-05-10T12:34:58.000Z
2021-05-10T12:34:58.000Z
routes/config.js
Smokov/eternal-auth
76d42de18cd68cd3dc318e1160efe428db10aa85
[ "Apache-2.0" ]
null
null
null
import { Router } from "express"; const router = Router(); router.get("/.well-known/", (req, res, next) => { res.sendFile("/config/jwks.json"); });
19
49
0.611842
6832d1fa240b21028f1fa1133ff64d7a767ea4eb
1,485
js
JavaScript
src/pages/404.js
Zumotokachirikato/gatsby-starter-netlify-cms
a85cb50305c2e647ac81e09a5ca1b9112f244004
[ "MIT" ]
null
null
null
src/pages/404.js
Zumotokachirikato/gatsby-starter-netlify-cms
a85cb50305c2e647ac81e09a5ca1b9112f244004
[ "MIT" ]
null
null
null
src/pages/404.js
Zumotokachirikato/gatsby-starter-netlify-cms
a85cb50305c2e647ac81e09a5ca1b9112f244004
[ "MIT" ]
null
null
null
import React from 'react' import Layout from '../components/Layout' import { Link } from 'gatsby' const NotFoundPage = () => { return ( <Layout> <div className="content"> <h2 className="has-text-weight-bold is-size-2" style={{ backgroundPosition: `20% center`, backgroundAttachment: `fixed`, padding: '0.50em', color: 'white', padding: '3rem 1rem 0 1rem', textAlign: 'center', }} > NOT FOUND </h2> <section className="section section--gradient"> <div className="container"> <div className="columns"> <div className="column is-10 is-offset-1"> <div className="section" style={{ textAlign: 'center' }}> <h2 className="title is-size-4 has-text-weight-bold is-bold-light"> Sorry, you've encountered a dead end. The link you used is no longer working on this site. Please use the navigation to find what you are looking for, or Contact Us if you have any issues. </h2> <br /> <Link to="/"> Return Home </Link> </div> </div> </div> </div> </section> </div> </Layout> ) } export default NotFoundPage
31.595745
85
0.472054
6832f04f359228217e55b435f72d43ce65dcd9b7
729
js
JavaScript
data/schema/flickr-type/flickrProfileType.js
longshuicy/graphql-last-summer
108deb25f9f07bf2f9222b0117bcede783b0b416
[ "MIT" ]
1
2020-08-09T22:21:49.000Z
2020-08-09T22:21:49.000Z
data/schema/flickr-type/flickrProfileType.js
longshuicy/graphql-last-summer
108deb25f9f07bf2f9222b0117bcede783b0b416
[ "MIT" ]
null
null
null
data/schema/flickr-type/flickrProfileType.js
longshuicy/graphql-last-summer
108deb25f9f07bf2f9222b0117bcede783b0b416
[ "MIT" ]
null
null
null
var { GraphQLSchema, GraphQLObjectType, GraphQLString, GraphQLList, GraphQLInt, GraphQLFloat, GraphQLBoolean } = require('graphql'); const flickrProfileType = module.exports = new GraphQLObjectType({ name:'flickrProfile', description:'Returns specified user\'s profile info, respecting profile privacy settings', fields: ()=>({ id: {type:GraphQLString}, nsid: {type:GraphQLString}, showcase_set: {type:GraphQLString}, first_name: {type:GraphQLString}, last_name: {type:GraphQLString}, description: {type:GraphQLString}, website: {type:GraphQLString}, occupation: {type:GraphQLString}, hometown: {type:GraphQLString}, city: {type:GraphQLString}, country: {type:GraphQLString}, }) });
27
91
0.728395
68330ea2249f759dd92b658d379b2ad697d704c2
21,252
js
JavaScript
public/js/60.7cb15620d5b8331b4811.js
code-en-design/econobis
0b082160bad338691cc58223b8840d7f1fe2b1aa
[ "CECILL-B" ]
4
2018-10-16T19:45:01.000Z
2021-03-23T11:53:38.000Z
public/js/60.7cb15620d5b8331b4811.js
code-en-design/econobis
0b082160bad338691cc58223b8840d7f1fe2b1aa
[ "CECILL-B" ]
11
2020-03-19T08:17:46.000Z
2021-12-24T09:10:24.000Z
public/js/60.7cb15620d5b8331b4811.js
code-en-design/econobis
0b082160bad338691cc58223b8840d7f1fe2b1aa
[ "CECILL-B" ]
3
2020-02-28T10:31:00.000Z
2020-12-09T13:30:59.000Z
(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{1466:function(e,t,n){"use strict";n.r(t);var a=n(24),r=n.n(a),i=n(25),o=n.n(i),c=n(26),l=n.n(c),s=n(27),u=n.n(s),d=n(16),m=n.n(d),f=n(0),h=n.n(f),p=n(32),v=function(e){return{type:"FETCH_MAILGUN_DOMAIN_DETAILS",id:e}},g=n(4),b=n(693);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=m()(e);if(t){var r=m()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var E=function(e){l()(n,e);var t=y(n);function n(e){var a;return r()(this,n),(a=t.call(this,e)).state={},a}return o()(n,[{key:"render",value:function(){return h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"col-md-4"},h.a.createElement("div",{className:"btn-group btn-group-flex margin-small",role:"group"},h.a.createElement(b.a,{iconName:"glyphicon-arrow-left",onClickAction:g.e.goBack}))),h.a.createElement("div",{className:"col-md-4"},h.a.createElement("h4",{className:"text-center"},"Mailgun domein: ",this.props.domain)),h.a.createElement("div",{className:"col-md-4"}))}}]),n}(f.Component),k=Object(p.b)((function(e){return{domain:e.mailgunDomainDetails.domain,id:e.mailgunDomainDetails.id}}),null)(E),D=n(198),N=n(22),C=n.n(N),w=n(6),O=n.n(w),T=n(697),M=n.n(T),S=n(7),x=n.n(S),P=n(694),j=n(692),R=n(690),A=n(691),_=n(700);function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=m()(e);if(t){var r=m()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}x.a.locale("nl");var I=function(e){l()(n,e);var t=F(n);function n(e){var a;return r()(this,n),(a=t.call(this,e)).state={mailgunDomain:q({},e.mailgunDomainDetails),errors:{domain:!1}},a.handleInputChange=a.handleInputChange.bind(C()(a)),a.handleSubmit=a.handleSubmit.bind(C()(a)),a}return o()(n,[{key:"handleInputChange",value:function(e){var t=e.target,n="checkbox"===t.type?t.checked:t.value,a=t.name;this.setState(q(q({},this.state),{},{mailgunDomain:q(q({},this.state.mailgunDomain),{},O()({},a,n))}))}},{key:"handleSubmit",value:function(e){e.preventDefault();var t=this.state.mailgunDomain,n={},a=!1;M.a.isEmpty(t.domain)&&(n.domain=!0,a=!0),M.a.isEmpty(t.secret)&&(n.secret=!0,a=!0),this.setState(q(q({},this.state),{},{errors:n})),!a&&this.props.updateMailgunDomain(t,this.props.switchToView)}},{key:"render",value:function(){var e=this.state.mailgunDomain,t=e.domain,n=e.secret,a=e.isVerified;return h.a.createElement("form",{className:"form-horizontal",onSubmit:this.handleSubmit},h.a.createElement(R.a,null,h.a.createElement(A.a,null,h.a.createElement("div",{className:"row"},h.a.createElement(P.a,{label:"Domesin",name:"domain",value:t,onChangeAction:this.handleInputChange,required:"required",error:this.state.errors.domain}),h.a.createElement(P.a,{label:"Mailgun API Key",name:"secret",value:n,onChangeAction:this.handleInputChange,required:"required",error:this.state.errors.secret})),h.a.createElement("div",{className:"row"},h.a.createElement(_.a,{label:"Geverifieerd",name:"isVerified",value:a,onChangeAction:this.handleInputChange,disabled:!0}))),h.a.createElement(A.a,null,h.a.createElement("div",{className:"pull-right btn-group",role:"group"},h.a.createElement(j.a,{buttonClassName:"btn-default",buttonText:"Sluiten",onClickAction:this.props.switchToView}),h.a.createElement(j.a,{buttonText:"Opslaan",type:"submit",value:"Submit"})))))}}]),n}(f.Component),B=Object(p.b)((function(e){return{mailgunDomainDetails:e.mailgunDomainDetails}}),(function(e){return{updateMailgunDomain:function(t,n){e(function(e,t){return{type:"UPDATE_MAILGUN_DOMAIN",mailgunDomain:e,switchToView:t}}(t,n))}}}))(I),z=n(695),X=Object(p.b)((function(e){return{mailgunDomainDetails:e.mailgunDomainDetails}}))((function(e){var t=e.mailgunDomainDetails,n=t.domain,a=t.secret,r=t.isVerified;return h.a.createElement("div",{onClick:e.switchToEdit},h.a.createElement(R.a,null,h.a.createElement(A.a,null,h.a.createElement("div",{className:"row"},h.a.createElement(z.a,{label:"Domein",value:n}),h.a.createElement(z.a,{label:"Mailgun API Key",value:a})),h.a.createElement("div",{className:"row"},h.a.createElement(z.a,{label:"Geverifieerd",value:r?"Ja":"Nee"})))))}));function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=m()(e);if(t){var r=m()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var G=function(e){l()(n,e);var t=V(n);function n(e){var a;return r()(this,n),a=t.call(this,e),O()(C()(a),"switchToEdit",(function(){a.setState({showEdit:!0})})),O()(C()(a),"switchToView",(function(){a.setState({showEdit:!1,activeDiv:""})})),a.state={showEdit:!1,activeDiv:""},a}return o()(n,[{key:"onDivEnter",value:function(){this.setState({activeDiv:"panel-grey"})}},{key:"onDivLeave",value:function(){this.state.showEdit||this.setState({activeDiv:""})}},{key:"render",value:function(){var e=this,t=this.props.meDetails.permissions,n=void 0===t?{}:t;return h.a.createElement("div",{className:this.state.activeDiv,onMouseEnter:function(){return e.onDivEnter()},onMouseLeave:function(){return e.onDivLeave()}},this.state.showEdit&&n.manageMailgunDomain?h.a.createElement(B,{switchToView:this.switchToView}):h.a.createElement(X,{switchToEdit:this.switchToEdit}))}}]),n}(f.Component),U=Object(p.b)((function(e){return{mailgunDomainDetails:e.mailgunDomainDetails,meDetails:e.meDetails,permissions:e.meDetails.permissions}}))(G);function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=m()(e);if(t){var r=m()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var K=function(e){l()(n,e);var t=J(n);function n(e){return r()(this,n),t.call(this,e)}return o()(n,[{key:"render",value:function(){var e="",t=!0;return this.props.hasError?e="Fout bij het ophalen van mailgun domein.":this.props.isLoading?e="Gegevens aan het laden.":Object(D.isEmpty)(this.props.mailgunDomainDetails)?e="Geen mailgun domein gevonden!":t=!1,t?h.a.createElement("div",null,e):h.a.createElement("div",null,h.a.createElement(U,null))}}]),n}(f.Component),Y=Object(p.b)((function(e){return{mailgunDomainDetails:e.mailgunDomainDetails,isLoading:e.loadingData.isLoading,hasError:e.loadingData.hasError}}),(function(e){return{fetchMailgunDomainDetails:function(t){e(v(t))}}}))(K);function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=m()(e);if(t){var r=m()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var Q=function(e){l()(n,e);var t=H(n);function n(e){return r()(this,n),t.call(this,e)}return o()(n,[{key:"componentDidMount",value:function(){this.props.fetchMailgunDomainDetails(this.props.params.id)}},{key:"render",value:function(){return h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"col-md-9"},h.a.createElement("div",{className:"col-md-12 margin-10-top"},h.a.createElement(R.a,null,h.a.createElement(A.a,{className:"panel-small"},h.a.createElement(k,null)))),h.a.createElement("div",{className:"col-md-12 margin-10-top"},h.a.createElement(Y,null))),h.a.createElement("div",{className:"col-md-3"}))}}]),n}(f.Component);t.default=Object(p.b)((function(e){return{mailgunDomainDetails:e.mailgunDomainDetails}}),(function(e){return{fetchMailgunDomainDetails:function(t){e(v(t))}}}))(Q)},690:function(e,t,n){"use strict";var a=n(0),r=n.n(a),i=n(8),o=n.n(i),c=function(e){var t=e.children,n=e.className,a=e.onMouseEnter,i=e.onMouseLeave;return r.a.createElement("div",{className:"panel panel-default ".concat(n),onMouseEnter:a,onMouseLeave:i},t)};c.defaultProps={className:"",onMouseEnter:function(){},onMouseLeave:function(){}},c.propTypes={className:o.a.string,onMouseEnter:o.a.func,onMouseLeave:o.a.func},t.a=c},691:function(e,t,n){"use strict";var a=n(0),r=n.n(a),i=n(8),o=n.n(i),c=function(e){var t=e.className,n=e.children;return r.a.createElement("div",{className:"panel-body ".concat(t)},n)};c.defaultProps={className:""},c.propTypes={className:o.a.string},t.a=c},692:function(e,t,n){"use strict";var a=n(0),r=n.n(a),i=n(8),o=n.n(i),c=function(e){var t=e.buttonClassName,n=e.buttonText,a=e.onClickAction,i=e.type,o=e.value,c=e.loading,l=e.loadText,s=e.disabled;return c?r.a.createElement("button",{type:i,className:"btn btn-sm btn-loading ".concat(t),value:o,disabled:c},r.a.createElement("span",{className:"glyphicon glyphicon-refresh glyphicon-refresh-animate"})," ",l):r.a.createElement("button",{type:i,className:"btn btn-sm ".concat(t),onClick:a,value:o,disabled:s},n)};c.defaultProps={buttonClassName:"btn-success",type:"button",value:"",loading:!1,loadText:"Aan het laden",disabled:!1},c.propTypes={buttonClassName:o.a.string,buttonText:o.a.string.isRequired,onClickAction:o.a.func,type:o.a.string,value:o.a.string,loading:o.a.bool,loadText:o.a.string,disabled:o.a.bool},t.a=c},693:function(e,t,n){"use strict";var a=n(0),r=n.n(a),i=n(8),o=n.n(i),c=function(e){var t=e.buttonClassName,n=e.iconName,a=e.onClickAction,i=e.title,o=e.disabled;return r.a.createElement("button",{type:"button",className:"btn ".concat(t),onClick:a,disabled:o,title:i},r.a.createElement("span",{className:"glyphicon ".concat(n)}))};c.defaultProps={buttonClassName:"btn-success btn-sm",title:"",disabled:!1},c.propTypes={buttonClassName:o.a.string,iconName:o.a.string.isRequired,onClickAction:o.a.func,title:o.a.string,disabled:o.a.bool},t.a=c},694:function(e,t,n){"use strict";var a=n(0),r=n.n(a),i=n(8),o=n.n(i),c=function(e){var t=e.label,n=e.type,a=e.className,i=e.size,o=e.id,c=e.placeholder,l=e.name,s=e.value,u=e.onClickAction,d=e.onChangeAction,m=e.onBlurAction,f=e.required,h=e.readOnly,p=e.maxLength,v=e.error,g=e.min,b=e.max,y=e.step,E=e.errorMessage,k=e.divSize,D=e.divClassName,N=e.autoComplete;return r.a.createElement("div",{className:"form-group ".concat(k," ").concat(D)},r.a.createElement("label",{htmlFor:o,className:"col-sm-6 ".concat(f)},t),r.a.createElement("div",{className:"".concat(i)},r.a.createElement("input",{type:n,className:"form-control input-sm ".concat(a)+(v?"has-error":""),id:o,placeholder:c,name:l,value:s,onClick:u,onChange:d,onBlur:m,readOnly:h,maxLength:p,min:g,max:b,autoComplete:N,step:y})),v&&r.a.createElement("div",{className:"col-sm-offset-6 col-sm-6"},r.a.createElement("span",{className:"has-error-message"}," ",E)))};c.defaultProps={divClassName:"",className:"",size:"col-sm-6",divSize:"col-sm-6",name:"",type:"text",value:"",required:"",readOnly:!1,maxLength:null,error:!1,min:"",max:"",step:"",errorMessage:"",autoComplete:"off",onBlurAction:function(){},onClickAction:function(){},onChangeAction:function(){}},c.propTypes={label:o.a.oneOfType([o.a.string,o.a.object]).isRequired,type:o.a.string,className:o.a.string,divClassName:o.a.string,size:o.a.string,divSize:o.a.string,id:o.a.string,placeholder:o.a.string,name:o.a.string.isRequired,value:o.a.oneOfType([o.a.string,o.a.number]),onClickAction:o.a.func,onChangeAction:o.a.func,onBlurAction:o.a.func,required:o.a.string,readOnly:o.a.bool,maxLength:o.a.string,error:o.a.bool,min:o.a.string,max:o.a.string,step:o.a.string,errorMessage:o.a.string,autoComplete:o.a.string},t.a=c},695:function(e,t,n){"use strict";var a=n(0),r=n.n(a),i=n(4),o=n(8),c=n.n(o),l=function(e){var t=e.label,n=e.className,a=e.id,o=e.value,c=e.link,l=e.hidden;return c.length>0?r.a.createElement("div",{className:n,style:l?{display:"none"}:{}},r.a.createElement("label",{htmlFor:a,className:"col-sm-6"},t),r.a.createElement("div",{className:"col-sm-6",id:a,onClick:null},r.a.createElement(i.b,{to:c,className:"link-underline"},o))):r.a.createElement("div",{className:n,style:l?{display:"none"}:{}},r.a.createElement("label",{htmlFor:a,className:"col-sm-6"},t),r.a.createElement("div",{className:"col-sm-6",id:a},o))};l.defaultProps={className:"col-sm-6",value:"",link:"",hidden:!1},l.propTypes={label:c.a.oneOfType([c.a.string,c.a.object]).isRequired,className:c.a.string,id:c.a.string,value:c.a.oneOfType([c.a.string,c.a.number]),link:c.a.string,hidden:c.a.bool},t.a=l},700:function(e,t,n){"use strict";var a=n(0),r=n.n(a),i=n(8),o=n.n(i),c=n(703),l=n.n(c),s=function(e){var t=e.label,n=e.size,a=e.id,i=e.name,o=e.value,c=e.onChangeAction,s=e.required,u=e.divSize,d=e.className,m=e.disabled;return r.a.createElement("div",{className:"form-group ".concat(u," ").concat(d)},r.a.createElement("div",null,r.a.createElement("label",{htmlFor:a,className:"col-sm-6 ".concat(s)},t)),r.a.createElement("div",{className:"".concat(n)},r.a.createElement(l.a,{id:a,name:i,onChange:c,checked:o,disabled:m})))};s.defaultProps={className:"",size:"col-sm-6",divSize:"col-sm-6",required:"",disabled:!1,value:null},s.propTypes={label:o.a.string.isRequired,type:o.a.string,size:o.a.string,divSize:o.a.string,id:o.a.string,name:o.a.string.isRequired,value:o.a.bool,onChangeAction:o.a.func,required:o.a.string,disabled:o.a.bool},t.a=s},703:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),i=n(0),o=m(i),c=m(n(710)),l=m(n(8)),s=m(n(704)),u=m(n(705)),d=n(706);function m(e){return e&&e.__esModule?e:{default:e}}var f=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.handleClick=n.handleClick.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.previouslyChecked=!(!e.checked&&!e.defaultChecked),n.state={checked:!(!e.checked&&!e.defaultChecked),hasFocus:!1},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),r(t,[{key:"componentDidUpdate",value:function(e){e.checked!==this.props.checked&&this.setState({checked:!!this.props.checked})}},{key:"handleClick",value:function(e){var t=this.input;if(e.target!==t&&!this.moved)return this.previouslyChecked=t.checked,e.preventDefault(),t.focus(),void t.click();var n=this.props.hasOwnProperty("checked")?this.props.checked:t.checked;this.setState({checked:n})}},{key:"handleTouchStart",value:function(e){this.startX=(0,d.pointerCoord)(e).x,this.activated=!0}},{key:"handleTouchMove",value:function(e){if(this.activated&&(this.moved=!0,this.startX)){var t=(0,d.pointerCoord)(e).x;this.state.checked&&t+15<this.startX?(this.setState({checked:!1}),this.startX=t,this.activated=!0):t-15>this.startX&&(this.setState({checked:!0}),this.startX=t,this.activated=t<this.startX+5)}}},{key:"handleTouchEnd",value:function(e){if(this.moved){var t=this.input;if(e.preventDefault(),this.startX){var n=(0,d.pointerCoord)(e).x;!0===this.previouslyChecked&&this.startX+4>n?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,t.click()):this.startX-4<n&&this.previouslyChecked!==this.state.checked&&(this.setState({checked:!0}),this.previouslyChecked=this.state.checked,t.click()),this.activated=!1,this.startX=null,this.moved=!1}}}},{key:"handleFocus",value:function(e){var t=this.props.onFocus;t&&t(e),this.setState({hasFocus:!0})}},{key:"handleBlur",value:function(e){var t=this.props.onBlur;t&&t(e),this.setState({hasFocus:!1})}},{key:"getIcon",value:function(e){var n=this.props.icons;return n?void 0===n[e]?t.defaultProps.icons[e]:n[e]:null}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=(t.icons,function(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(t,["className","icons"])),i=(0,c.default)("react-toggle",{"react-toggle--checked":this.state.checked,"react-toggle--focus":this.state.hasFocus,"react-toggle--disabled":this.props.disabled},n);return o.default.createElement("div",{className:i,onClick:this.handleClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},o.default.createElement("div",{className:"react-toggle-track"},o.default.createElement("div",{className:"react-toggle-track-check"},this.getIcon("checked")),o.default.createElement("div",{className:"react-toggle-track-x"},this.getIcon("unchecked"))),o.default.createElement("div",{className:"react-toggle-thumb"}),o.default.createElement("input",a({},r,{ref:function(t){e.input=t},onFocus:this.handleFocus,onBlur:this.handleBlur,className:"react-toggle-screenreader-only",type:"checkbox"})))}}]),t}(i.PureComponent);t.default=f,f.displayName="Toggle",f.defaultProps={icons:{checked:o.default.createElement(s.default,null),unchecked:o.default.createElement(u.default,null)}},f.propTypes={checked:l.default.bool,disabled:l.default.bool,defaultChecked:l.default.bool,onChange:l.default.func,onFocus:l.default.func,onBlur:l.default.func,className:l.default.string,name:l.default.string,value:l.default.string,id:l.default.string,"aria-labelledby":l.default.string,"aria-label":l.default.string,icons:l.default.oneOfType([l.default.bool,l.default.shape({checked:l.default.node,unchecked:l.default.node})])}},704:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,r=n(0),i=(a=r)&&a.__esModule?a:{default:a};t.default=function(){return i.default.createElement("svg",{width:"14",height:"11",viewBox:"0 0 14 11"},i.default.createElement("title",null,"switch-check"),i.default.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}))}},705:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,r=n(0),i=(a=r)&&a.__esModule?a:{default:a};t.default=function(){return i.default.createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10"},i.default.createElement("title",null,"switch-x"),i.default.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"}))}},706:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pointerCoord=function(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var n=t[0];return{x:n.clientX,y:n.clientY}}var a=e.pageX;if(void 0!==a)return{x:a,y:e.pageY}}return{x:0,y:0}}},710:function(e,t,n){var a; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var i=typeof a;if("string"===i||"number"===i)e.push(a);else if(Array.isArray(a)&&a.length){var o=r.apply(null,a);o&&e.push(o)}else if("object"===i)for(var c in a)n.call(a,c)&&a[c]&&e.push(c)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(a=function(){return r}.apply(t,[]))||(e.exports=a)}()}}]);
3,542
20,685
0.727179
683389ef5f07ddbeaa7c80285cf76b45cd19db9e
706
js
JavaScript
src/components/CustomButton/CustomButton.stories.js
eddies/storybook-demo
80b3866eb0da7570cea570f89b9db94e20b5cbb4
[ "0BSD" ]
null
null
null
src/components/CustomButton/CustomButton.stories.js
eddies/storybook-demo
80b3866eb0da7570cea570f89b9db94e20b5cbb4
[ "0BSD" ]
null
null
null
src/components/CustomButton/CustomButton.stories.js
eddies/storybook-demo
80b3866eb0da7570cea570f89b9db94e20b5cbb4
[ "0BSD" ]
null
null
null
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { text, boolean } from '@storybook/addon-knobs/react'; import CustomButton from './CustomButton'; storiesOf('CustomButton', module) .add('with text', () => ( <CustomButton onClick={action('clicked')}>Hello Button</CustomButton> )) .add('with some emoji', () => ( <CustomButton onClick={action('clicked')}><span role="img" aria-label="so cool">😀 😎 👍 💯</span></CustomButton> )) .add('with dynamic text', () => ( <CustomButton disabled={boolean('Disabled', false)} onClick={action('clicked')}> {text('Label', 'Change me')} </CustomButton> ));
37.157895
113
0.650142
68339f849147f83ba3ac03d5f7a0caf7bbb607ff
430,190
js
JavaScript
public/static/js/cave.js
FONIA/project-admin
0245213b458925ea8ab5d3636f1d21273d40447c
[ "Apache-2.0" ]
1
2021-05-29T05:14:17.000Z
2021-05-29T05:14:17.000Z
public/static/js/cave.js
FONIA/project-admin
0245213b458925ea8ab5d3636f1d21273d40447c
[ "Apache-2.0" ]
null
null
null
public/static/js/cave.js
FONIA/project-admin
0245213b458925ea8ab5d3636f1d21273d40447c
[ "Apache-2.0" ]
null
null
null
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";function e(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(t);return i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1]),a&&(n.weChat=!0),{browser:n,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:"undefined"!=typeof document}}function n(t,e){"createCanvas"===t&&(Kg=null),qg[t]=e}function i(t){if(null==t||"object"!=typeof t)return t;var e=t,n=Gg.call(t);if("[object Array]"===n){if(!B(t)){e=[];for(var r=0,o=t.length;o>r;r++)e[r]=i(t[r])}}else if(Hg[n]){if(!B(t)){var a=t.constructor;if(t.constructor.from)e=a.from(t);else{e=new a(t.length);for(var r=0,o=t.length;o>r;r++)e[r]=i(t[r])}}}else if(!Vg[n]&&!B(t)&&!I(t)){e={};for(var s in t)t.hasOwnProperty(s)&&(e[s]=i(t[s]))}return e}function r(t,e,n){if(!S(e)||!S(t))return n?i(e):t;for(var o in e)if(e.hasOwnProperty(o)){var a=t[o],s=e[o];!S(s)||!S(a)||_(s)||_(a)||I(s)||I(a)||M(s)||M(a)||B(s)||B(a)?!n&&o in t||(t[o]=i(e[o],!0)):r(a,s,n)}return t}function o(t,e){for(var n=t[0],i=1,o=t.length;o>i;i++)n=r(n,t[i],e);return n}function a(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function s(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}function l(){return Kg||(Kg=$g().getContext("2d")),Kg}function u(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n}return-1}function h(t,e){function n(){}var i=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var r in i)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e}function c(t,e,n){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,s(t,e,n)}function d(t){return t?"string"==typeof t?!1:"number"==typeof t.length:void 0}function f(t,e,n){if(t&&e)if(t.forEach&&t.forEach===Xg)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;r>i;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function p(t,e,n){if(t&&e){if(t.map&&t.map===Ug)return t.map(e,n);for(var i=[],r=0,o=t.length;o>r;r++)i.push(e.call(n,t[r],r,t));return i}}function g(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===jg)return t.reduce(e,n,i);for(var r=0,o=t.length;o>r;r++)n=e.call(i,n,t[r],r,t);return n}}function v(t,e,n){if(t&&e){if(t.filter&&t.filter===Yg)return t.filter(e,n);for(var i=[],r=0,o=t.length;o>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}}function m(t,e,n){if(t&&e)for(var i=0,r=t.length;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function y(t,e){var n=Zg.call(arguments,2);return function(){return t.apply(e,n.concat(Zg.call(arguments)))}}function x(t){var e=Zg.call(arguments,1);return function(){return t.apply(this,e.concat(Zg.call(arguments)))}}function _(t){return"[object Array]"===Gg.call(t)}function w(t){return"function"==typeof t}function b(t){return"[object String]"===Gg.call(t)}function S(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function M(t){return!!Vg[Gg.call(t)]}function C(t){return!!Hg[Gg.call(t)]}function I(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function T(t){return t!==t}function A(){for(var t=0,e=arguments.length;e>t;t++)if(null!=arguments[t])return arguments[t]}function D(t,e){return null!=t?t:e}function k(t,e,n){return null!=t?t:null!=e?e:n}function P(){return Function.call.apply(Zg,arguments)}function O(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function L(t,e){if(!t)throw new Error(e)}function z(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function E(t){t[Qg]=!0}function B(t){return t[Qg]}function R(t){function e(t,e){n?i.set(t,e):i.set(e,t)}var n=_(t);this.data={};var i=this;t instanceof R?t.each(e):t&&f(t,e)}function N(t){return new R(t)}function F(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function V(){}function H(t,e){var n=new tv(2);return null==t&&(t=0),null==e&&(e=0),n[0]=t,n[1]=e,n}function G(t,e){return t[0]=e[0],t[1]=e[1],t}function W(t){var e=new tv(2);return e[0]=t[0],e[1]=t[1],e}function X(t,e,n){return t[0]=e,t[1]=n,t}function Y(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Z(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function U(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function j(t){return Math.sqrt(q(t))}function q(t){return t[0]*t[0]+t[1]*t[1]}function $(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function K(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function Q(t,e){return t[0]*e[0]+t[1]*e[1]}function J(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function te(t,e){var n=j(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function ee(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function ne(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function ie(t,e){return t[0]=-e[0],t[1]=-e[1],t}function re(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function oe(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function ae(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function se(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function le(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function ue(t,e){return{target:t,topTarget:e&&e.topTarget}}function he(t,e){var n=t._$eventProcessor;return null!=e&&n&&n.normalizeQuery&&(e=n.normalizeQuery(e)),e}function ce(t,e,n,i,r,o){var a=t._$handlers;if("function"==typeof n&&(r=i,i=n,n=null),!i||!e)return t;n=he(t,n),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return t;var l={h:i,one:o,query:n,ctx:r||t,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,h=a[e][u];return h&&h.callAtLast?a[e].splice(u,0,l):a[e].push(l),t}function de(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/lv);return t[n][l]}for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,d=0,f=0;s>d;d++){var p=1<<d;p&r||(c+=(f%2?-1:1)*t[n][d]*de(t,e-1,h,u,r|p,o),f++)}return o[a]=c,c}function fe(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=de(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;8>a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*de(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}function pe(t,e,n,i){return n=n||{},i||!Fg.canvasSupported?ge(t,e,n):Fg.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ge(t,e,n),n}function ge(t,e,n){if(t.getBoundingClientRect&&Fg.domSupported){var i=e.clientX,r=e.clientY;if("CANVAS"===t.nodeName.toUpperCase()){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}var a=t[cv]||(t[cv]={}),s=me(ve(t,a),a);if(s)return s(dv,i,r),n.zrX=dv[0],void(n.zrY=dv[1])}n.zrX=n.zrY=0}function ve(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;4>o;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position:absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function me(t,e){for(var n=e.transformer,i=e.srcCoords,r=!0,o=[],a=[],s=0;4>s;s++){var l=t[s].getBoundingClientRect(),u=2*s,h=l.left,c=l.top;o.push(h,c),r&=i&&h===i[u]&&c===i[u+1],a.push(t[s].offsetLeft,t[s].offsetTop)}return r?n:(e.srcCoords=o,e.transformer=fe(o,a))}function ye(t){return t||window.event}function xe(t,e,n){if(e=ye(e),null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];o&&pe(t,o,e,n)}else pe(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var a=e.button;return null==e.which&&void 0!==a&&hv.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function _e(t,e,n,i){uv?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)}function we(t,e,n,i){uv?t.removeEventListener(e,n,i):t.detachEvent("on"+e,n)}function be(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Se(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Me(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ce}}function Ce(){fv(this.event)}function Ie(){}function Te(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i,r=t;r;){if(r.clipPath&&!r.clipPath.contain(e,n))return!1;r.silent&&(i=!0),r=r.parent}return i?vv:!0}return!1}function Ae(t,e,n){var i=t.painter;return 0>e||e>i.getWidth()||0>n||n>i.getHeight()}function De(){var t=new xv(6);return ke(t),t}function ke(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Pe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Oe(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Le(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function ze(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function Ee(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Be(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Re(t){var e=De();return Pe(e,t),e}function Ne(t){return t>bv||-bv>t}function Fe(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null==t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}function Ve(t){return t=Math.round(t),0>t?0:t>255?255:t}function He(t){return t=Math.round(t),0>t?0:t>360?360:t}function Ge(t){return 0>t?0:t>1?1:t}function We(t){return Ve(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function Xe(t){return Ge(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function Ye(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function Ze(t,e,n){return t+(e-t)*n}function Ue(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function je(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function qe(t,e){Bv&&je(Bv,e),Bv=Ev.put(t,Bv||e.slice())}function $e(t,e){if(t){e=e||[];var n=Ev.get(t);if(n)return je(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in zv)return je(e,zv[i]),qe(t,e),e;if("#"!==i.charAt(0)){var r=i.indexOf("("),o=i.indexOf(")");if(-1!==r&&o+1===i.length){var a=i.substr(0,r),s=i.substr(r+1,o-(r+1)).split(","),l=1;switch(a){case"rgba":if(4!==s.length)return void Ue(e,0,0,0,1);l=Xe(s.pop());case"rgb":return 3!==s.length?void Ue(e,0,0,0,1):(Ue(e,We(s[0]),We(s[1]),We(s[2]),l),qe(t,e),e);case"hsla":return 4!==s.length?void Ue(e,0,0,0,1):(s[3]=Xe(s[3]),Ke(s,e),qe(t,e),e);case"hsl":return 3!==s.length?void Ue(e,0,0,0,1):(Ke(s,e),qe(t,e),e);default:return}}Ue(e,0,0,0,1)}else{if(4===i.length){var u=parseInt(i.substr(1),16);return u>=0&&4095>=u?(Ue(e,(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1),qe(t,e),e):void Ue(e,0,0,0,1)}if(7===i.length){var u=parseInt(i.substr(1),16);return u>=0&&16777215>=u?(Ue(e,(16711680&u)>>16,(65280&u)>>8,255&u,1),qe(t,e),e):void Ue(e,0,0,0,1)}}}}function Ke(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Xe(t[1]),r=Xe(t[2]),o=.5>=r?r*(i+1):r+i-r*i,a=2*r-o;return e=e||[],Ue(e,Ve(255*Ye(a,o,n+1/3)),Ve(255*Ye(a,o,n)),Ve(255*Ye(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Qe(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=.5>u?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+h-d:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}function Je(t,e){var n=$e(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:t[i]<0&&(n[i]=0);return an(n,4===n.length?"rgba":"rgb")}}function tn(t){var e=$e(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function en(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=Ve(Ze(a[0],s[0],l)),n[1]=Ve(Ze(a[1],s[1],l)),n[2]=Ve(Ze(a[2],s[2],l)),n[3]=Ge(Ze(a[3],s[3],l)),n}}function nn(t,e,n){if(e&&e.length&&t>=0&&1>=t){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=$e(e[r]),s=$e(e[o]),l=i-r,u=an([Ve(Ze(a[0],s[0],l)),Ve(Ze(a[1],s[1],l)),Ve(Ze(a[2],s[2],l)),Ge(Ze(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function rn(t,e,n,i){return t=$e(t),t?(t=Qe(t),null!=e&&(t[0]=He(e)),null!=n&&(t[1]=Xe(n)),null!=i&&(t[2]=Xe(i)),an(Ke(t),"rgba")):void 0}function on(t,e){return t=$e(t),t&&null!=e?(t[3]=Ge(e),an(t,"rgba")):void 0}function an(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function sn(t,e){return t[e]}function ln(t,e,n){t[e]=n}function un(t,e,n){return(e-t)*n+t}function hn(t,e,n){return n>.5?e:t}function cn(t,e,n,i,r){var o=t.length;if(1===r)for(var a=0;o>a;a++)i[a]=un(t[a],e[a],n);else for(var s=o&&t[0].length,a=0;o>a;a++)for(var l=0;s>l;l++)i[a][l]=un(t[a][l],e[a][l],n)}function dn(t,e,n){var i=t.length,r=e.length;if(i!==r){var o=i>r;if(o)t.length=r;else for(var a=i;r>a;a++)t.push(1===n?e[a]:Vv.call(e[a]))}for(var s=t[0]&&t[0].length,a=0;a<t.length;a++)if(1===n)isNaN(t[a])&&(t[a]=e[a]);else for(var l=0;s>l;l++)isNaN(t[a][l])&&(t[a][l]=e[a][l])}function fn(t,e,n){if(t===e)return!0;var i=t.length;if(i!==e.length)return!1;if(1===n){for(var r=0;i>r;r++)if(t[r]!==e[r])return!1}else for(var o=t[0].length,r=0;i>r;r++)for(var a=0;o>a;a++)if(t[r][a]!==e[r][a])return!1;return!0}function pn(t,e,n,i,r,o,a,s,l){var u=t.length;if(1===l)for(var h=0;u>h;h++)s[h]=gn(t[h],e[h],n[h],i[h],r,o,a);else for(var c=t[0].length,h=0;u>h;h++)for(var d=0;c>d;d++)s[h][d]=gn(t[h][d],e[h][d],n[h][d],i[h][d],r,o,a)}function gn(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}function vn(t){if(d(t)){var e=t.length;if(d(t[0])){for(var n=[],i=0;e>i;i++)n.push(Vv.call(t[i]));return n}return Vv.call(t)}return t}function mn(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function yn(t){var e=t[t.length-1].value;return d(e&&e[0])?2:1}function xn(t,e,n,i,r,o){var a=t._getter,s=t._setter,l="spline"===e,u=i.length;if(u){var h,c=i[0].value,f=d(c),p=!1,g=!1,v=f?yn(i):0;i.sort(function(t,e){return t.time-e.time}),h=i[u-1].time;for(var m=[],y=[],x=i[0].value,_=!0,w=0;u>w;w++){m.push(i[w].time/h);var b=i[w].value;if(f&&fn(b,x,v)||!f&&b===x||(_=!1),x=b,"string"==typeof b){var S=$e(b);S?(b=S,p=!0):g=!0}y.push(b)}if(o||!_){for(var M=y[u-1],w=0;u-1>w;w++)f?dn(y[w],M,v):!isNaN(y[w])||isNaN(M)||g||p||(y[w]=M);f&&dn(a(t._target,r),M,v);var C,I,T,A,D,k,P=0,O=0;if(p)var L=[0,0,0,0];var z=function(t,e){var n;if(0>e)n=0;else if(O>e){for(C=Math.min(P+1,u-1),n=C;n>=0&&!(m[n]<=e);n--);n=Math.min(n,u-2)}else{for(n=P;u>n&&!(m[n]>e);n++);n=Math.min(n-1,u-2)}P=n,O=e;var i=m[n+1]-m[n];if(0!==i)if(I=(e-m[n])/i,l)if(A=y[n],T=y[0===n?n:n-1],D=y[n>u-2?u-1:n+1],k=y[n>u-3?u-1:n+2],f)pn(T,A,D,k,I,I*I,I*I*I,a(t,r),v);else{var o;if(p)o=pn(T,A,D,k,I,I*I,I*I*I,L,1),o=mn(L);else{if(g)return hn(A,D,I);o=gn(T,A,D,k,I,I*I,I*I*I)}s(t,r,o)}else if(f)cn(y[n],y[n+1],I,a(t,r),v);else{var o;if(p)cn(y[n],y[n+1],I,L,1),o=mn(L);else{if(g)return hn(y[n],y[n+1],I);o=un(y[n],y[n+1],I)}s(t,r,o)}},E=new Fe({target:t._target,life:h,loop:t._loop,delay:t._delay,onframe:z,ondestroy:n});return e&&"spline"!==e&&(E.easing=e),E}}}function _n(t,e,n,i,r,o,a,s){function l(){h--,h||o&&o()}b(i)?(o=r,r=i,i=0):w(r)?(o=r,r="linear",i=0):w(i)?(o=i,i=0):w(n)?(o=n,n=500):n||(n=500),t.stopAnimation(),wn(t,"",t,e,n,i,s);var u=t.animators.slice(),h=u.length;h||o&&o();for(var c=0;c<u.length;c++)u[c].done(l).start(r,a)}function wn(t,e,n,i,r,o,a){var s={},l=0;for(var u in i)i.hasOwnProperty(u)&&(null!=n[u]?S(i[u])&&!d(i[u])?wn(t,e?e+"."+u:u,n[u],i[u],r,o,a):(a?(s[u]=n[u],bn(t,e,u,i[u])):s[u]=i[u],l++):null==i[u]||a||bn(t,e,u,i[u]));l>0&&t.animate(e,!1).when(null==r?500:r,s).delay(o||0)}function bn(t,e,n,i){if(e){var r={};r[e]={},r[e][n]=i,t.attr(r)}else t.attr(n,i)}function Sn(t,e,n,i){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}function Mn(t){for(var e=0;t>=Jv;)e|=1&t,t>>=1;return t+e}function Cn(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;n>r&&i(t[r],t[r-1])<0;)r++;In(t,e,r)}else for(;n>r&&i(t[r],t[r-1])>=0;)r++;return r-e}function In(t,e,n){for(n--;n>e;){var i=t[e];t[e++]=t[n],t[n--]=i}}function Tn(t,e,n,i,r){for(i===e&&i++;n>i;i++){for(var o,a=t[i],s=e,l=i;l>s;)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function An(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;s>l&&o(t,e[n+r+l])>0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;s>l&&o(t,e[n+r-l])<=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function Dn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;s>l&&o(t,e[n+r-l])<0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;s>l&&o(t,e[n+r+l])>=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function kn(t,e){function n(t,e){l[c]=t,u[c]=e,c+=1}function i(){for(;c>1;){var t=c-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]<u[t+1]&&t--;else if(u[t]>u[t+1])break;o(t)}}function r(){for(;c>1;){var t=c-2;t>0&&u[t-1]<u[t+1]&&t--,o(t)}}function o(n){var i=l[n],r=u[n],o=l[n+1],h=u[n+1];u[n]=r+h,n===c-3&&(l[n+1]=l[n+2],u[n+1]=u[n+2]),c--;var d=Dn(t[o],t,i,r,0,e);i+=d,r-=d,0!==r&&(h=An(t[i+r-1],t,o,h,h-1,e),0!==h&&(h>=r?a(i,r,o,h):s(i,r,o,h)))}function a(n,i,r,o){var a=0;for(a=0;i>a;a++)d[a]=t[n+a];var s=0,l=r,u=n;if(t[u++]=t[l++],0!==--o){if(1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=d[s])}for(var c,f,p,g=h;;){c=0,f=0,p=!1;do if(e(t[l],d[s])<0){if(t[u++]=t[l++],f++,c=0,0===--o){p=!0;break}}else if(t[u++]=d[s++],c++,f=0,1===--i){p=!0;break}while(g>(c|f));if(p)break;do{if(c=Dn(t[l],d,s,i,0,e),0!==c){for(a=0;c>a;a++)t[u+a]=d[s+a];if(u+=c,s+=c,i-=c,1>=i){p=!0;break}}if(t[u++]=t[l++],0===--o){p=!0;break}if(f=An(d[s],t,l,o,0,e),0!==f){for(a=0;f>a;a++)t[u+a]=t[l+a];if(u+=f,l+=f,o-=f,0===o){p=!0;break}}if(t[u++]=d[s++],1===--i){p=!0;break}g--}while(c>=tm||f>=tm);if(p)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=d[s]}else{if(0===i)throw new Error;for(a=0;i>a;a++)t[u+a]=d[s+a]}}else for(a=0;i>a;a++)t[u+a]=d[s+a]}function s(n,i,r,o){var a=0;for(a=0;o>a;a++)d[a]=t[r+a];var s=n+i-1,l=o-1,u=r+o-1,c=0,f=0;if(t[u--]=t[s--],0!==--i){if(1===o){for(u-=i,s-=i,f=u+1,c=s+1,a=i-1;a>=0;a--)t[f+a]=t[c+a];return void(t[u]=d[l])}for(var p=h;;){var g=0,v=0,m=!1;do if(e(d[l],t[s])<0){if(t[u--]=t[s--],g++,v=0,0===--i){m=!0;break}}else if(t[u--]=d[l--],v++,g=0,1===--o){m=!0;break}while(p>(g|v));if(m)break;do{if(g=i-Dn(d[l],t,n,i,i-1,e),0!==g){for(u-=g,s-=g,i-=g,f=u+1,c=s+1,a=g-1;a>=0;a--)t[f+a]=t[c+a];if(0===i){m=!0;break}}if(t[u--]=d[l--],1===--o){m=!0;break}if(v=o-An(t[s],d,0,o,o-1,e),0!==v){for(u-=v,l-=v,o-=v,f=u+1,c=l+1,a=0;v>a;a++)t[f+a]=d[c+a];if(1>=o){m=!0;break}}if(t[u--]=t[s--],0===--i){m=!0;break}p--}while(g>=tm||v>=tm);if(m)break;0>p&&(p=0),p+=2}if(h=p,1>h&&(h=1),1===o){for(u-=i,s-=i,f=u+1,c=s+1,a=i-1;a>=0;a--)t[f+a]=t[c+a];t[u]=d[l]}else{if(0===o)throw new Error;for(c=u-(o-1),a=0;o>a;a++)t[c+a]=d[a]}}else for(c=u-(o-1),a=0;o>a;a++)t[c+a]=d[a]}var l,u,h=tm,c=0,d=[];l=[],u=[],this.mergeRuns=i,this.forceMergeRuns=r,this.pushRun=n}function Pn(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(2>r)){var o=0;if(Jv>r)return o=Cn(t,n,i,e),void Tn(t,n,i,n+o,e);var a=new kn(t,e),s=Mn(r);do{if(o=Cn(t,n,i,e),s>o){var l=r;l>s&&(l=s),Tn(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}function On(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Ln(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a;var s=t.createLinearGradient(i,o,r,a);return s}function zn(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(a=a*i+n.x,s=s*r+n.y,l*=o);var u=t.createRadialGradient(a,s,0,a,s,l);return u}function En(){return!1}function Bn(t,e,n){var i=$g(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left=0,a.top=0,a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}function Rn(t){if("string"==typeof t){var e=pm.get(t);return e&&e.image}return t}function Nn(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=pm.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?(e=o.image,!Vn(e)&&o.pending.push(a)):(e=new Image,e.onload=e.onerror=Fn,pm.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function Fn(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Vn(t){return t&&t.width&&t.height}function Hn(t,e){e=e||xm;var n=t+":"+e;if(gm[n])return gm[n];for(var i=(t+"").split("\n"),r=0,o=0,a=i.length;a>o;o++)r=Math.max(Jn(i[o],e).width,r);return vm>mm&&(vm=0,gm={}),vm++,gm[n]=r,r}function Gn(t,e,n,i,r,o,a,s){return a?Xn(t,e,n,i,r,o,a,s):Wn(t,e,n,i,r,o,s)}function Wn(t,e,n,i,r,o,a){var s=ti(t,e,r,o,a),l=Hn(t,e);r&&(l+=r[1]+r[3]);var u=s.outerHeight,h=Yn(0,l,n),c=Zn(0,u,i),d=new Sn(h,c,l,u);return d.lineHeight=s.lineHeight,d}function Xn(t,e,n,i,r,o,a,s){var l=ei(t,{rich:a,truncate:s,font:e,textAlign:n,textPadding:r,textLineHeight:o}),u=l.outerWidth,h=l.outerHeight,c=Yn(0,u,n),d=Zn(0,h,i);return new Sn(c,d,u,h)}function Yn(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Zn(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Un(t,e,n){var i=e.textPosition,r=e.textDistance,o=n.x,a=n.y;r=r||0;var s=n.height,l=n.width,u=s/2,h="left",c="top";switch(i){case"left":o-=r,a+=u,h="right",c="middle";break;case"right":o+=r+l,a+=u,c="middle";break;case"top":o+=l/2,a-=r,h="center",c="bottom";break;case"bottom":o+=l/2,a+=s+r,h="center";break;case"inside":o+=l/2,a+=u,h="center",c="middle";break;case"insideLeft":o+=r,a+=u,c="middle";break;case"insideRight":o+=l-r,a+=u,h="right",c="middle";break;case"insideTop":o+=l/2,a+=r,h="center";break;case"insideBottom":o+=l/2,a+=s-r,h="center",c="bottom";break;case"insideTopLeft":o+=r,a+=r;break;case"insideTopRight":o+=l-r,a+=r,h="right";break;case"insideBottomLeft":o+=r,a+=s-r,c="bottom";break;case"insideBottomRight":o+=l-r,a+=s-r,h="right",c="bottom"}return t=t||{},t.x=o,t.y=a,t.textAlign=h,t.textVerticalAlign=c,t}function jn(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=qn(e,n,i,r);for(var a=0,s=o.length;s>a;a++)o[a]=$n(o[a],r);return o.join("\n")}function qn(t,e,n,i){i=a({},i),i.font=e;var n=D(n,"...");i.maxIterations=D(i.maxIterations,2);var r=i.minChar=D(i.minChar,0);i.cnCharWidth=Hn("国",e);var o=i.ascCharWidth=Hn("a",e);i.placeholder=D(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;r>l&&s>=o;l++)s-=o;var u=Hn(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function $n(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Hn(t,i);if(n>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Kn(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=Hn(t,i)}return""===t&&(t=e.placeholder),t}function Kn(t,e,n,i){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charCodeAt(o);r+=s>=0&&127>=s?n:i}return o}function Qn(t){return Hn("国",t)}function Jn(t,e){return _m.measureText(t,e)}function ti(t,e,n,i,r){null!=t&&(t+="");var o=D(i,Qn(e)),a=t?t.split("\n"):[],s=a.length*o,l=s,u=!0;if(n&&(l+=n[0]+n[2]),t&&r){u=!1;var h=r.outerHeight,c=r.outerWidth;if(null!=h&&l>h)t="",a=[];else if(null!=c)for(var d=qn(c-(n?n[1]+n[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),f=0,p=a.length;p>f;f++)a[f]=$n(a[f],d)}return{lines:a,height:s,outerHeight:l,lineHeight:o,canCacheByTextString:u}}function ei(t,e){var n={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return n;for(var i,r=ym.lastIndex=0;null!=(i=ym.exec(t));){var o=i.index;o>r&&ni(n,t.substring(r,o)),ni(n,i[2],i[1]),r=ym.lastIndex}r<t.length&&ni(n,t.substring(r,t.length));var a=n.lines,s=0,l=0,u=[],h=e.textPadding,c=e.truncate,d=c&&c.outerWidth,f=c&&c.outerHeight;h&&(null!=d&&(d-=h[1]+h[3]),null!=f&&(f-=h[0]+h[2]));for(var p=0;p<a.length;p++){for(var g=a[p],v=0,m=0,y=0;y<g.tokens.length;y++){var x=g.tokens[y],_=x.styleName&&e.rich[x.styleName]||{},w=x.textPadding=_.textPadding,b=x.font=_.font||e.font,S=x.textHeight=D(_.textHeight,Qn(b));if(w&&(S+=w[0]+w[2]),x.height=S,x.lineHeight=k(_.textLineHeight,e.textLineHeight,S),x.textAlign=_&&_.textAlign||e.textAlign,x.textVerticalAlign=_&&_.textVerticalAlign||"middle",null!=f&&s+x.lineHeight>f)return{lines:[],width:0,height:0};x.textWidth=Hn(x.text,b);var M=_.textWidth,C=null==M||"auto"===M;if("string"==typeof M&&"%"===M.charAt(M.length-1))x.percentWidth=M,u.push(x),M=0;else{if(C){M=x.textWidth;var I=_.textBackgroundColor,T=I&&I.image;T&&(T=Rn(T),Vn(T)&&(M=Math.max(M,T.width*S/T.height)))}var A=w?w[1]+w[3]:0;M+=A;var P=null!=d?d-m:null;null!=P&&M>P&&(!C||A>P?(x.text="",x.textWidth=M=0):(x.text=jn(x.text,P-A,b,c.ellipsis,{minChar:c.minChar}),x.textWidth=Hn(x.text,b),M=x.textWidth+A))}m+=x.width=M,_&&(v=Math.max(v,x.lineHeight))}g.width=m,g.lineHeight=v,s+=v,l=Math.max(l,m)}n.outerWidth=n.width=D(e.textWidth,l),n.outerHeight=n.height=D(e.textHeight,s),h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]);for(var p=0;p<u.length;p++){var x=u[p],O=x.percentWidth;x.width=parseInt(O,10)/100*l}return n}function ni(t,e,n){for(var i=""===e,r=e.split("\n"),o=t.lines,a=0;a<r.length;a++){var s=r[a],l={styleName:n,text:s,isLineHolder:!s&&!i};if(a)o.push({tokens:[l]});else{var u=(o[o.length-1]||(o[0]={tokens:[]})).tokens,h=u.length;1===h&&u[0].isLineHolder?u[0]=l:(s||!h||i)&&u.push(l)}}}function ii(t){var e=(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ");return e&&z(e)||t.textFont||t.font}function ri(t,e){var n,i,r,o,a=e.x,s=e.y,l=e.width,u=e.height,h=e.r;0>l&&(a+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0;var c;n+i>l&&(c=n+i,n*=l/c,i*=l/c),r+o>l&&(c=r+o,r*=l/c,o*=l/c),i+r>u&&(c=i+r,i*=u/c,r*=u/c),n+o>u&&(c=n+o,n*=u/c,o*=u/c),t.moveTo(a+n,s),t.lineTo(a+l-i,s),0!==i&&t.arc(a+l-i,s+i,i,-Math.PI/2,0),t.lineTo(a+l,s+u-r),0!==r&&t.arc(a+l-r,s+u-r,r,0,Math.PI/2),t.lineTo(a+o,s+u),0!==o&&t.arc(a+o,s+u-o,o,Math.PI/2,Math.PI),t.lineTo(a,s+n),0!==n&&t.arc(a+n,s+n,n,Math.PI,1.5*Math.PI)}function oi(t){return ai(t),f(t.rich,ai),t}function ai(t){if(t){t.font=ii(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||bm[e]?e:"left";var n=t.textVerticalAlign||t.textBaseline;"center"===n&&(n="middle"),t.textVerticalAlign=null==n||Sm[n]?n:"top";var i=t.textPadding;i&&(t.textPadding=O(t.textPadding))}}function si(t,e,n,i,r,o){i.rich?ui(t,e,n,i,r,o):li(t,e,n,i,r,o)}function li(t,e,n,i,r,o){var a,s=fi(i),l=!1,u=e.__attrCachedBy===rm.PLAIN_TEXT;o!==om?(o&&(a=o.style,l=!s&&u&&a),e.__attrCachedBy=s?rm.NONE:rm.PLAIN_TEXT):u&&(e.__attrCachedBy=rm.NONE);var h=i.font||wm;l&&h===(a.font||wm)||(e.font=h);var c=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,c=t.__computedFont=e.font);var d=i.textPadding,f=i.textLineHeight,p=t.__textCotentBlock;(!p||t.__dirtyText)&&(p=t.__textCotentBlock=ti(n,c,d,f,i.truncate));var g=p.outerHeight,v=p.lines,m=p.lineHeight,y=vi(Im,t,i,r),x=y.baseX,_=y.baseY,w=y.textAlign||"left",b=y.textVerticalAlign;ci(e,i,r,x,_);var S=Zn(_,g,b),M=x,C=S;if(s||d){var I=Hn(n,c),T=I;d&&(T+=d[1]+d[3]);var A=Yn(x,T,w);s&&pi(t,e,i,A,S,T,g),d&&(M=wi(x,w,d),C+=d[0])}e.textAlign=w,e.textBaseline="middle",e.globalAlpha=i.opacity||1;for(var D=0;D<Mm.length;D++){var k=Mm[D],P=k[0],O=k[1],L=i[P];l&&L===a[P]||(e[O]=im(e,O,L||k[2]))}C+=m/2;var z=i.textStrokeWidth,E=l?a.textStrokeWidth:null,B=!l||z!==E,R=!l||B||i.textStroke!==a.textStroke,N=yi(i.textStroke,z),F=xi(i.textFill);if(N&&(B&&(e.lineWidth=z),R&&(e.strokeStyle=N)),F&&(l&&i.textFill===a.textFill||(e.fillStyle=F)),1===v.length)N&&e.strokeText(v[0],M,C),F&&e.fillText(v[0],M,C);else for(var D=0;D<v.length;D++)N&&e.strokeText(v[D],M,C),F&&e.fillText(v[D],M,C),C+=m}function ui(t,e,n,i,r,o){o!==om&&(e.__attrCachedBy=rm.NONE);var a=t.__textCotentBlock;(!a||t.__dirtyText)&&(a=t.__textCotentBlock=ei(n,i)),hi(t,e,a,i,r)}function hi(t,e,n,i,r){var o=n.width,a=n.outerWidth,s=n.outerHeight,l=i.textPadding,u=vi(Im,t,i,r),h=u.baseX,c=u.baseY,d=u.textAlign,f=u.textVerticalAlign;ci(e,i,r,h,c);var p=Yn(h,a,d),g=Zn(c,s,f),v=p,m=g;l&&(v+=l[3],m+=l[0]);var y=v+o;fi(i)&&pi(t,e,i,p,g,a,s);for(var x=0;x<n.lines.length;x++){for(var _,w=n.lines[x],b=w.tokens,S=b.length,M=w.lineHeight,C=w.width,I=0,T=v,A=y,D=S-1;S>I&&(_=b[I],!_.textAlign||"left"===_.textAlign);)di(t,e,_,i,M,m,T,"left"),C-=_.width,T+=_.width,I++;for(;D>=0&&(_=b[D],"right"===_.textAlign);)di(t,e,_,i,M,m,A,"right"),C-=_.width,A-=_.width,D--;for(T+=(o-(T-v)-(y-A)-C)/2;D>=I;)_=b[I],di(t,e,_,i,M,m,T+_.width/2,"center"),T+=_.width,I++;m+=M}}function ci(t,e,n,i,r){if(n&&e.textRotation){var o=e.textOrigin;"center"===o?(i=n.width/2+n.x,r=n.height/2+n.y):o&&(i=o[0]+n.x,r=o[1]+n.y),t.translate(i,r),t.rotate(-e.textRotation),t.translate(-i,-r)}}function di(t,e,n,i,r,o,a,s){var l=i.rich[n.styleName]||{};l.text=n.text;var u=n.textVerticalAlign,h=o+r/2;"top"===u?h=o+n.height/2:"bottom"===u&&(h=o+r-n.height/2),!n.isLineHolder&&fi(l)&&pi(t,e,l,"right"===s?a-n.width:"center"===s?a-n.width/2:a,h-n.height/2,n.width,n.height);var c=n.textPadding;c&&(a=wi(a,s,c),h-=n.height/2-c[2]-n.textHeight/2),mi(e,"shadowBlur",k(l.textShadowBlur,i.textShadowBlur,0)),mi(e,"shadowColor",l.textShadowColor||i.textShadowColor||"transparent"),mi(e,"shadowOffsetX",k(l.textShadowOffsetX,i.textShadowOffsetX,0)),mi(e,"shadowOffsetY",k(l.textShadowOffsetY,i.textShadowOffsetY,0)),mi(e,"textAlign",s),mi(e,"textBaseline","middle"),mi(e,"font",n.font||wm); var d=yi(l.textStroke||i.textStroke,p),f=xi(l.textFill||i.textFill),p=D(l.textStrokeWidth,i.textStrokeWidth);d&&(mi(e,"lineWidth",p),mi(e,"strokeStyle",d),e.strokeText(n.text,a,h)),f&&(mi(e,"fillStyle",f),e.fillText(n.text,a,h))}function fi(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function pi(t,e,n,i,r,o,a){var s=n.textBackgroundColor,l=n.textBorderWidth,u=n.textBorderColor,h=b(s);if(mi(e,"shadowBlur",n.textBoxShadowBlur||0),mi(e,"shadowColor",n.textBoxShadowColor||"transparent"),mi(e,"shadowOffsetX",n.textBoxShadowOffsetX||0),mi(e,"shadowOffsetY",n.textBoxShadowOffsetY||0),h||l&&u){e.beginPath();var c=n.textBorderRadius;c?ri(e,{x:i,y:r,width:o,height:a,r:c}):e.rect(i,r,o,a),e.closePath()}if(h)if(mi(e,"fillStyle",s),null!=n.fillOpacity){var d=e.globalAlpha;e.globalAlpha=n.fillOpacity*n.opacity,e.fill(),e.globalAlpha=d}else e.fill();else if(S(s)){var f=s.image;f=Nn(f,null,t,gi,s),f&&Vn(f)&&e.drawImage(f,i,r,o,a)}if(l&&u)if(mi(e,"lineWidth",l),mi(e,"strokeStyle",u),null!=n.strokeOpacity){var d=e.globalAlpha;e.globalAlpha=n.strokeOpacity*n.opacity,e.stroke(),e.globalAlpha=d}else e.stroke()}function gi(t,e){e.image=t}function vi(t,e,n,i){var r=n.x||0,o=n.y||0,a=n.textAlign,s=n.textVerticalAlign;if(i){var l=n.textPosition;if(l instanceof Array)r=i.x+_i(l[0],i.width),o=i.y+_i(l[1],i.height);else{var u=e&&e.calculateTextPosition?e.calculateTextPosition(Cm,n,i):Un(Cm,n,i);r=u.x,o=u.y,a=a||u.textAlign,s=s||u.textVerticalAlign}var h=n.textOffset;h&&(r+=h[0],o+=h[1])}return t=t||{},t.baseX=r,t.baseY=o,t.textAlign=a,t.textVerticalAlign=s,t}function mi(t,e,n){return t[e]=im(t,e,n),t[e]}function yi(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function xi(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function _i(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function wi(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function bi(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}function Si(t){t=t||{},jv.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new sm(t.style,this),this._rect=null,this.__clipPaths=null}function Mi(t){Si.call(this,t)}function Ci(t){return parseInt(t,10)}function Ii(t){return t?t.__builtin__?!0:"function"!=typeof t.resize||"function"!=typeof t.refresh?!1:!0:!1}function Ti(t,e,n){return Lm.copy(t.getBoundingRect()),t.transform&&Lm.applyTransform(t.transform),zm.width=e,zm.height=n,!Lm.intersect(zm)}function Ai(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function Di(t,e){for(var n=0;n<t.length;n++){var i=t[n];i.setTransform(e),e.beginPath(),i.buildPath(e,i.shape),e.clip(),i.restoreTransform(e)}}function ki(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}function Pi(t){return"mousewheel"===t&&Fg.browser.firefox?"DOMMouseScroll":t}function Oi(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Li(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function zi(t){t&&(t.zrByTouch=!0)}function Ei(t,e){return xe(t.dom,new Ri(t,e),!0)}function Bi(t,e){var n=!1;do e=e&&e.parentNode;while(e&&9!==e.nodeType&&!(n=e===t.painterRoot));return n}function Ri(t,e){this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}function Ni(t,e){var n=e.domHandlers;Fg.pointerEventsSupported?f(Fm.pointer,function(i){Vi(e,i,function(e){n[i].call(t,e)})}):(Fg.touchEventsSupported&&f(Fm.touch,function(i){Vi(e,i,function(r){n[i].call(t,r),Li(e)})}),f(Fm.mouse,function(i){Vi(e,i,function(r){r=ye(r),e.touching||n[i].call(t,r)})}))}function Fi(t,e){function n(n){function i(i){i=ye(i),Bi(t,i.target)||(i=Ei(t,i),e.domHandlers[n].call(t,i))}Vi(e,n,i,{capture:!0})}Fg.pointerEventsSupported?f(Vm.pointer,n):Fg.touchEventsSupported||f(Vm.mouse,n)}function Vi(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,_e(t.domTarget,Pi(e),n,i)}function Hi(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&we(t.domTarget,Pi(n),e[n],t.listenerOpts[n]);t.mounted={}}function Gi(t,e){if(t._mayPointerCapture=null,Nm&&t._pointerCapturing^e){t._pointerCapturing=e;var n=t._globalHandlerScope;e?Fi(t,n):Hi(n)}}function Wi(t,e){this.domTarget=t,this.domHandlers=e,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function Xi(t,e){sv.call(this),this.dom=t,this.painterRoot=e,this._localHandlerScope=new Wi(t,Gm),Nm&&(this._globalHandlerScope=new Wi(document,Wm)),this._pointerCapturing=!1,this._mayPointerCapture=null,Ni(this,this._localHandlerScope)}function Yi(t,e){var n=new qm(Rg(),t,e);return Um[n.id]=n,n}function Zi(t){if(t)t.dispose();else{for(var e in Um)Um.hasOwnProperty(e)&&Um[e].dispose();Um={}}return this}function Ui(t){return Um[t]}function ji(t,e){Zm[t]=e}function qi(t){delete Um[t]}function $i(t){return t instanceof Array?t:null==t?[]:[t]}function Ki(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;r>i;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function Qi(t){return!Qm(t)||Jm(t)||t instanceof Date?t:t.value}function Ji(t){return Qm(t)&&!(t instanceof Array)}function tr(t,e){e=(e||[]).slice();var n=p(t||[],function(t){return{exist:t}});return Km(e,function(t,i){if(Qm(t)){for(var r=0;r<n.length;r++)if(!n[r].option&&null!=t.id&&n[r].exist.id===t.id+"")return n[r].option=t,void(e[i]=null);for(var r=0;r<n.length;r++){var o=n[r].exist;if(!(n[r].option||null!=o.id&&null!=t.id||null==t.name||ir(t)||ir(o)||o.name!==t.name+""))return n[r].option=t,void(e[i]=null)}}}),Km(e,function(t){if(Qm(t)){for(var e=0;e<n.length;e++){var i=n[e].exist;if(!n[e].option&&!ir(i)&&null==t.id){n[e].option=t;break}}e>=n.length&&n.push({option:t})}}),n}function er(t){var e=N();Km(t,function(t){var n=t.exist;n&&e.set(n.id,t)}),Km(t,function(t){var n=t.option;L(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),Km(t,function(t,n){var i=t.exist,r=t.option,o=t.keyInfo;if(Qm(r)){if(o.name=null!=r.name?r.name+"":i?i.name:ty+n,i)o.id=i.id;else if(null!=r.id)o.id=r.id+"";else{var a=0;do o.id="\x00"+o.name+"\x00"+a++;while(e.get(o.id))}e.set(o.id,t)}})}function nr(t){var e=t.name;return!(!e||!e.indexOf(ty))}function ir(t){return Qm(t)&&t.id&&0===(t.id+"").indexOf("\x00_ec_\x00")}function rr(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?_(e.dataIndex)?p(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?_(e.name)?p(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function or(){var t="__\x00ec_inner_"+ny++ +"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}function ar(t,e,n){if(b(e)){var i={};i[e+"Index"]=0,e=i}var r=n&&n.defaultMainType;!r||sr(e,r+"Index")||sr(e,r+"Id")||sr(e,r+"Name")||(e[r+"Index"]=0);var o={};return Km(e,function(i,r){var i=e[r];if("dataIndex"===r||"dataIndexInside"===r)return void(o[r]=i);var a=r.match(/^(\w+)(Index|Id|Name)$/)||[],s=a[1],l=(a[2]||"").toLowerCase();if(!(!s||!l||null==i||"index"===l&&"none"===i||n&&n.includeMainTypes&&u(n.includeMainTypes,s)<0)){var h={mainType:s};("index"!==l||"all"!==i)&&(h[l]=i);var c=t.queryComponents(h);o[s+"Models"]=c,o[s+"Model"]=c[0]}}),o}function sr(t,e){return t&&t.hasOwnProperty(e)}function lr(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function ur(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function hr(t){return"auto"===t?Fg.domSupported?"html":"richText":t||"html"}function cr(t){var e={main:"",sub:""};return t&&(t=t.split(iy),e.main=t[0]||"",e.sub=t[1]||""),e}function dr(t){L(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function fr(t){t.$constructor=t,t.extend=function(t){var e=this,n=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return a(n.prototype,t),n.extend=this.extend,n.superCall=gr,n.superApply=vr,h(n,this),n.superClass=e,n}}function pr(t){var e=["__\x00is_clz",oy++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function gr(t,e){var n=P(arguments,2);return this.superClass.prototype[e].apply(t,n)}function vr(t,e,n){return this.superClass.prototype[e].apply(t,n)}function mr(t,e){function n(t){var e=i[t.main];return e&&e[ry]||(e=i[t.main]={},e[ry]=!0),e}e=e||{};var i={};if(t.registerClass=function(t,e){if(e)if(dr(e),e=cr(e),e.sub){if(e.sub!==ry){var r=n(e);r[e.sub]=t}}else i[e.main]=t;return t},t.getClass=function(t,e,n){var r=i[t];if(r&&r[ry]&&(r=e?r[e]:null),n&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){t=cr(t);var e=[],n=i[t.main];return n&&n[ry]?f(n,function(t,n){n!==ry&&e.push(t)}):e.push(n),e},t.hasClass=function(t){return t=cr(t),!!i[t.main]},t.getAllClassMainTypes=function(){var t=[];return f(i,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){t=cr(t);var e=i[t.main];return e&&e[ry]},t.parseClassType=cr,e.registerWhenExtend){var r=t.extend;r&&(t.extend=function(e){var n=r.call(this,e);return t.registerClass(n,e.type)})}return t}function yr(t){return t>-fy&&fy>t}function xr(t){return t>fy||-fy>t}function _r(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function wr(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function br(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,d=l*l-3*s*u,f=0;if(yr(h)&&yr(c))if(yr(s))o[0]=0;else{var p=-l/s;p>=0&&1>=p&&(o[f++]=p)}else{var g=c*c-4*h*d;if(yr(g)){var v=c/h,p=-s/a+v,m=-v/2;p>=0&&1>=p&&(o[f++]=p),m>=0&&1>=m&&(o[f++]=m)}else if(g>0){var y=dy(g),x=h*s+1.5*a*(-c+y),_=h*s+1.5*a*(-c-y);x=0>x?-cy(-x,vy):cy(x,vy),_=0>_?-cy(-_,vy):cy(_,vy);var p=(-s-(x+_))/(3*a);p>=0&&1>=p&&(o[f++]=p)}else{var w=(2*h*s-3*a*c)/(2*dy(h*h*h)),b=Math.acos(w)/3,S=dy(h),M=Math.cos(b),p=(-s-2*S*M)/(3*a),m=(-s+S*(M+gy*Math.sin(b)))/(3*a),C=(-s+S*(M-gy*Math.sin(b)))/(3*a);p>=0&&1>=p&&(o[f++]=p),m>=0&&1>=m&&(o[f++]=m),C>=0&&1>=C&&(o[f++]=C)}}return f}function Sr(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(yr(a)){if(xr(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(yr(h))r[0]=-o/(2*a);else if(h>0){var c=dy(h),u=(-o+c)/(2*a),d=(-o-c)/(2*a);u>=0&&1>=u&&(r[l++]=u),d>=0&&1>=d&&(r[l++]=d)}}return l}function Mr(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function Cr(t,e,n,i,r,o,a,s,l,u,h){var c,d,f,p,g,v=.005,m=1/0;my[0]=l,my[1]=u;for(var y=0;1>y;y+=.05)yy[0]=_r(t,n,r,a,y),yy[1]=_r(e,i,o,s,y),p=rv(my,yy),m>p&&(c=y,m=p);m=1/0;for(var x=0;32>x&&!(py>v);x++)d=c-v,f=c+v,yy[0]=_r(t,n,r,a,d),yy[1]=_r(e,i,o,s,d),p=rv(yy,my),d>=0&&m>p?(c=d,m=p):(xy[0]=_r(t,n,r,a,f),xy[1]=_r(e,i,o,s,f),g=rv(xy,my),1>=f&&m>g?(c=f,m=g):v*=.5);return h&&(h[0]=_r(t,n,r,a,c),h[1]=_r(e,i,o,s,c)),dy(m)}function Ir(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function Tr(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Ar(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(yr(o)){if(xr(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(yr(h)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(h>0){var c=dy(h),u=(-a+c)/(2*o),d=(-a-c)/(2*o);u>=0&&1>=u&&(r[l++]=u),d>=0&&1>=d&&(r[l++]=d)}}return l}function Dr(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function kr(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Pr(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;my[0]=a,my[1]=s;for(var d=0;1>d;d+=.05){yy[0]=Ir(t,n,r,d),yy[1]=Ir(e,i,o,d);var f=rv(my,yy);c>f&&(u=d,c=f)}c=1/0;for(var p=0;32>p&&!(py>h);p++){var g=u-h,v=u+h;yy[0]=Ir(t,n,r,g),yy[1]=Ir(e,i,o,g);var f=rv(yy,my);if(g>=0&&c>f)u=g,c=f;else{xy[0]=Ir(t,n,r,v),xy[1]=Ir(e,i,o,v);var m=rv(xy,my);1>=v&&c>m?(u=v,c=m):h*=.5}}return l&&(l[0]=Ir(t,n,r,u),l[1]=Ir(e,i,o,u)),dy(c)}function Or(t,e,n){if(0!==t.length){var i,r=t[0],o=r[0],a=r[0],s=r[1],l=r[1];for(i=1;i<t.length;i++)r=t[i],o=_y(o,r[0]),a=wy(a,r[0]),s=_y(s,r[1]),l=wy(l,r[1]);e[0]=o,e[1]=s,n[0]=a,n[1]=l}}function Lr(t,e,n,i,r,o){r[0]=_y(t,n),r[1]=_y(e,i),o[0]=wy(t,n),o[1]=wy(e,i)}function zr(t,e,n,i,r,o,a,s,l,u){var h,c=Sr,d=_r,f=c(t,n,r,a,Ay);for(l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0,h=0;f>h;h++){var p=d(t,n,r,a,Ay[h]);l[0]=_y(p,l[0]),u[0]=wy(p,u[0])}for(f=c(e,i,o,s,Dy),h=0;f>h;h++){var g=d(e,i,o,s,Dy[h]);l[1]=_y(g,l[1]),u[1]=wy(g,u[1])}l[0]=_y(t,l[0]),u[0]=wy(t,u[0]),l[0]=_y(a,l[0]),u[0]=wy(a,u[0]),l[1]=_y(e,l[1]),u[1]=wy(e,u[1]),l[1]=_y(s,l[1]),u[1]=wy(s,u[1])}function Er(t,e,n,i,r,o,a,s){var l=Dr,u=Ir,h=wy(_y(l(t,n,r),1),0),c=wy(_y(l(e,i,o),1),0),d=u(t,n,r,h),f=u(e,i,o,c);a[0]=_y(t,r,d),a[1]=_y(e,o,f),s[0]=wy(t,r,d),s[1]=wy(e,o,f)}function Br(t,e,n,i,r,o,a,s,l){var u=ae,h=se,c=Math.abs(r-o);if(1e-4>c%My&&c>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Cy[0]=Sy(r)*n+t,Cy[1]=by(r)*i+e,Iy[0]=Sy(o)*n+t,Iy[1]=by(o)*i+e,u(s,Cy,Iy),h(l,Cy,Iy),r%=My,0>r&&(r+=My),o%=My,0>o&&(o+=My),r>o&&!a?o+=My:o>r&&a&&(r+=My),a){var d=o;o=r,r=d}for(var f=0;o>f;f+=Math.PI/2)f>r&&(Ty[0]=Sy(f)*n+t,Ty[1]=by(f)*i+e,u(s,Ty,s),h(l,Ty,l))}function Rr(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>i+s||e-s>a&&i-s>a||o>t+s&&o>n+s||t-s>o&&n-s>o)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var h=l*o-a+u,c=h*h/(l*l+1);return s/2*s/2>=c}function Nr(t,e,n,i,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;if(h>e+c&&h>i+c&&h>o+c&&h>s+c||e-c>h&&i-c>h&&o-c>h&&s-c>h||u>t+c&&u>n+c&&u>r+c&&u>a+c||t-c>u&&n-c>u&&r-c>u&&a-c>u)return!1;var d=Cr(t,e,n,i,r,o,a,s,u,h,null);return c/2>=d}function Fr(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||e-u>l&&i-u>l&&o-u>l||s>t+u&&s>n+u&&s>r+u||t-u>s&&n-u>s&&r-u>s)return!1;var h=Pr(t,e,n,i,r,o,s,l,null);return u/2>=h}function Vr(t){return t%=Wy,0>t&&(t+=Wy),t}function Hr(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>n||n>h+u)return!1;if(Math.abs(i-r)%Xy<1e-4)return!0;if(o){var c=i;i=Vr(r),r=Vr(c)}else i=Vr(i),r=Vr(r);i>r&&(r+=Xy);var d=Math.atan2(l,s);return 0>d&&(d+=Xy),d>=i&&r>=d||d+Xy>=i&&r>=d+Xy}function Gr(t,e,n,i,r,o){if(o>e&&o>i||e>o&&i>o)return 0;if(i===e)return 0;var a=e>i?1:-1,s=(o-e)/(i-e);(1===s||0===s)&&(a=e>i?.5:-.5);var l=s*(n-t)+t;return l===r?1/0:l>r?a:0}function Wr(t,e){return Math.abs(t-e)<Uy}function Xr(){var t=qy[0];qy[0]=qy[1],qy[1]=t}function Yr(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||e>u&&i>u&&o>u&&s>u)return 0;var h=br(e,i,o,s,u,jy);if(0===h)return 0;for(var c,d,f=0,p=-1,g=0;h>g;g++){var v=jy[g],m=0===v||1===v?.5:1,y=_r(t,n,r,a,v);l>y||(0>p&&(p=Sr(e,i,o,s,qy),qy[1]<qy[0]&&p>1&&Xr(),c=_r(e,i,o,s,qy[0]),p>1&&(d=_r(e,i,o,s,qy[1]))),f+=2===p?v<qy[0]?e>c?m:-m:v<qy[1]?c>d?m:-m:d>s?m:-m:v<qy[0]?e>c?m:-m:c>s?m:-m)}return f}function Zr(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||e>s&&i>s&&o>s)return 0;var l=Ar(e,i,o,s,jy);if(0===l)return 0;var u=Dr(e,i,o);if(u>=0&&1>=u){for(var h=0,c=Ir(e,i,o,u),d=0;l>d;d++){var f=0===jy[d]||1===jy[d]?.5:1,p=Ir(t,n,r,jy[d]);a>p||(h+=jy[d]<u?e>c?f:-f:c>o?f:-f)}return h}var f=0===jy[0]||1===jy[0]?.5:1,p=Ir(t,n,r,jy[0]);return a>p?0:e>o?f:-f}function Ur(t,e,n,i,r,o,a,s){if(s-=e,s>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);jy[0]=-l,jy[1]=l;var u=Math.abs(i-r);if(1e-4>u)return 0;if(1e-4>u%Zy){i=0,r=Zy;var h=o?1:-1;return a>=jy[0]+t&&a<=jy[1]+t?h:0}if(o){var l=i;i=Vr(r),r=Vr(l)}else i=Vr(i),r=Vr(r);i>r&&(r+=Zy);for(var c=0,d=0;2>d;d++){var f=jy[d];if(f+t>a){var p=Math.atan2(s,f),h=o?1:-1;0>p&&(p=Zy+p),(p>=i&&r>=p||p+Zy>=i&&r>=p+Zy)&&(p>Math.PI/2&&p<1.5*Math.PI&&(h=-h),c+=h)}}return c}function jr(t,e,n,i,r){for(var o=0,a=0,s=0,l=0,u=0,h=0;h<t.length;){var c=t[h++];switch(c===Yy.M&&h>1&&(n||(o+=Gr(a,s,l,u,i,r))),1===h&&(a=t[h],s=t[h+1],l=a,u=s),c){case Yy.M:l=t[h++],u=t[h++],a=l,s=u;break;case Yy.L:if(n){if(Rr(a,s,t[h],t[h+1],e,i,r))return!0}else o+=Gr(a,s,t[h],t[h+1],i,r)||0;a=t[h++],s=t[h++];break;case Yy.C:if(n){if(Nr(a,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],e,i,r))return!0}else o+=Yr(a,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],i,r)||0;a=t[h++],s=t[h++];break;case Yy.Q:if(n){if(Fr(a,s,t[h++],t[h++],t[h],t[h+1],e,i,r))return!0}else o+=Zr(a,s,t[h++],t[h++],t[h],t[h+1],i,r)||0;a=t[h++],s=t[h++];break;case Yy.A:var d=t[h++],f=t[h++],p=t[h++],g=t[h++],v=t[h++],m=t[h++];h+=1;var y=1-t[h++],x=Math.cos(v)*p+d,_=Math.sin(v)*g+f;h>1?o+=Gr(a,s,x,_,i,r):(l=x,u=_);var w=(i-d)*g/p+d;if(n){if(Hr(d,f,g,v,v+m,y,e,w,r))return!0}else o+=Ur(d,f,g,v,v+m,y,w,r);a=Math.cos(v+m)*p+d,s=Math.sin(v+m)*g+f;break;case Yy.R:l=a=t[h++],u=s=t[h++];var b=t[h++],S=t[h++],x=l+b,_=u+S;if(n){if(Rr(l,u,x,u,e,i,r)||Rr(x,u,x,_,e,i,r)||Rr(x,_,l,_,e,i,r)||Rr(l,_,l,u,e,i,r))return!0}else o+=Gr(x,u,x,_,i,r),o+=Gr(l,_,l,u,i,r);break;case Yy.Z:if(n){if(Rr(a,s,l,u,e,i,r))return!0}else o+=Gr(a,s,l,u,i,r);a=l,s=u}}return n||Wr(s,u)||(o+=Gr(a,s,l,u,i,r)||0),0!==o}function qr(t,e,n){return jr(t,0,!1,e,n)}function $r(t,e,n,i){return jr(t,e,!0,n,i)}function Kr(t){Si.call(this,t),this.path=null}function Qr(t,e,n,i,r,o,a,s,l,u,h){var c=l*(sx/180),d=ax(c)*(t-n)/2+ox(c)*(e-i)/2,f=-1*ox(c)*(t-n)/2+ax(c)*(e-i)/2,p=d*d/(a*a)+f*f/(s*s);p>1&&(a*=rx(p),s*=rx(p));var g=(r===o?-1:1)*rx((a*a*s*s-a*a*f*f-s*s*d*d)/(a*a*f*f+s*s*d*d))||0,v=g*a*f/s,m=g*-s*d/a,y=(t+n)/2+ax(c)*v-ox(c)*m,x=(e+i)/2+ox(c)*v+ax(c)*m,_=hx([1,0],[(d-v)/a,(f-m)/s]),w=[(d-v)/a,(f-m)/s],b=[(-1*d-v)/a,(-1*f-m)/s],S=hx(w,b);ux(w,b)<=-1&&(S=sx),ux(w,b)>=1&&(S=0),0===o&&S>0&&(S-=2*sx),1===o&&0>S&&(S+=2*sx),h.addData(u,y,x,a,s,_,S,c,o)}function Jr(t){if(!t)return new Gy;for(var e,n=0,i=0,r=n,o=i,a=new Gy,s=Gy.CMD,l=t.match(cx),u=0;u<l.length;u++){for(var h,c=l[u],d=c.charAt(0),f=c.match(dx)||[],p=f.length,g=0;p>g;g++)f[g]=parseFloat(f[g]);for(var v=0;p>v;){var m,y,x,_,w,b,S,M=n,C=i;switch(d){case"l":n+=f[v++],i+=f[v++],h=s.L,a.addData(h,n,i);break;case"L":n=f[v++],i=f[v++],h=s.L,a.addData(h,n,i);break;case"m":n+=f[v++],i+=f[v++],h=s.M,a.addData(h,n,i),r=n,o=i,d="l";break;case"M":n=f[v++],i=f[v++],h=s.M,a.addData(h,n,i),r=n,o=i,d="L";break;case"h":n+=f[v++],h=s.L,a.addData(h,n,i);break;case"H":n=f[v++],h=s.L,a.addData(h,n,i);break;case"v":i+=f[v++],h=s.L,a.addData(h,n,i);break;case"V":i=f[v++],h=s.L,a.addData(h,n,i);break;case"C":h=s.C,a.addData(h,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),n=f[v-2],i=f[v-1];break;case"c":h=s.C,a.addData(h,f[v++]+n,f[v++]+i,f[v++]+n,f[v++]+i,f[v++]+n,f[v++]+i),n+=f[v-2],i+=f[v-1];break;case"S":m=n,y=i;var I=a.len(),T=a.data;e===s.C&&(m+=n-T[I-4],y+=i-T[I-3]),h=s.C,M=f[v++],C=f[v++],n=f[v++],i=f[v++],a.addData(h,m,y,M,C,n,i);break;case"s":m=n,y=i;var I=a.len(),T=a.data;e===s.C&&(m+=n-T[I-4],y+=i-T[I-3]),h=s.C,M=n+f[v++],C=i+f[v++],n+=f[v++],i+=f[v++],a.addData(h,m,y,M,C,n,i);break;case"Q":M=f[v++],C=f[v++],n=f[v++],i=f[v++],h=s.Q,a.addData(h,M,C,n,i);break;case"q":M=f[v++]+n,C=f[v++]+i,n+=f[v++],i+=f[v++],h=s.Q,a.addData(h,M,C,n,i);break;case"T":m=n,y=i;var I=a.len(),T=a.data;e===s.Q&&(m+=n-T[I-4],y+=i-T[I-3]),n=f[v++],i=f[v++],h=s.Q,a.addData(h,m,y,n,i);break;case"t":m=n,y=i;var I=a.len(),T=a.data;e===s.Q&&(m+=n-T[I-4],y+=i-T[I-3]),n+=f[v++],i+=f[v++],h=s.Q,a.addData(h,m,y,n,i);break;case"A":x=f[v++],_=f[v++],w=f[v++],b=f[v++],S=f[v++],M=n,C=i,n=f[v++],i=f[v++],h=s.A,Qr(M,C,n,i,b,S,x,_,w,h,a);break;case"a":x=f[v++],_=f[v++],w=f[v++],b=f[v++],S=f[v++],M=n,C=i,n+=f[v++],i+=f[v++],h=s.A,Qr(M,C,n,i,b,S,x,_,w,h,a)}}("z"===d||"Z"===d)&&(h=s.Z,a.addData(h),n=r,i=o),e=h}return a.toStatic(),a}function to(t,e){var n=Jr(t);return e=e||{},e.buildPath=function(t){if(t.setData){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e)}else{var e=t;n.rebuildPath(e)}},e.applyTransform=function(t){ix(n,t),this.dirty(!0)},e}function eo(t,e){return new Kr(to(t,e))}function no(t,e){return Kr.extend(to(t,e))}function io(t,e){for(var n=[],i=t.length,r=0;i>r;r++){var o=t[r];o.path||o.createPathProxy(),o.__dirtyPath&&o.buildPath(o.path,o.shape,!0),n.push(o.path)}var a=new Kr(e);return a.createPathProxy(),a.buildPath=function(t){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e)},a}function ro(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}function oo(t,e,n){var i=e.points,r=e.smooth;if(i&&i.length>=2){if(r&&"spline"!==r){var o=_x(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===r&&(i=xx(i,n)),t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;c>s;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}function ao(t,e,n){var i=n&&n.lineWidth;if(e&&i){var r=e.x1,o=e.x2,a=e.y1,s=e.y2;Mx(2*r)===Mx(2*o)?t.x1=t.x2=lo(r,i,!0):(t.x1=r,t.x2=o),Mx(2*a)===Mx(2*s)?t.y1=t.y2=lo(a,i,!0):(t.y1=a,t.y2=s)}}function so(t,e,n){var i=n&&n.lineWidth;if(e&&i){var r=e.x,o=e.y,a=e.width,s=e.height;t.x=lo(r,i,!0),t.y=lo(o,i,!0),t.width=Math.max(lo(r+a,i,!1)-t.x,0===a?0:1),t.height=Math.max(lo(o+s,i,!1)-t.y,0===s?0:1)}}function lo(t,e,n){var i=Mx(2*t);return(i+Mx(e))%2===0?i/2:(i+(n?1:-1))/2}function uo(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?wr:_r)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?wr:_r)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Tr:Ir)(t.x1,t.cpx1,t.x2,e),(n?Tr:Ir)(t.y1,t.cpy1,t.y2,e)]}function ho(t){Si.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}function co(t){return Kr.extend(t)}function fo(t,e){return no(t,e)}function po(t,e){Zx[t]=e}function go(t){return Zx.hasOwnProperty(t)?Zx[t]:void 0}function vo(t,e,n,i){var r=eo(t,e);return n&&("center"===i&&(n=yo(n,r.getBoundingRect())),xo(r,n)),r}function mo(t,e,n){var i=new Mi({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(yo(e,r))}}});return i}function yo(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-r/2,y:a-n/2,width:r,height:n}}function xo(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function _o(t){return ao(t.shape,t.shape,t.style),t}function wo(t){return so(t.shape,t.shape,t.style),t}function bo(t){return null!=t&&"none"!==t}function So(t){if("string"!=typeof t)return t;var e=qx.get(t);return e||(e=Je(t,-.1),1e4>$x&&(qx.set(t,e),$x++)),e}function Mo(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(!e)return void(t.__cachedNormalStl=t.__cachedNormalZ2=null);var n=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var i=t.style;for(var r in e)null!=e[r]&&(n[r]=i[r]);n.fill=i.fill,n.stroke=i.stroke}}function Co(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var n=t.__zr,i=t.useHoverLayer&&n&&"canvas"===n.painter.type;if(t.__highlighted=i?"layer":"plain",!(t.isGroup||!n&&t.useHoverLayer)){var r=t,o=t.style;i&&(r=n.addHover(t),o=r.style),jo(o),i||Mo(r),o.extendFrom(e),Io(o,e,"fill"),Io(o,e,"stroke"),Uo(o),i||(t.dirty(!1),t.z2+=Vx)}}}function Io(t,e,n){!bo(e[n])&&bo(t[n])&&(t[n]=So(t[n]))}function To(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var n=t.style,i=t.__cachedNormalStl;i&&(jo(n),t.setStyle(i),Uo(n));var r=t.__cachedNormalZ2;null!=r&&t.z2-r===Vx&&(t.z2=r)}}function Ao(t,e,n){var i,r=Wx,o=Wx;t.__highlighted&&(r=Gx,i=!0),e(t,n),t.__highlighted&&(o=Gx,i=!0),t.isGroup&&t.traverse(function(t){!t.isGroup&&e(t,n)}),i&&t.__highDownOnUpdate&&t.__highDownOnUpdate(r,o)}function Do(t,e){e=t.__hoverStl=e!==!1&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,To(t),Co(t))}function ko(t){!zo(this,t)&&!this.__highByOuter&&Ao(this,Co)}function Po(t){!zo(this,t)&&!this.__highByOuter&&Ao(this,To)}function Oo(t){this.__highByOuter|=1<<(t||0),Ao(this,Co)}function Lo(t){!(this.__highByOuter&=~(1<<(t||0)))&&Ao(this,To)}function zo(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Eo(t,e){Bo(t,!0),Ao(t,Do,e)}function Bo(t,e){var n=e===!1;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!n||t.__highDownDispatcher){var i=n?"off":"on";t[i]("mouseover",ko)[i]("mouseout",Po),t[i]("emphasis",Oo)[i]("normal",Lo),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!n}}function Ro(t){return!(!t||!t.__highDownDispatcher)}function No(t){var e=Yx[t];return null==e&&32>=Xx&&(e=Yx[t]=Xx++),e}function Fo(t,e,n,i,r,o,a){r=r||Fx;var s,l=r.labelFetcher,u=r.labelDataIndex,h=r.labelDimIndex,c=n.getShallow("show"),d=i.getShallow("show");(c||d)&&(l&&(s=l.getFormattedLabel(u,"normal",null,h)),null==s&&(s=w(r.defaultText)?r.defaultText(u,r):r.defaultText));var f=c?s:null,p=d?D(l?l.getFormattedLabel(u,"emphasis",null,h):null,s):null;(null!=f||null!=p)&&(Ho(t,n,o,r),Ho(e,i,a,r,!0)),t.text=f,e.text=p}function Vo(t,e,n){var i=t.style;e&&(jo(i),t.setStyle(e),Uo(i)),i=t.__hoverStl,n&&i&&(jo(i),a(i,n),Uo(i))}function Ho(t,e,n,i,r){return Wo(t,e,i,r),n&&a(t,n),t}function Go(t,e,n){var i,r={isRectText:!0};n===!1?i=!0:r.autoColor=n,Wo(t,e,r,i)}function Wo(t,e,n,i){if(n=n||Fx,n.isRectText){var r;n.getTextPosition?r=n.getTextPosition(e,i):(r=e.getShallow("position")||(i?null:"inside"),"outside"===r&&(r="top")),t.textPosition=r,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=D(e.getShallow("distance"),i?null:5)}var a,s=e.ecModel,l=s&&s.option.textStyle,u=Xo(e);if(u){a={};for(var h in u)if(u.hasOwnProperty(h)){var c=e.getModel(["rich",h]);Yo(a[h]={},c,l,n,i)}}return t.rich=a,Yo(t,e,l,n,i,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),t}function Xo(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||Fx).rich;if(n){e=e||{};for(var i in n)n.hasOwnProperty(i)&&(e[i]=1)}t=t.parentModel}return e}function Yo(t,e,n,i,r,o){n=!r&&n||Fx,t.textFill=Zo(e.getShallow("color"),i)||n.color,t.textStroke=Zo(e.getShallow("textBorderColor"),i)||n.textBorderColor,t.textStrokeWidth=D(e.getShallow("textBorderWidth"),n.textBorderWidth),r||(o&&(t.insideRollbackOpt=i,Uo(t)),null==t.textFill&&(t.textFill=i.autoColor)),t.fontStyle=e.getShallow("fontStyle")||n.fontStyle,t.fontWeight=e.getShallow("fontWeight")||n.fontWeight,t.fontSize=e.getShallow("fontSize")||n.fontSize,t.fontFamily=e.getShallow("fontFamily")||n.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),o&&i.disableBox||(t.textBackgroundColor=Zo(e.getShallow("backgroundColor"),i),t.textPadding=e.getShallow("padding"),t.textBorderColor=Zo(e.getShallow("borderColor"),i),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||n.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||n.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||n.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function Zo(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function Uo(t){var e,n=t.textPosition,i=t.insideRollbackOpt;if(i&&null==t.textFill){var r=i.autoColor,o=i.isRectText,a=i.useInsideStyle,s=a!==!1&&(a===!0||o&&n&&"string"==typeof n&&n.indexOf("inside")>=0),l=!s&&null!=r;(s||l)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),s&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=r,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),l&&(t.textFill=r)}t.insideRollback=e}function jo(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function qo(t,e){var n=e&&e.getModel("textStyle");return z([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function $o(t,e,n,i,r,o){"function"==typeof r&&(o=r,r=null);var a=i&&i.isAnimationEnabled();if(a){var s=t?"Update":"",l=i.getShallow("animationDuration"+s),u=i.getShallow("animationEasing"+s),h=i.getShallow("animationDelay"+s);"function"==typeof h&&(h=h(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"==typeof l&&(l=l(r)),l>0?e.animateTo(n,l,h||0,u,o,!!o):(e.stopAnimation(),e.attr(n),o&&o())}else e.stopAnimation(),e.attr(n),o&&o()}function Ko(t,e,n,i,r){$o(!0,t,e,n,i,r)}function Qo(t,e,n,i,r){$o(!1,t,e,n,i,r)}function Jo(t,e){for(var n=ke([]);t&&t!==e;)Oe(n,t.getLocalTransform(),n),t=t.parent;return n}function ta(t,e,n){return e&&!d(e)&&(e=Sv.getLocalTransform(e)),n&&(e=Be([],e)),oe([],t,e)}function ea(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=ta(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function na(t,e,n){function i(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={position:W(t.position),rotation:t.rotation};return t.shape&&(e.shape=a({},t.shape)),e}if(t&&e){var o=i(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var i=r(t);t.attr(r(e)),Ko(t,i,n,t.dataIndex)}}})}}function ia(t,e){return p(t,function(t){var n=t[0];n=Rx(n,e.x),n=Nx(n,e.x+e.width);var i=t[1];return i=Rx(i,e.y),i=Nx(i,e.y+e.height),[n,i]})}function ra(t,e){var n=Rx(t.x,e.x),i=Nx(t.x+t.width,e.x+e.width),r=Rx(t.y,e.y),o=Nx(t.y+t.height,e.y+e.height);return i>=n&&o>=r?{x:n,y:r,width:i-n,height:o-r}:void 0}function oa(t,e,n){e=a({rectHover:!0},e);var i=e.style={strokeNoScale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(i.image=t.slice(8),s(i,n),new Mi(e)):vo(t.replace("path://",""),e,n,"center"):void 0}function aa(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(sa(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function sa(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,d=la(h,c,l,u);if(ua(d))return!1;var f=t-r,p=e-o,g=la(f,p,l,u)/d;if(0>g||g>1)return!1;var v=la(f,p,h,c)/d;return 0>v||v>1?!1:!0}function la(t,e,n,i){return t*i-n*e}function ua(t){return 1e-6>=t&&t>=-1e-6}function ha(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function ca(t,e,n){for(var i=0;i<e.length&&(!e[i]||(t=t&&"object"==typeof t?t[e[i]]:null,null!=t));i++);return null==t&&n&&(t=n.get(e)),t}function da(t,e){var n=i_(t).getParent;return n?n.call(t,e):t.parentModel}function fa(t){return[t||"",r_++,Math.random().toFixed(5)].join("_")}function pa(t){var e={};return t.registerSubTypeDefaulter=function(t,n){t=cr(t),e[t.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=cr(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r},t}function ga(t,e){function n(t){var n={},o=[];return f(t,function(a){var s=i(n,a),l=s.originalDeps=e(a),h=r(l,t);s.entryCount=h.length,0===s.entryCount&&o.push(a),f(h,function(t){u(s.predecessor,t)<0&&s.predecessor.push(t);var e=i(n,t);u(e.successor,t)<0&&e.successor.push(a)})}),{graph:n,noEntryList:o}}function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var n=[];return f(t,function(t){u(e,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,i,r){function o(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t) }function a(t){h[t]=!0,o(t)}if(t.length){var s=n(e),l=s.graph,u=s.noEntryList,h={};for(f(t,function(t){h[t]=!0});u.length;){var c=u.pop(),d=l[c],p=!!h[c];p&&(i.call(r,c,d.originalDeps.slice()),delete h[c]),f(d.successor,p?a:o)}f(h,function(){throw new Error("Circle dependency may exists")})}}}function va(t){return t.replace(/^\s+|\s+$/g,"")}function ma(t,e,n,i){var r=e[1]-e[0],o=n[1]-n[0];if(0===r)return 0===o?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*o+n[0]}function ya(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?va(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?0/0:+t}function xa(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function _a(t){return t.sort(function(t,e){return t-e}),t}function wa(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}function ba(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return 0>i?-i:0}var r=e.indexOf(".");return 0>r?0:e.length-1-r}function Sa(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Ma(t,e,n){if(!t[e])return 0;var i=g(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),o=p(t,function(t){return(isNaN(t)?0:t)/i*r*100}),a=100*r,s=p(o,function(t){return Math.floor(t)}),l=g(s,function(t,e){return t+e},0),u=p(o,function(t,e){return t-s[e]});a>l;){for(var h=Number.NEGATIVE_INFINITY,c=null,d=0,f=u.length;f>d;++d)u[d]>h&&(h=u[d],c=d);++s[c],u[c]=0,++l}return s[e]/r}function Ca(t){var e=2*Math.PI;return(t%e+e)%e}function Ia(t){return t>-o_&&o_>t}function Ta(t){if(t instanceof Date)return t;if("string"==typeof t){var e=s_.exec(t);if(!e)return new Date(0/0);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return new Date(null==t?0/0:Math.round(t))}function Aa(t){return Math.pow(10,Da(t))}function Da(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function ka(t,e){var n,i=Da(t),r=Math.pow(10,i),o=t/r;return n=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=n*r,i>=-20?+t.toFixed(0>i?-i:0):t}function Pa(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function Oa(t){function e(t,n,i){return t.interval[i]<n.interval[i]||t.interval[i]===n.interval[i]&&(t.close[i]-n.close[i]===(i?-1:1)||!i&&e(t,n,1))}t.sort(function(t,n){return e(t,n,0)?-1:1});for(var n=-1/0,i=1,r=0;r<t.length;){for(var o=t[r].interval,a=t[r].close,s=0;2>s;s++)o[s]<=n&&(o[s]=n,a[s]=s?1:1-i),n=o[s],i=a[s];o[0]===o[1]&&a[0]*a[1]!==1?t.splice(r,1):r++}return t}function La(t){return t-parseFloat(t)>=0}function za(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))}function Ea(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function Ba(t){return null==t?"":(t+"").replace(h_,function(t,e){return c_[e]})}function Ra(t,e,n){_(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=d_[o];t=t.replace(f_(a),f_(a,0))}for(var s=0;i>s;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(f_(d_[l],s),n?Ba(u):u)}return t}function Na(t,e,n){return f(e,function(e,i){t=t.replace("{"+i+"}",n?Ba(e):e)}),t}function Fa(t,e){t=b(t)?{color:t,extraCssText:e}:t||{};var n=t.color,i=t.type,e=t.extraCssText,r=t.renderMode||"html",o=t.markerId||"X";return n?"html"===r?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ba(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+Ba(n)+";"+(e||"")+'"></span>':{renderMode:r,content:"{marker"+o+"|} ",style:{color:n}}:""}function Va(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ha(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=Ta(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),a=i["get"+r+"Month"]()+1,s=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),u=i["get"+r+"Minutes"](),h=i["get"+r+"Seconds"](),c=i["get"+r+"Milliseconds"]();return t=t.replace("MM",Va(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100).replace("dd",Va(s,2)).replace("d",s).replace("hh",Va(l,2)).replace("h",l).replace("mm",Va(u,2)).replace("m",u).replace("ss",Va(h,2)).replace("s",h).replace("SSS",Va(c,3))}function Ga(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Wa(t){return Gn(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)}function Xa(t,e,n,i,r,o,a,s){return Gn(t,e,n,i,r,s,o,a)}function Ya(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var v=f.width+(g?-g.x+f.x:0);h=o+v,h>i||l.newline?(o=0,h=v,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(g?-g.y+f.y:0);c=a+m,c>r||l.newline?(o+=s+n,a=0,c=m,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=o,d[1]=a,"horizontal"===t?o=h+n:a=c+n)})}function Za(t,e,n){n=u_(n||0);var i=e.width,r=e.height,o=ya(t.left,i),a=ya(t.top,r),s=ya(t.right,i),l=ya(t.bottom,r),u=ya(t.width,i),h=ya(t.height,r),c=n[2]+n[0],d=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(h)&&(h=r-l-c-a),null!=f&&(isNaN(u)&&isNaN(h)&&(f>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var p=new Sn(o+n[3],a+n[0],u,h);return p.margin=n,p}function Ua(t,e,n,i,r){var o=!r||!r.hv||r.hv[0],a=!r||!r.hv||r.hv[1],l=r&&r.boundingMode||"all";if(o||a){var u;if("raw"===l)u="group"===t.type?new Sn(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();u=u.clone(),u.applyTransform(h)}e=Za(s({width:u.width,height:u.height},e),n,i);var c=t.position,d=o?e.x-u.x:0,f=a?e.y-u.y:0;t.attr("position","raw"===l?[d,f]:[c[0]+d,c[1]+f])}}function ja(t,e,n){function i(n,i){var a={},l=0,u={},h=0,c=2;if(v_(n,function(e){u[e]=t[e]}),v_(n,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[i])return o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null),u;if(h!==c&&l){if(l>=c)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!r(a,f)&&r(t,f)){a[f]=t[f];break}}return a}return u}function r(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,n){v_(t,function(t){e[t]=n[t]})}!S(n)&&(n={});var s=n.ignoreSize;!_(s)&&(s=[s,s]);var l=i(y_[0],0),u=i(y_[1],1);a(y_[0],t,l),a(y_[1],t,u)}function qa(t){return $a({},t)}function $a(t,e){return e&&t&&v_(m_,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function Ka(t){var e=[];return f(b_.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=p(e,function(t){return cr(t).main}),"dataset"!==t&&u(e,"dataset")<=0&&e.unshift("dataset"),e}function Qa(t,e){for(var n=t.length,i=0;n>i;i++)if(t[i].length>e)return t[i];return t[n-1]}function Ja(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===k_?{}:[]),this.sourceFormat=t.sourceFormat||P_,this.seriesLayoutBy=t.seriesLayoutBy||L_,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&N(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}function ts(t){var e=t.option.source,n=P_;if(C(e))n=O_;else if(_(e)){0===e.length&&(n=A_);for(var i=0,r=e.length;r>i;i++){var o=e[i];if(null!=o){if(_(o)){n=A_;break}if(S(o)){n=D_;break}}}}else if(S(e)){for(var a in e)if(e.hasOwnProperty(a)&&d(e[a])){n=k_;break}}else if(null!=e)throw new Error("Invalid data");B_(t).sourceFormat=n}function es(t){return B_(t).source}function ns(t){B_(t).datasetMap=N()}function is(t){var e=t.option,n=e.data,i=C(n)?O_:T_,r=!1,o=e.seriesLayoutBy,a=e.sourceHeader,s=e.dimensions,l=us(t);if(l){var u=l.option;n=u.source,i=B_(l).sourceFormat,r=!0,o=o||u.seriesLayoutBy,null==a&&(a=u.sourceHeader),s=s||u.dimensions}var h=rs(n,i,o,a,s);B_(t).source=new Ja({data:n,fromDataset:r,seriesLayoutBy:o,sourceFormat:i,dimensionsDefine:h.dimensionsDefine,startIndex:h.startIndex,dimensionsDetectCount:h.dimensionsDetectCount,encodeDefine:e.encode})}function rs(t,e,n,i,r){if(!t)return{dimensionsDefine:os(r)};var o,a;if(e===A_)"auto"===i||null==i?as(function(t){null!=t&&"-"!==t&&(b(t)?null==a&&(a=1):a=0)},n,t,10):a=i?1:0,r||1!==a||(r=[],as(function(t,e){r[e]=null!=t?t:""},n,t)),o=r?r.length:n===z_?t.length:t[0]?t[0].length:null;else if(e===D_)r||(r=ss(t));else if(e===k_)r||(r=[],f(t,function(t,e){r.push(e)}));else if(e===T_){var s=Qi(t[0]);o=_(s)&&s.length||1}return{startIndex:a,dimensionsDefine:os(r),dimensionsDetectCount:o}}function os(t){if(t){var e=N();return p(t,function(t){if(t=a({},S(t)?t:{name:t}),null==t.name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var n=e.get(t.name);return n?t.name+="-"+n.count++:e.set(t.name,{count:1}),t})}}function as(t,e,n,i){if(null==i&&(i=1/0),e===z_)for(var r=0;r<n.length&&i>r;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&i>r;r++)t(o[r],r)}function ss(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e){var i=[];return f(e,function(t,e){i.push(e)}),i}}function ls(t,e,n){function i(t,e,n){for(var i=0;n>i;i++)t.push(e+i)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=us(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecModel,d=B_(c).datasetMap,p=a.uid+"_"+n.seriesLayoutBy;t=t.slice(),f(t,function(e,n){!S(e)&&(t[n]={name:e}),"ordinal"===e.type&&null==s&&(s=n,l=r(t[n])),o[e.name]=[]});var g=d.get(p)||d.set(p,{categoryWayDim:l,valueWayDim:0});return f(t,function(t,e){var n=t.name,a=r(t);if(null==s){var l=g.valueWayDim;i(o[n],l,a),i(h,l,a),g.valueWayDim+=a}else if(s===e)i(o[n],0,a),i(u,0,a);else{var l=g.categoryWayDim;i(o[n],l,a),i(h,l,a),g.categoryWayDim+=a}}),u.length&&(o.itemName=u),h.length&&(o.seriesName=h),o}function us(t){var e=t.option,n=e.data;return n?void 0:t.ecModel.getComponent("dataset",e.datasetIndex||0)}function hs(t,e){return cs(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function cs(t,e,n,i,r,o){function a(t){var e=b(t);return null!=t&&isFinite(t)&&""!==t?e?E_.Might:E_.Not:e&&"-"!==t?E_.Must:void 0}var s,l=5;if(C(t))return E_.Not;var u,h;if(i){var c=i[o];S(c)?(u=c.name,h=c.type):b(c)&&(u=c)}if(null!=h)return"ordinal"===h?E_.Must:E_.Not;if(e===A_)if(n===z_){for(var d=t[o],f=0;f<(d||[]).length&&l>f;f++)if(null!=(s=a(d[r+f])))return s}else for(var f=0;f<t.length&&l>f;f++){var p=t[r+f];if(p&&null!=(s=a(p[o])))return s}else if(e===D_){if(!u)return E_.Not;for(var f=0;f<t.length&&l>f;f++){var g=t[f];if(g&&null!=(s=a(g[u])))return s}}else if(e===k_){if(!u)return E_.Not;var d=t[u];if(!d||C(d))return E_.Not;for(var f=0;f<d.length&&l>f;f++)if(null!=(s=a(d[f])))return s}else if(e===T_)for(var f=0;f<t.length&&l>f;f++){var g=t[f],v=Qi(g);if(!_(v))return E_.Not;if(null!=(s=a(v[o])))return s}return E_.Not}function ds(t,e){if(e){var n=e.seiresIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function fs(t,e){var n=t.color&&!t.colorLayer;f(e,function(e,o){"colorLayer"===o&&n||b_.hasClass(o)||("object"==typeof e?t[o]=t[o]?r(t[o],e,!1):i(e):null==t[o]&&(t[o]=e))})}function ps(t){t=t,this.option={},this.option[R_]=1,this._componentsMap=N({series:[]}),this._seriesIndices,this._seriesIndicesMap,fs(t,this._theme.option),r(t,M_,!1),this.mergeOption(t)}function gs(t,e){_(e)||(e=e?[e]:[]);var n={};return f(e,function(e){n[e]=(t.get(e)||[]).slice()}),n}function vs(t,e,n){var i=e.type?e.type:n?n.subType:b_.determineSubType(t,e);return i}function ms(t,e){t._seriesIndicesMap=N(t._seriesIndices=p(e,function(t){return t.componentIndex})||[])}function ys(t,e){return e.hasOwnProperty("subType")?v(t,function(t){return t.subType===e.subType}):t}function xs(t){f(F_,function(e){this[e]=y(t[e],t)},this)}function _s(){this._coordinateSystems=[]}function ws(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function bs(t,e,n){var i,r,o=[],a=[],s=t.timeline;if(t.baseOption&&(r=t.baseOption),(s||t.options)&&(r=r||{},o=(t.options||[]).slice()),t.media){r=r||{};var l=t.media;H_(l,function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))})}return r||(r=t),r.timeline||(r.timeline=s),H_([r].concat(o).concat(p(a,function(t){return t.option})),function(t){H_(e,function(e){e(t,n)})}),{baseOption:r,timelineOptions:o,mediaDefault:i,mediaList:a}}function Ss(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return f(t,function(t,e){var n=e.match(Y_);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();Ms(i[a],t,o)||(r=!1)}}),r}function Ms(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function Cs(t,e){return t.join(",")===e.join(",")}function Is(t,e){e=e||{},H_(e,function(e,n){if(null!=e){var i=t[n];if(b_.hasClass(n)){e=$i(e),i=$i(i);var r=tr(i,e);t[n]=W_(r,function(t){return t.option&&t.exist?X_(t.exist,t.option,!0):t.exist||t.option})}else t[n]=X_(i,e,!0)}})}function Ts(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=j_.length;i>n;n++){var o=j_[n],a=e.normal,s=e.emphasis;a&&a[o]&&(t[o]=t[o]||{},t[o].normal?r(t[o].normal,a[o]):t[o].normal=a[o],a[o]=null),s&&s[o]&&(t[o]=t[o]||{},t[o].emphasis?r(t[o].emphasis,s[o]):t[o].emphasis=s[o],s[o]=null)}}function As(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,s(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r)}}function Ds(t){As(t,"itemStyle"),As(t,"lineStyle"),As(t,"areaStyle"),As(t,"label"),As(t,"labelLine"),As(t,"upperLabel"),As(t,"edgeLabel")}function ks(t,e){var n=U_(t)&&t[e],i=U_(n)&&n.textStyle;if(i)for(var r=0,o=ey.length;o>r;r++){var e=ey[r];i.hasOwnProperty(e)&&(n[e]=i[e])}}function Ps(t){t&&(Ds(t),ks(t,"label"),t.emphasis&&ks(t.emphasis,"label"))}function Os(t){if(U_(t)){Ts(t),Ds(t),ks(t,"label"),ks(t,"upperLabel"),ks(t,"edgeLabel"),t.emphasis&&(ks(t.emphasis,"label"),ks(t.emphasis,"upperLabel"),ks(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Ts(e),Ps(e));var n=t.markLine;n&&(Ts(n),Ps(n));var i=t.markArea;i&&Ps(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!C(o))for(var a=0;a<o.length;a++)Ps(o[a]);f(t.categories,function(t){Ds(t)})}if(r&&!C(r))for(var a=0;a<r.length;a++)Ps(r[a]);var e=t.markPoint;if(e&&e.data)for(var s=e.data,a=0;a<s.length;a++)Ps(s[a]);var n=t.markLine;if(n&&n.data)for(var l=n.data,a=0;a<l.length;a++)_(l[a])?(Ps(l[a][0]),Ps(l[a][1])):Ps(l[a]);"gauge"===t.type?(ks(t,"axisLabel"),ks(t,"title"),ks(t,"detail")):"treemap"===t.type?(As(t.breadcrumb,"itemStyle"),f(t.levels,function(t){Ds(t)})):"tree"===t.type&&Ds(t.leaves)}}function Ls(t){return _(t)?t:t?[t]:[]}function zs(t){return(_(t)?t[0]:t)||{}}function Es(t,e){e=e.split(",");for(var n=t,i=0;i<e.length&&(n=n&&n[e[i]],null!=n);i++);return n}function Bs(t,e,n,i){e=e.split(",");for(var r,o=t,a=0;a<e.length-1;a++)r=e[a],null==o[r]&&(o[r]={}),o=o[r];(i||null==o[e[a]])&&(o[e[a]]=n)}function Rs(t){f($_,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function Ns(t){f(t,function(e,n){var i=[],r=[0/0,0/0],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=a.map(o,function(o,l,u){var h=a.get(e.stackedDimension,u);if(isNaN(h))return r;var c,d;s?d=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var f=0/0,p=n-1;p>=0;p--){var g=t[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,c)),d>=0){var v=g.data.getByRawIndex(g.stackResultDimension,d);if(h>=0&&v>0||0>=h&&0>v){h+=v,f=v;break}}}return i[0]=h,i[1]=f,i});a.hostModel.setData(l),e.data=l})}function Fs(t,e){Ja.isInstance(t)||(t=Ja.seriesDataToSource(t)),this._source=t;var n=this._data=t.data,i=t.sourceFormat;i===O_&&(this._offset=0,this._dimSize=e,this._data=n);var r=ew[i===A_?i+"_"+t.seriesLayoutBy:i];a(this,r)}function Vs(){return this._data.length}function Hs(t){return this._data[t]}function Gs(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function Ws(t,e,n){return null!=n?t[n]:t}function Xs(t,e,n,i){return Ys(t[i],this._dimensionInfos[e])}function Ys(t,e){var n=e&&e.type;if("ordinal"===n){var i=e&&e.ordinalMeta;return i?i.parseAndCollect(t):t}return"time"===n&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+Ta(t)),null==t||""===t?0/0:+t}function Zs(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r,o,a=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(n);return s&&(r=s.name,o=s.index),nw[a](i,e,o,r)}}}function Us(t){return new js(t)}function js(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}function qs(t,e,n,i,r,o){sw.reset(n,i,r,o),t._callingProgress=e,t._callingProgress({start:n,end:i,count:i-n,next:sw.next},t.context)}function $s(t,e){t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null;var n,i;!e&&t._reset&&(n=t._reset(t.context),n&&n.progress&&(i=n.forceFirstProgress,n=n.progress),_(n)&&!n.length&&(n=null)),t._progress=n,t._modBy=t._modDataCount=null;var r=t._downstream;return r&&r.dirty(),i}function Ks(t){var e=t.name;nr(t)||(t.name=Qs(t)||e)}function Qs(t){var e=t.getRawData(),n=e.mapDimension("seriesName",!0),i=[];return f(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}function Js(t){return t.model.getRawData().count()}function tl(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),el}function el(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function nl(t,e){f(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,x(il,e))})}function il(t){var e=rl(t);e&&e.setOutputEnd(this.count())}function rl(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}function ol(){this.group=new Qv,this.uid=fa("viewChart"),this.renderTask=Us({plan:ll,reset:ul}),this.renderTask.context={view:this}}function al(t,e,n){if(t&&(t.trigger(e,n),t.isGroup&&!Ro(t)))for(var i=0,r=t.childCount();r>i;i++)al(t.childAt(i),e,n)}function sl(t,e,n){var i=rr(t,e),r=e&&null!=e.highlightKey?No(e.highlightKey):null;null!=i?f($i(i),function(e){al(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){al(t,n,r)})}function ll(t){return pw(t.model)}function ul(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&fw(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),vw[l]}function hl(t,e,n){function i(){h=(new Date).getTime(),c=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,h=0,c=null;e=e||0;var d=function(){r=(new Date).getTime(),a=this,s=arguments;var t=l||e,d=l||n;l=null,o=r-(d?u:h)-t,clearTimeout(c),d?c=setTimeout(i,t):o>=0?i():c=setTimeout(i,-o),u=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){l=t},d}function cl(t,e,n,i){var r=t[e];if(r){var o=r[mw]||r,a=r[xw],s=r[yw];if(s!==n||a!==i){if(null==n||!i)return t[e]=o;r=t[e]=hl(o,n,"debounce"===i),r[mw]=o,r[xw]=i,r[yw]=n}return r}}function dl(t,e,n,i){this.ecInstance=t,this.api=e,this.unfinished;var n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice();this._allHandlers=n.concat(i),this._stageTaskMap=N()}function fl(t,e,n,i,r){function o(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}r=r||{};var a;f(e,function(e){if(!r.visualType||r.visualType===e.visualType){var s=t._stageTaskMap.get(e.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var h,c=u.agentStubMap;c.each(function(t){o(r,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),Iw(u,i);var d=t.getPerformArgs(u,r.block);c.each(function(t){t.perform(d)}),a|=u.perform(d)}else l&&l.each(function(s){o(r,s)&&s.dirty();var l=t.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&n.isSeriesFiltered(s.context.model),Iw(s,i),a|=s.perform(l)})}}),t.unfinished|=a}function pl(t,e,n,i,r){function o(n){var o=n.uid,s=a.get(o)||a.set(o,Us({plan:_l,reset:wl,count:Sl}));s.context={model:n,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},Ml(t,n,s)}var a=n.seriesTaskMap||(n.seriesTaskMap=N()),s=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(o):s?i.eachRawSeriesByType(s,o):l&&l(i,r).each(o);var u=t._pipelineMap;a.each(function(t,e){u.get(e)||(t.dispose(),a.removeKey(e))})}function gl(t,e,n,i,r){function o(e){var n=e.uid,i=s.get(n);i||(i=s.set(n,Us({reset:ml,onDirty:xl})),a.dirty()),i.context={model:e,overallProgress:h,modifyOutputEnd:c},i.agent=a,i.__block=h,Ml(t,e,i)}var a=n.overallTask=n.overallTask||Us({reset:vl});a.context={ecModel:i,api:r,overallReset:e.overallReset,scheduler:t};var s=a.agentStubMap=a.agentStubMap||N(),l=e.seriesType,u=e.getTargetSeries,h=!0,c=e.modifyOutputEnd;l?i.eachRawSeriesByType(l,o):u?u(i,r).each(o):(h=!1,f(i.getSeries(),o));var d=t._pipelineMap;s.each(function(t,e){d.get(e)||(t.dispose(),a.dirty(),s.removeKey(e))})}function vl(t){t.overallReset(t.ecModel,t.api,t.payload)}function ml(t){return t.overallProgress&&yl}function yl(){this.agent.dirty(),this.getDownstream().dirty()}function xl(){this.agent&&this.agent.dirty()}function _l(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function wl(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=$i(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?p(e,function(t,e){return bl(e)}):Tw}function bl(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function Sl(t){return t.data.count()}function Ml(t,e,n){var i=e.uid,r=t._pipelineMap.get(i);!r.head&&(r.head=n),r.tail&&r.tail.pipe(n),r.tail=n,n.__idxInPipeline=r.count++,n.__pipeline=r}function Cl(t){Aw=null;try{t(Dw,kw)}catch(e){}return Aw}function Il(t,e){for(var n in e.prototype)t[n]=V}function Tl(t){if(b(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}function Al(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}function Dl(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";e.addColorStop(i,r)}n=n.nextSibling}}function kl(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),s(e.__inheritedStyle,t.__inheritedStyle))}function Pl(t){for(var e=z(t).split(Nw),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),o=parseFloat(e[i+1]);n.push([r,o])}return n}function Ol(t,e,n,i){var r=e.__inheritedStyle||{},o="text"===e.type;if(1===t.nodeType&&(zl(t,e),a(r,El(t)),!i))for(var s in Hw)if(Hw.hasOwnProperty(s)){var l=t.getAttribute(s);null!=l&&(r[Hw[s]]=l)}var u=o?"textFill":"fill",h=o?"textStroke":"stroke";e.style=e.style||new sm;var c=e.style;null!=r.fill&&c.set(u,Ll(r.fill,n)),null!=r.stroke&&c.set(h,Ll(r.stroke,n)),f(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){var e="lineWidth"===t&&o?"textStrokeWidth":t;null!=r[t]&&c.set(e,parseFloat(r[t]))}),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),f(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(t){null!=r[t]&&c.set(t,r[t])}),r.lineDash&&(e.style.lineDash=z(r.lineDash).split(Nw)),c[h]&&"none"!==c[h]&&(e[h]=!0),e.__inheritedStyle=r}function Ll(t,e){var n=e&&t&&t.match(Gw);if(n){var i=z(n[1]),r=e[i];return r}return t}function zl(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=null,r=[];n.replace(Ww,function(t,e,n){r.push(e,n)});for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1];switch(i=i||De(),s){case"translate":a=z(a).split(Nw),Le(i,i,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case"scale":a=z(a).split(Nw),Ee(i,i,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case"rotate":a=z(a).split(Nw),ze(i,i,parseFloat(a[0]));break;case"skew":a=z(a).split(Nw),console.warn("Skew transform is not supported yet");break;case"matrix":var a=z(a).split(Nw);i[0]=parseFloat(a[0]),i[1]=parseFloat(a[1]),i[2]=parseFloat(a[2]),i[3]=parseFloat(a[3]),i[4]=parseFloat(a[4]),i[5]=parseFloat(a[5])}}e.setLocalTransform(i)}}function El(t){var e=t.getAttribute("style"),n={};if(!e)return n;var i={};Xw.lastIndex=0;for(var r;null!=(r=Xw.exec(e));)i[r[1]]=r[2];for(var o in Hw)Hw.hasOwnProperty(o)&&null!=i[o]&&(n[Hw[o]]=i[o]);return n}function Bl(t,e,n){var i=e/t.width,r=n/t.height,o=Math.min(i,r),a=[o,o],s=[-(t.x+t.width/2)*o+e/2,-(t.y+t.height/2)*o+n/2];return{scale:a,position:s}}function Rl(t,e){return function(n,i,r){(e||!this._disposed)&&(n=n&&n.toLowerCase(),sv.prototype[t].call(this,n,i,r))}}function Nl(){sv.call(this)}function Fl(t,e,n){function r(t,e){return t.__prio-e.__prio}n=n||{},"string"==typeof e&&(e=Ib[e]),this.id,this.group,this._dom=t;var o="canvas",a=this._zr=Yi(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=hl(y(a.flush,a),17);var e=i(e);e&&Q_(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new _s;var s=this._api=iu(this);Pn(Cb,r),Pn(bb,r),this._scheduler=new dl(this,s,bb,Cb),sv.call(this,this._ecEventProcessor=new ru),this._messageCenter=new Nl,this._initEvents(),this.resize=y(this.resize,this),this._pendingActions=[],a.animation.on("frame",this._onframe,this),Ul(a,this),E(this)}function Vl(t,e,n){if(!this._disposed){var i,r=this._model,o=this._coordSysMgr.getCoordinateSystems();e=ar(r,e);for(var a=0;a<o.length;a++){var s=o[a];if(s[t]&&null!=(i=s[t](r,e,n)))return i}}}function Hl(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),jl(t,"component",e,n),jl(t,"chart",e,n),n.plan()}function Gl(t,e,n,i,r){function o(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}var a=t._model;if(!i)return void qw(t._componentsViews.concat(t._chartsViews),o);var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var u=n.excludeSeriesId;null!=u&&(u=N($i(u))),a&&a.eachComponent(l,function(e){u&&null!=u.get(e.id)||o(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}function Wl(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})}function Xl(t,e){var n=t.type,i=t.escapeConnect,r=_b[n],o=r.actionInfo,l=(o.update||"update").split(":"),u=l.pop();l=null!=l[0]&&Qw(l[0]),this[pb]=!0;var h=[t],c=!1;t.batch&&(c=!0,h=p(t.batch,function(e){return e=s(a({},e),t),e.batch=null,e}));var d,f=[],g="highlight"===n||"downplay"===n;qw(h,function(t){d=r.action(t,this._model,this._api),d=d||a({},t),d.type=o.event||d.type,f.push(d),g?Gl(this,u,t,"series"):l&&Gl(this,u,t,l.main,l.sub)},this),"none"===u||g||l||(this[gb]?(Hl(this),yb.update.call(this,t),this[gb]=!1):yb[u].call(this,t)),d=c?{type:o.event||n,escapeConnect:i,batch:f}:f[0],this[pb]=!1,!e&&this._messageCenter.trigger(d.type,d)}function Yl(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Xl.call(this,n,t)}}function Zl(t){!t&&this.trigger("updated")}function Ul(t,e){t.on("rendered",function(){e.trigger("rendered"),!t.animation.isFinished()||e[gb]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})}function jl(t,e,n,i){function r(t){var e="_ec_"+t.id+"_"+t.type,r=s[e];if(!r){var h=Qw(t.type),c=o?hw.getClass(h.main,h.sub):ol.getClass(h.sub);r=new c,r.init(n,u),s[e]=r,a.push(r),l.add(r.group)}t.__viewId=r.__id=e,r.__alive=!0,r.__model=t,r.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!o&&i.prepareView(r,t,n,u)}for(var o="component"===e,a=o?t._componentsViews:t._chartsViews,s=o?t._componentsMap:t._chartsMap,l=t._zr,u=t._api,h=0;h<a.length;h++)a[h].__alive=!1;o?n.eachComponent(function(t,e){"series"!==t&&r(e)}):n.eachSeries(r);for(var h=0;h<a.length;){var c=a[h];c.__alive?h++:(!o&&c.renderTask.dispose(),l.remove(c.group),c.dispose(n,u),a.splice(h,1),delete s[c.__id],c.__id=c.group.__ecComponentInfo=null)}}function ql(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function $l(t,e,n,i){Kl(t,e,n,i),qw(t._chartsViews,function(t){t.__alive=!1}),Ql(t,e,n,i),qw(t._chartsViews,function(t){t.__alive||t.remove(e,n)})}function Kl(t,e,n,i,r){qw(r||t._componentsViews,function(t){var r=t.__model;t.render(r,e,n,i),nu(r,t)})}function Ql(t,e,n,i,r){var o,a=t._scheduler;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var s=n.renderTask;a.updatePayload(s,i),r&&r.get(e.uid)&&s.dirty(),o|=s.perform(a.getPerformArgs(s)),n.group.silent=!!e.get("silent"),nu(e,n),eu(e,n)}),a.unfinished|=o,tu(t,e),bw(t._zr.dom,e)}function Jl(t,e){qw(Mb,function(n){n(t,e)})}function tu(t,e){var n=t._zr,i=n.storage,r=0;i.traverse(function(){r++}),r>e.get("hoverLayerThreshold")&&!Fg.node&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse(function(t){t.useHoverLayer=!0})}})}function eu(t,e){var n=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.style.blend!==n&&t.setStyle("blend",n),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.setStyle("blend",n)})})}function nu(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}function iu(t){var e=t._coordSysMgr;return a(new xs(t),{getCoordinateSystems:y(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}}})}function ru(){this.eventInfo}function ou(t){function e(t,e){for(var n=0;n<t.length;n++){var i=t[n];i[o]=e}}var n=0,i=1,r=2,o="__connectUpdateStatus";qw(wb,function(a,s){t._messageCenter.on(s,function(a){if(Db[t.group]&&t[o]!==n){if(a&&a.escapeConnect)return;var s=t.makeActionFromEvent(a),l=[];qw(Ab,function(e){e!==t&&e.group===t.group&&l.push(e)}),e(l,n),qw(l,function(t){t[o]!==i&&t.dispatchAction(s)}),e(l,r)}})})}function au(t,e,n){var i=hu(t);if(i)return i;var r=new Fl(t,e,n);return r.id="ec_"+kb++,Ab[r.id]=r,lr(t,Ob,r.id),ou(r),r}function su(t){if(_(t)){var e=t;t=null,qw(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+Pb++,qw(e,function(e){e.group=t})}return Db[t]=!0,t}function lu(t){Db[t]=!1}function uu(t){"string"==typeof t?t=Ab[t]:t instanceof Fl||(t=hu(t)),t instanceof Fl&&!t.isDisposed()&&t.dispose()}function hu(t){return Ab[ur(t,Ob)]}function cu(t){return Ab[t]}function du(t,e){Ib[t]=e}function fu(t){Sb.push(t)}function pu(t,e){wu(bb,t,e,nb)}function gu(t){Mb.push(t)}function vu(t,e,n){"function"==typeof e&&(n=e,e="");var i=Kw(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,jw(vb.test(i)&&vb.test(e)),_b[i]||(_b[i]={action:n,actionInfo:t}),wb[e]=i}function mu(t,e){_s.register(t,e)}function yu(t){var e=_s.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0 }function xu(t,e){wu(Cb,t,e,ab,"layout")}function _u(t,e){wu(Cb,t,e,ub,"visual")}function wu(t,e,n,i,r){($w(e)||Kw(e))&&(n=e,e=i);var o=dl.wrapStageHandler(n,r);return o.__prio=e,o.__raw=n,t.push(o),o}function bu(t,e){Tb[t]=e}function Su(t){return b_.extend(t)}function Mu(t){return hw.extend(t)}function Cu(t){return uw.extend(t)}function Iu(t){return ol.extend(t)}function Tu(t){n("createCanvas",t)}function Au(t,e,n){Zw.registerMap(t,e,n)}function Du(t){var e=Zw.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}}function ku(t){return t}function Pu(t,e,n,i,r){this._old=t,this._new=e,this._oldKeyGetter=n||ku,this._newKeyGetter=i||ku,this.context=r}function Ou(t,e,n,i,r){for(var o=0;o<t.length;o++){var a="_ec_"+r[i](t[o],o),s=e[a];null==s?(n.push(a),e[a]=o):(s.length||(e[a]=s=[s]),s.push(o))}}function Lu(t){var e={},n=e.encode={},i=N(),r=[],o=[],a=e.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};f(t.dimensions,function(e){var s=t.getDimensionInfo(e),l=s.coordDim;if(l){var u=s.coordDimIndex;zu(n,l)[u]=e,s.isExtraCoord||(i.set(l,1),Bu(s.type)&&(r[0]=e),zu(a.encode,l)[u]=s.index),s.defaultTooltip&&o.push(e)}Eb.each(function(t,e){var i=zu(n,e),r=s.otherDims[e];null!=r&&r!==!1&&(i[r]=s.name)})});var s=[],l={};i.each(function(t,e){var i=n[e];l[e]=i[0],s=s.concat(i)}),e.dataDimsOnCoord=s,e.encodeFirstDimNotExtra=l;var u=n.label;u&&u.length&&(r=u.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=r.slice()),n.defaultedLabel=r,n.defaultedTooltip=o,e}function zu(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Eu(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function Bu(t){return!("ordinal"===t||"time"===t)}function Ru(t){null!=t&&a(this,t),this.otherDims={}}function Nu(t){return t._rawCount>65535?Hb:Wb}function Fu(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Vu(t,e){f(Xb.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,f(Yb,function(n){t[n]=i(e[n])}),t._calculationInfo=a(e._calculationInfo)}function Hu(t,e,n,i,r){var o=Vb[e.type],a=i-1,s=e.name,l=t[s][a];if(l&&l.length<n){for(var u=new o(Math.min(r-a*n,n)),h=0;h<l.length;h++)u[h]=l[h];t[s][a]=u}for(var c=i*n;r>c;c+=n)t[s].push(new o(Math.min(r-c,n)))}function Gu(t){var e=t._invertedIndicesMap;f(e,function(n,i){var r=t._dimensionInfos[i],o=r.ordinalMeta;if(o){n=e[i]=new Gb(o.categories.length);for(var a=0;a<n.length;a++)n[a]=Nb;for(var a=0;a<t._count;a++)n[t.get(i,a)]=a}})}function Wu(t,e,n){var i;if(null!=e){var r=t._chunkSize,o=Math.floor(n/r),a=n%r,s=t.dimensions[e],l=t._storage[s][o];if(l){i=l[a];var u=t._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(i=u.categories[i])}}return i}function Xu(t){return t}function Yu(t){return t<this._count&&t>=0?this._indices[t]:-1}function Zu(t,e){var n=t._idList[e];return null==n&&(n=Wu(t,t._idDimIdx,e)),null==n&&(n=Fb+e),n}function Uu(t){return _(t)||(t=[t]),t}function ju(t,e){var n=t.dimensions,i=new Zb(p(n,t.getDimensionInfo,t),t.hostModel);Vu(i,t);for(var r=i._storage={},o=t._storage,a=0;a<n.length;a++){var s=n[a];o[s]&&(u(e,s)>=0?(r[s]=qu(o[s]),i._rawExtent[s]=$u(),i._extent[s]=null):r[s]=o[s])}return i}function qu(t){for(var e=new Array(t.length),n=0;n<t.length;n++)e[n]=Fu(t[n]);return e}function $u(){return[1/0,-1/0]}function Ku(t,e,n){function r(t,e,n){null!=Eb.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,u.set(e,!0))}Ja.isInstance(e)||(e=Ja.seriesDataToSource(e)),n=n||{},t=(t||[]).slice();for(var o=(n.dimsDef||[]).slice(),l=N(),u=N(),h=[],c=Qu(e,t,o,n.dimCount),d=0;c>d;d++){var p=o[d]=a({},S(o[d])?o[d]:{name:o[d]}),g=p.name,v=h[d]=new Ru;null!=g&&null==l.get(g)&&(v.name=v.displayName=g,l.set(g,d)),null!=p.type&&(v.type=p.type),null!=p.displayName&&(v.displayName=p.displayName)}var m=n.encodeDef;!m&&n.encodeDefaulter&&(m=n.encodeDefaulter(e,c)),m=N(m),m.each(function(t,e){if(t=$i(t).slice(),1===t.length&&!b(t[0])&&t[0]<0)return void m.set(e,!1);var n=m.set(e,[]);f(t,function(t,i){b(t)&&(t=l.get(t)),null!=t&&c>t&&(n[i]=t,r(h[t],e,i))})});var y=0;f(t,function(t){var e,t,n,o;if(b(t))e=t,t={};else{e=t.name;var a=t.ordinalMeta;t.ordinalMeta=null,t=i(t),t.ordinalMeta=a,n=t.dimsDef,o=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}var l=m.get(e);if(l!==!1){var l=$i(l);if(!l.length)for(var u=0;u<(n&&n.length||1);u++){for(;y<h.length&&null!=h[y].coordDim;)y++;y<h.length&&l.push(y++)}f(l,function(i,a){var l=h[i];if(r(s(l,t),e,a),null==l.name&&n){var u=n[a];!S(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}o&&s(l.otherDims,o)})}});var x=n.generateCoord,_=n.generateCoordCount,w=null!=_;_=x?_||1:0;for(var M=x||"value",C=0;c>C;C++){var v=h[C]=h[C]||new Ru,I=v.coordDim;null==I&&(v.coordDim=Ju(M,u,w),v.coordDimIndex=0,(!x||0>=_)&&(v.isExtraCoord=!0),_--),null==v.name&&(v.name=Ju(v.coordDim,l)),null!=v.type||hs(e,C,v.name)!==E_.Must&&(!v.isExtraCoord||null==v.otherDims.itemName&&null==v.otherDims.seriesName)||(v.type="ordinal")}return h}function Qu(t,e,n,i){var r=Math.max(t.dimensionsDetectCount||1,e.length,n.length,i||0);return f(e,function(t){var e=t.dimsDef;e&&(r=Math.max(r,e.length))}),r}function Ju(t,e,n){if(n||null!=e.get(t)){for(var i=0;null!=e.get(t+i);)i++;t+=i}return e.set(t,!0),t}function th(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=N(),this.categoryAxisMap=N(),this.firstCategoryDimIndex=null}function eh(t){var e=t.get("coordinateSystem"),n=new th(e),i=$b[e];return i?(i(t,n,n.axisMap,n.categoryAxisMap),n):void 0}function nh(t){return"category"===t.get("type")}function ih(t,e,n){n=n||{};var i,r,o,a,s=n.byIndex,l=n.stackedCoordDimension,u=!(!t||!t.get("stack"));if(f(e,function(t,n){b(t)&&(e[n]=t={name:t}),u&&!t.isExtraCoord&&(s||i||!t.ordinalMeta||(i=t),r||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(r=t))}),!r||s||i||(s=!0),r){o="__\x00ecstackresult",a="__\x00ecstackedover",i&&(i.createInvertedIndices=!0);var h=r.coordDim,c=r.type,d=0;f(e,function(t){t.coordDim===h&&d++}),e.push({name:o,coordDim:h,coordDimIndex:d,type:c,isExtraCoord:!0,isCalculationCoord:!0}),d++,e.push({name:a,coordDim:a,coordDimIndex:d,type:c,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:r&&r.name,stackedByDimension:i&&i.name,isStackedByIndex:s,stackedOverDimension:a,stackResultDimension:o}}function rh(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function oh(t,e){return rh(t,e)?t.getCalculationInfo("stackResultDimension"):e}function ah(t,e,n){n=n||{},Ja.isInstance(t)||(t=Ja.seriesDataToSource(t));var i,r=e.get("coordinateSystem"),o=_s.get(r),a=eh(e);a&&(i=p(a.coordSysDims,function(t){var e={name:t},n=a.axisMap.get(t);if(n){var i=n.get("type");e.type=Eu(i)}return e})),i||(i=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]);var s,l,u=qb(t,{coordDimensions:i,generateCoord:n.generateCoord,encodeDefaulter:n.useEncodeDefaulter?x(ls,i,e):null});a&&f(u,function(t,e){var n=t.coordDim,i=a.categoryAxisMap.get(n);i&&(null==s&&(s=e),t.ordinalMeta=i.getOrdinalMeta()),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(u[s].otherDims.itemName=0);var h=ih(e,u),c=new Zb(u,e);c.setCalculationInfo(h);var d=null!=s&&sh(t)?function(t,e,n,i){return i===s?n:this.defaultDimValueGetter(t,e,n,i)}:null;return c.hasItemOption=!1,c.initData(t,null,d),c}function sh(t){if(t.sourceFormat===T_){var e=lh(t.data||[]);return null!=e&&!_(Qi(e))}}function lh(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function uh(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}function hh(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}function ch(t){return t._map||(t._map=N(t.categories))}function dh(t){return S(t)&&null!=t.value?t.value:t+""}function fh(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=ka(o/e,!0);null!=n&&n>a&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=ph(a),l=r.niceTickExtent=[tS(Math.ceil(t[0]/a)*a,s),tS(Math.floor(t[1]/a)*a,s)];return vh(l,t),r}function ph(t){return ba(t)+2}function gh(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function vh(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),gh(t,0,e),gh(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function mh(t){return t.get("stack")||iS+t.seriesIndex}function yh(t){return t.dim+t.index}function xh(t,e){var n=[];return e.eachSeriesByType(t,function(t){Ch(t)&&!Ih(t)&&n.push(t)}),n}function _h(t){var e={};f(t,function(t){var n=t.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=t.getData(),o=i.dim+"_"+i.index,a=r.mapDimension(i.dim),s=0,l=r.count();l>s;++s){var u=r.get(a,s);e[o]?e[o].push(u):e[o]=[u]}});var n=[];for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function wh(t){var e=_h(t),n=[];return f(t,function(t){var i,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);i=l?u/c*l:u}else{var d=t.getData();i=Math.abs(a[1]-a[0])/d.count()}var f=ya(t.get("barWidth"),i),p=ya(t.get("barMaxWidth"),i),g=ya(t.get("barMinWidth")||1,i),v=t.get("barGap"),m=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:f,barMaxWidth:p,barMinWidth:g,barGap:v,barCategoryGap:m,axisKey:yh(o),stackId:mh(t)})}),bh(n)}function bh(t){var e={};f(t,function(t){var n=t.axisKey,i=t.bandWidth,r=e[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=r.stacks;e[n]=r;var a=t.stackId;o[a]||r.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(r.remainedWidth,s),r.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[a].maxWidth=l);var u=t.barMinWidth;u&&(o[a].minWidth=u);var h=t.barGap;null!=h&&(r.gap=h);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var n={};return f(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=ya(t.categoryGap,r),a=ya(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),f(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,s-=i+a*i,l--}else{var i=u;e&&i>e&&(i=Math.min(e,s)),n&&n>i&&(i=n),i!==u&&(t.width=i,s-=i+a*i,l--)}}),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var h,c=0;f(i,function(t){t.width||(t.width=u),h=t,c+=t.width*(1+a)}),h&&(c-=h.width*a);var d=-c/2;f(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:d,width:t.width},d+=t.width*(1+a)})}),n}function Sh(t,e,n){if(t&&e){var i=t[yh(e)];return null!=i&&null!=n&&(i=i[mh(n)]),i}}function Mh(t,e){var n=xh(t,e),i=wh(n),r={};f(n,function(t){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=mh(t),s=i[yh(o)][a],l=s.offset,u=s.width,h=n.getOtherAxis(o),c=t.get("barMinHeight")||0;r[a]=r[a]||[],e.setLayout({bandWidth:s.bandWidth,offset:l,size:u});for(var d=e.mapDimension(h.dim),f=e.mapDimension(o.dim),p=rh(e,d),g=h.isHorizontal(),v=Th(o,h,p),m=0,y=e.count();y>m;m++){var x=e.get(d,m),_=e.get(f,m);if(!isNaN(x)&&!isNaN(_)){var w=x>=0?"p":"n",b=v;p&&(r[a][_]||(r[a][_]={p:v,n:v}),b=r[a][_][w]);var S,M,C,I;if(g){var T=n.dataToPoint([x,_]);S=b,M=T[1]+l,C=T[0]-v,I=u,Math.abs(C)<c&&(C=(0>C?-1:1)*c),p&&(r[a][_][w]+=C)}else{var T=n.dataToPoint([_,x]);S=T[0]+l,M=b,C=u,I=T[1]-v,Math.abs(I)<c&&(I=(0>=I?-1:1)*c),p&&(r[a][_][w]+=I)}e.setItemLayout(m,{x:S,y:M,width:C,height:I})}}},this)}function Ch(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Ih(t){return t.pipelineContext&&t.pipelineContext.large}function Th(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}function Ah(t,e){return _S(t,xS(e))}function Dh(t,e){var n,i,r,o=t.type,a=e.getMin(),s=e.getMax(),l=null!=a,u=null!=s,h=t.getExtent();"ordinal"===o?n=e.getCategories().length:(i=e.get("boundaryGap"),_(i)||(i=[i||0,i||0]),"boolean"==typeof i[0]&&(i=[0,0]),i[0]=ya(i[0],1),i[1]=ya(i[1],1),r=h[1]-h[0]||Math.abs(h[0])),null==a&&(a="ordinal"===o?n?0:0/0:h[0]-i[0]*r),null==s&&(s="ordinal"===o?n?n-1:0/0:h[1]+i[1]*r),"dataMin"===a?a=h[0]:"function"==typeof a&&(a=a({min:h[0],max:h[1]})),"dataMax"===s?s=h[1]:"function"==typeof s&&(s=s({min:h[0],max:h[1]})),(null==a||!isFinite(a))&&(a=0/0),(null==s||!isFinite(s))&&(s=0/0),t.setBlank(T(a)||T(s)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(a>0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var c=e.ecModel;if(c&&"time"===o){var d,p=xh("bar",c);if(f(p,function(t){d|=t.getBaseAxis()===e.axis}),d){var g=wh(p),v=kh(a,s,e,g);a=v.min,s=v.max}}return[a,s]}function kh(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=Sh(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;f(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;f(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=1-(s+l)/o,d=h/c-h;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function Ph(t,e){var n=Dh(t,e),i=null!=e.getMin(),r=null!=e.getMax(),o=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var a=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:o,fixMin:i,fixMax:r,minInterval:"interval"===a||"time"===a?e.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)}function Oh(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Jb(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new nS;default:return(uh.getClass(e)||nS).create(t)}}function Lh(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||0>n&&0>i)}function zh(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof e?e=function(e){return function(n){return n=t.scale.getLabel(n),e.replace("{value}",null!=n?n:"")}}(e):"function"==typeof e?function(i,r){return null!=n&&(r=i-n),e(Eh(t,i),r)}:function(e){return t.scale.getLabel(e)}}function Eh(t,e){return"category"===t.type?t.scale.getLabel(e):e}function Bh(t){var e=t.model,n=t.scale;if(e.get("axisLabel.show")&&!n.isBlank()){var i,r,o="category"===t.type,a=n.getExtent();o?r=n.count():(i=n.getTicks(),r=i.length);var s,l=t.getLabelModel(),u=zh(t),h=1;r>40&&(h=Math.ceil(r/40));for(var c=0;r>c;c+=h){var d=i?i[c]:a[0]+c,f=u(d),p=l.getTextRect(f),g=Rh(p,l.get("rotate")||0);s?s.union(g):s=g}return s}}function Rh(t,e){var n=e*Math.PI/180,i=t.plain(),r=i.width,o=i.height,a=r*Math.cos(n)+o*Math.sin(n),s=r*Math.sin(n)+o*Math.cos(n),l=new Sn(i.x,i.y,a,s);return l}function Nh(t){var e=t.get("interval");return null==e?"auto":e}function Fh(t){return"category"===t.type&&0===Nh(t.getLabelModel())}function Vh(t,e){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}function Hh(t,e,n,i,r,o,a){var s=0===t.indexOf("empty");s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?mo(t.slice(8),new Sn(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?vo(t.slice(7),{},new Sn(e,n,i,r),a?"center":"cover"):new zS({shape:{symbolType:t,x:e,y:n,width:i,height:r}}),l.__isEmptyBrush=s,l.setColor=Vh,l.setColor(o),l}function Gh(t){return ah(t.getSource(),t)}function Wh(t,e){var n=e;ha.isInstance(e)||(n=new ha(e),c(n,IS));var i=Oh(n);return i.setExtent(t[0],t[1]),Ph(i,n),i}function Xh(t){c(t,IS)}function Yh(t,e){return Math.abs(t-e)<RS}function Zh(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];i+=Gr(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return Yh(r[0],s[0])&&Yh(r[1],s[1])||(i+=Gr(r[0],r[1],s[0],s[1],e,n)),0!==i}function Uh(t,e,n){if(this.name=t,this.geometries=e,n)n=[n[0],n[1]];else{var i=this.getBoundingRect();n=[i.x+i.width/2,i.y+i.height/2]}this.center=n}function jh(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var n=t.features,i=0;i<n.length;i++)for(var r=n[i],o=r.geometry,a=o.coordinates,s=o.encodeOffsets,l=0;l<a.length;l++){var u=a[l];if("Polygon"===o.type)a[l]=qh(u,s[l],e);else if("MultiPolygon"===o.type)for(var h=0;h<u.length;h++){var c=u[h];u[h]=qh(c,s[l][h],e)}}return t.UTF8Encoding=!1,t}function qh(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function $h(t){return"category"===t.type?Qh(t):ec(t)}function Kh(t,e){return"category"===t.type?tc(t,e):{ticks:t.scale.getTicks()}}function Qh(t){var e=t.getLabelModel(),n=Jh(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Jh(t,e){var n=nc(t,"labels"),i=Nh(e),r=ic(n,i);if(r)return r;var o,a;return w(i)?o=uc(t,i):(a="auto"===i?oc(t):i,o=lc(t,a)),rc(n,i,{labels:o,labelCategoryInterval:a})}function tc(t,e){var n=nc(t,"ticks"),i=Nh(e),r=ic(n,i);if(r)return r;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),w(i))o=uc(t,i,!0);else if("auto"===i){var s=Jh(t,t.getLabelModel());a=s.labelCategoryInterval,o=p(s.labels,function(t){return t.tickValue})}else a=i,o=lc(t,a,!0);return rc(n,i,{ticks:o,tickCategoryInterval:a})}function ec(t){var e=t.scale.getTicks(),n=zh(t);return{labels:p(e,function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e}})}}function nc(t,e){return FS(t)[e]||(FS(t)[e]=[])}function ic(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function rc(t,e,n){return t.push({key:e,value:n}),n}function oc(t){var e=FS(t).autoInterval;return null!=e?e:FS(t).autoInterval=t.calculateCategoryInterval()}function ac(t){var e=sc(t),n=zh(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),d=0,f=0;l<=o[1];l+=s){var p=0,g=0,v=Gn(n(l),e.font,"center","top");p=1.3*v.width,g=1.3*v.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var m=d/h,y=f/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),_=FS(t.model),w=t.getExtent(),b=_.lastAutoInterval,S=_.lastTickCount;return null!=b&&null!=S&&Math.abs(b-x)<=1&&Math.abs(S-a)<=1&&b>x&&_.axisExtend0===w[0]&&_.axisExtend1===w[1]?x=b:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtend0=w[0],_.axisExtend1=w[1]),x}function sc(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function lc(t,e,n){function i(t){l.push(n?t:{formattedLabel:r(t),rawLabel:o.getLabel(t),tickValue:t})}var r=zh(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=a[0],c=o.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var d=Fh(t),f=s.get("showMinLabel")||d,p=s.get("showMaxLabel")||d;f&&h!==a[0]&&i(a[0]);for(var g=h;g<=a[1];g+=u)i(g);return p&&g-u!==a[1]&&i(a[1]),l}function uc(t,e,n){var i=t.scale,r=zh(t),o=[];return f(i.getTicks(),function(t){var a=i.getLabel(t);e(t,a)&&o.push(n?t:{formattedLabel:r(t),rawLabel:a,tickValue:t})}),o}function hc(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function cc(t,e,n,i){function r(t,e){return t=xa(t),e=xa(e),d?t>e:e>t}var o=e.length;if(t.onBand&&!n&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[0]};else{var u=e[o-1].tickValue-e[0].tickValue,h=(e[o-1].coord-e[0].coord)/u;f(e,function(t){t.coord-=h/2});var c=t.scale.getExtent();s=1+c[1]-e[o-1].tickValue,a={coord:e[o-1].coord+h*s},e.push(a)}var d=l[0]>l[1];r(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(i?a.coord=l[1]:e.pop()),i&&r(a.coord,l[1])&&e.push({coord:l[1]})}}function dc(t){return this._axes[t]}function fc(t){YS.call(this,t)}function pc(t,e){return e.type||(e.data?"category":"value")}function gc(t,e){return t.getCoordSysModel()===e}function vc(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this.model=t}function mc(t,e,n,i){function r(t){return t.dim+"_"+t.index}n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=n.model,l=s.get("axisLine.onZero"),u=s.get("axisLine.onZeroAxisIndex");if(l){if(null!=u)yc(a[u])&&(o=a[u]);else for(var h in a)if(a.hasOwnProperty(h)&&yc(a[h])&&!i[r(a[h])]){o=a[h];break}o&&(i[r(o)]=!0)}}function yc(t){return t&&"category"!==t.type&&"time"!==t.type&&Lh(t)}function xc(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}function _c(t){return p(tM,function(e){var n=t.getReferringComponents(e)[0];return n})}function wc(t){return"cartesian2d"===t.get("coordinateSystem")}function bc(t,e){var n=t.mapDimension("defaultedLabel",!0),i=n.length;if(1===i)return Zs(t,e,n[0]);if(i){for(var r=[],o=0;o<n.length;o++){var a=Zs(t,e,n[o]);r.push(a)}return r.join(" ")}}function Sc(t,e,n,i,r,o){var a=n.getModel("label"),s=n.getModel("emphasis.label");Fo(t,e,a,s,{labelFetcher:r,labelDataIndex:o,defaultText:bc(r.getData(),o),isRectText:!0,autoColor:i}),Mc(t),Mc(e)}function Mc(t,e){"outside"===t.textPosition&&(t.textPosition=e)}function Cc(t,e,n){var i=t.getArea(),r=t.getBaseAxis().isHorizontal(),o=i.x,a=i.y,s=i.width,l=i.height,u=n.get("lineStyle.width")||2;o-=u/2,a-=u/2,s+=u,l+=u;var h=new Ix({shape:{x:o,y:a,width:s,height:l}});return e&&(h.shape[r?"width":"height"]=0,Qo(h,{shape:{width:s,height:l}},n)),h}function Ic(t,e,n){var i=t.getArea(),r=new mx({shape:{cx:xa(t.cx,1),cy:xa(t.cy,1),r0:xa(i.r0,1),r:xa(i.r,1),startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&(r.shape.endAngle=i.startAngle,Qo(r,{shape:{endAngle:i.endAngle}},n)),r}function Tc(t,e,n){return t?"polar"===t.type?Ic(t,e,n):"cartesian2d"===t.type?Cc(t,e,n):null:null}function Ac(t,e){var n=t.getArea&&t.getArea();if("cartesian2d"===t.type){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}function Dc(t,e,n){n.style.text=null,Ko(n,{shape:{width:0}},e,t,function(){n.parent&&n.parent.remove(n)})}function kc(t,e,n){n.style.text=null,Ko(n,{shape:{r:n.shape.r0}},e,t,function(){n.parent&&n.parent.remove(n)})}function Pc(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function Oc(t,e,n,i,r,o,a,l){var u=e.getItemVisual(n,"color"),h=e.getItemVisual(n,"opacity"),c=e.getVisual("borderColor"),d=i.getModel("itemStyle"),f=i.getModel("emphasis.itemStyle").getBarItemStyle();l||t.setShape("r",d.get("barBorderRadius")||0),t.useStyle(s({stroke:Pc(r)?"none":c,fill:Pc(r)?"none":u,opacity:h},d.getBarItemStyle()));var p=i.getShallow("cursor");p&&t.attr("cursor",p);var g=a?r.height>0?"bottom":"top":r.width>0?"left":"right";l||Sc(t.style,f,i,u,o,n,g),Pc(r)&&(f.fill=f.stroke="none"),Eo(t,f)}function Lc(t,e){var n=t.get(oM)||0;return Math.min(n,Math.abs(e.width),Math.abs(e.height))}function zc(t,e,n){var i=t.getData(),r=[],o=i.getLayout("valueAxisHorizontal")?1:0;r[1-o]=i.getLayout("valueAxisStart");var a=new dM({shape:{points:i.getLayout("largePoints")},incremental:!!n,__startPoint:r,__baseDimIdx:o,__largeDataIndices:i.getLayout("largeDataIndices"),__barWidth:i.getLayout("barWidth")});e.add(a),Bc(a,t,i),a.seriesIndex=t.seriesIndex,t.get("silent")||(a.on("mousedown",fM),a.on("mousemove",fM))}function Ec(t,e,n){var i=t.__baseDimIdx,r=1-i,o=t.shape.points,a=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[r];aM[0]=e,aM[1]=n;for(var u=aM[i],h=aM[1-i],c=u-s,d=u+s,f=0,p=o.length/2;p>f;f++){var g=2*f,v=o[g+i],m=o[g+r];if(v>=c&&d>=v&&(m>=l?h>=l&&m>=h:h>=m&&l>=h))return a[f]}return-1}function Bc(t,e,n){var i=n.getVisual("borderColor")||n.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function Rc(t,e,n,i){var r,o,a=Ca(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Ia(a-pM/2)?(o=l?"bottom":"top",r="center"):Ia(a-1.5*pM)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*pM>a&&a>pM/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Nc(t,e,n){if(!Fh(t.axis)){var i=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],h=n[1],c=n[n.length-1],d=n[n.length-2];i===!1?(Fc(o),Fc(u)):Vc(o,a)&&(i?(Fc(a),Fc(h)):(Fc(o),Fc(u))),r===!1?(Fc(s),Fc(c)):Vc(l,s)&&(r?(Fc(l),Fc(d)):(Fc(s),Fc(c)))}}function Fc(t){t&&(t.ignore=!0)}function Vc(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=ke([]);return ze(r,r,-t.rotation),n.applyTransform(Oe([],r,t.getLocalTransform())),i.applyTransform(Oe([],r,e.getLocalTransform())),n.intersect(i)}}function Hc(t){return"middle"===t||"center"===t}function Gc(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(oe(a,a,e),oe(s,s,e));var h=new Ax({anid:r+"_"+t[l].tickValue,subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,silent:!0});o.push(h)}return o}function Wc(t,e,n){var i=e.axis,r=e.getModel("axisTick");if(r.get("show")&&!i.scale.isBlank()){for(var o=r.getModel("lineStyle"),a=n.tickDirection*r.get("length"),l=i.getTicksCoords(),u=Gc(l,t._transform,a,s(o.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),"ticks"),h=0;h<u.length;h++)t.group.add(u[h]);return u}}function Xc(t,e,n){var i=e.axis,r=e.getModel("minorTick");if(r.get("show")&&!i.scale.isBlank()){var o=i.getMinorTicksCoords();if(o.length)for(var a=r.getModel("lineStyle"),l=n.tickDirection*r.get("length"),u=s(a.getLineStyle(),s(e.getModel("axisTick").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})),h=0;h<o.length;h++)for(var c=Gc(o[h],t._transform,l,u,"minorticks_"+h),d=0;d<c.length;d++)t.group.add(c[d])}}function Yc(t,e,n){var i=e.axis,r=A(n.axisLabelShow,e.get("axisLabel.show"));if(r&&!i.scale.isBlank()){var o=e.getModel("axisLabel"),a=o.get("margin"),s=i.getViewLabels(),l=(A(n.labelRotate,o.get("rotate"))||0)*pM/180,u=yM(n.rotation,l,n.labelDirection),h=e.getCategories&&e.getCategories(!0),c=[],d=xM(e),p=e.get("triggerEvent");return f(s,function(r,s){var l=r.tickValue,f=r.formattedLabel,g=r.rawLabel,v=o;h&&h[l]&&h[l].textStyle&&(v=new ha(h[l].textStyle,o,e.ecModel));var m=v.getTextColor()||e.get("axisLine.lineStyle.color"),y=i.dataToCoord(l),x=[y,n.labelOffset+n.labelDirection*a],_=new fx({anid:"label_"+l,position:x,rotation:u.rotation,silent:d,z2:10});Ho(_.style,v,{text:f,textAlign:v.getShallow("align",!0)||u.textAlign,textVerticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||u.textVerticalAlign,textFill:"function"==typeof m?m("category"===i.type?g:"value"===i.type?l+"":l,s):m}),p&&(_.eventData=mM(e),_.eventData.targetType="axisLabel",_.eventData.value=g),t._dumbGroup.add(_),_.updateTransform(),c.push(_),t.group.add(_),_.decomposeTransform()}),c}}function Zc(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Uc(n,t,e),n.seriesInvolved&&qc(n,t),n}function Uc(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];_M(n.getCoordinateSystems(),function(n){function s(i,s,l){var h=l.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||ed(h))){null==s&&(s=h.get("triggerTooltip")),h=i?jc(l,c,r,e,i,s):h;var f=h.get("snap"),p=nd(l.model),g=s||f||"category"===l.type,v=t.axesInfo[p]={key:p,axis:l,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:ed(h),seriesModels:[]};u[p]=v,t.seriesInvolved|=g;var m=$c(o,l);if(null!=m){var y=a[m]||(a[m]={axesInfo:{}});y.axesInfo[p]=v,y.mapper=o[m].mapper,v.linkGroup=y}}}if(n.axisPointerEnabled){var l=nd(n.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=n;var h=n.model,c=h.getModel("tooltip",i);if(_M(n.getAxes(),wM(s,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var d="axis"===c.get("trigger"),f="cross"===c.get("axisPointer.type"),p=n.getTooltipAxes(c.get("axisPointer.axis"));(d||f)&&_M(p.baseAxes,wM(s,f?"cross":!0,d)),f&&_M(p.otherAxes,wM(s,"cross",!1))}}})}function jc(t,e,n,r,o,a){var l=e.getModel("axisPointer"),u={};_M(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){u[t]=i(l.get(t))}),u.snap="category"!==t.type&&!!a,"cross"===l.get("type")&&(u.type="line");var h=u.label||(u.label={});if(null==h.show&&(h.show=!1),"cross"===o){var c=l.get("label.show");if(h.show=null!=c?c:!0,!a){var d=u.lineStyle=l.get("crossStyle");d&&s(h,d.textStyle)}}return t.model.getModel("axisPointer",new ha(u,n,r))}function qc(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get("tooltip.trigger",!0),r=e.get("tooltip.show",!0);n&&"none"!==i&&i!==!1&&"item"!==i&&r!==!1&&e.get("axisPointer.show",!0)!==!1&&_M(t.coordSysAxesInfo[nd(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})},this)}function $c(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Kc(o[i+"AxisId"],n.id)||Kc(o[i+"AxisIndex"],n.componentIndex)||Kc(o[i+"AxisName"],n.name))return r}}function Kc(t,e){return"all"===t||_(t)&&u(t,e)>=0||t===e}function Qc(t){var e=Jc(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=ed(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function Jc(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[nd(t)]}function td(t){var e=Jc(t);return e&&e.axisPointerModel}function ed(t){return!!t.get("handle.show")}function nd(t){return t.type+"||"+t.id}function id(t,e,n,i,r,o){var a=bM.getAxisPointerClass(t.axisPointerClass);if(a){var s=td(e);s?(t._axisPointer||(t._axisPointer=new a)).render(e,s,i,o):rd(t,i)}}function rd(t,e,n){var i=t._axisPointer;i&&i.dispose(e,n),t._axisPointer=null}function od(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,p="x"===u?[c[2]-f,c[3]+f]:[c[0]-f,c[1]+f];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===u?p[d[l]]:c[0],"x"===u?p[d[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?p[d[s]]-p[d.onZero]:0,e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),A(n.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var m=e.get("axisLabel.rotate");return o.labelRotate="top"===l?-m:m,o.z2=1,o}function ad(t,e,n){Qv.call(this),this.updateData(t,e,n)}function sd(t){return[t[0]/2,t[1]/2]}function ld(t,e){this.parent.drift(t,e)}function ud(t,e){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===e){var n=this.__symbolOriginalScale,i=n[1]/n[0],r={scale:[Math.max(1.1*n[0],n[0]+3),Math.max(1.1*n[1],n[1]+3*i)]};this.animateTo(r,400,"elasticOut")}else"normal"===e&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}function hd(t){this.group=new Qv,this._symbolCtor=t||ad}function cd(t,e,n,i){return!(!e||isNaN(e[0])||isNaN(e[1])||i.isIgnore&&i.isIgnore(n)||i.clipShape&&!i.clipShape.contain(e[0],e[1])||"none"===t.getItemVisual(n,"symbol"))}function dd(t){return null==t||S(t)||(t={isIgnore:t}),t||{} }function fd(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}function pd(t,e,n){var i,r=t.getBaseAxis(),o=t.getOtherAxis(r),a=gd(o,n),s=r.dim,l=o.dim,u=e.mapDimension(l),h=e.mapDimension(s),c="x"===l||"radius"===l?1:0,d=p(t.dimensions,function(t){return e.mapDimension(t)}),f=e.getCalculationInfo("stackResultDimension");return(i|=rh(e,d[0]))&&(d[0]=f),(i|=rh(e,d[1]))&&(d[1]=f),{dataDimsForPoint:d,valueStart:a,valueAxisDim:l,baseAxisDim:s,stacked:!!i,valueDim:u,baseDim:h,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function gd(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function vd(t,e,n,i){var r=0/0;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}function md(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}function yd(t){return isNaN(t[0])||isNaN(t[1])}function xd(t,e,n,i,r,o,a,s,l,u){return"none"!==u&&u?_d.apply(this,arguments):wd.apply(this,arguments)}function _d(t,e,n,i,r,o,a,s,l,u,h){for(var c=0,d=n,f=0;i>f;f++){var p=e[d];if(d>=r||0>d)break;if(yd(p)){if(h){d+=o;continue}break}if(d===n)t[o>0?"moveTo":"lineTo"](p[0],p[1]);else if(l>0){var g=e[c],v="y"===u?1:0,m=(p[v]-g[v])*l;NM(VM,g),VM[v]=g[v]+m,NM(HM,p),HM[v]=p[v]-m,t.bezierCurveTo(VM[0],VM[1],HM[0],HM[1],p[0],p[1])}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function wd(t,e,n,i,r,o,a,s,l,u,h){for(var c=0,d=n,f=0;i>f;f++){var p=e[d];if(d>=r||0>d)break;if(yd(p)){if(h){d+=o;continue}break}if(d===n)t[o>0?"moveTo":"lineTo"](p[0],p[1]),NM(VM,p);else if(l>0){var g=d+o,v=e[g];if(h)for(;v&&yd(e[g]);)g+=o,v=e[g];var m=.5,y=e[c],v=e[g];if(!v||yd(v))NM(HM,p);else{yd(v)&&!h&&(v=p),U(FM,v,y);var x,_;if("x"===u||"y"===u){var w="x"===u?0:1;x=Math.abs(p[w]-y[w]),_=Math.abs(p[w]-v[w])}else x=iv(p,y),_=iv(p,v);m=_/(_+x),RM(HM,p,FM,-l*(1-m))}EM(VM,VM,s),BM(VM,VM,a),EM(HM,HM,s),BM(HM,HM,a),t.bezierCurveTo(VM[0],VM[1],HM[0],HM[1],p[0],p[1]),RM(VM,p,FM,l*m)}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function bd(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;r<t.length;r++){var o=t[r];o[0]<n[0]&&(n[0]=o[0]),o[1]<n[1]&&(n[1]=o[1]),o[0]>i[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1])}return{min:e?n:i,max:e?i:n}}function Sd(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++){var i=t[n],r=e[n];if(i[0]!==r[0]||i[1]!==r[1])return}return!0}}function Md(t){return"number"==typeof t?t:t?.5:0}function Cd(t,e,n){if(!n.valueDim)return[];for(var i=[],r=0,o=e.count();o>r;r++)i.push(vd(n,t,e,r));return i}function Id(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,o=[],a=0;a<t.length-1;a++){var s=t[a+1],l=t[a];o.push(l);var u=[];switch(n){case"end":u[r]=s[r],u[1-r]=l[1-r],o.push(u);break;case"middle":var h=(l[r]+s[r])/2,c=[];u[r]=c[r]=h,u[1-r]=l[1-r],c[1-r]=s[1-r],o.push(u),o.push(c);break;default:u[r]=l[r],u[1-r]=s[1-r],o.push(u)}}return t[a]&&o.push(t[a]),o}function Td(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,r,o=n.length-1;o>=0;o--){var a=n[o].dimension,s=t.dimensions[a],l=t.getDimensionInfo(s);if(i=l&&l.coordDim,"x"===i||"y"===i){r=n[o];break}}if(r){var u=e.getAxis(i),h=p(r.stops,function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),c=h.length,d=r.outerColors.slice();c&&h[0].coord>h[c-1].coord&&(h.reverse(),d.reverse());var g=10,v=h[0].coord-g,m=h[c-1].coord+g,y=m-v;if(.001>y)return"transparent";f(h,function(t){t.offset=(t.coord-v)/y}),h.push({offset:c?h[c-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:c?h[0].offset:.5,color:d[0]||"transparent"});var x=new zx(0,0,0,0,h,!0);return x[i]=v,x[i+"2"]=m,x}}}function Ad(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!Dd(o,e))){var a=e.mapDimension(o.dim),s={};return f(o.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function Dd(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;r>a;a+=o)if(1.5*ad.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}function kd(t,e,n){if("cartesian2d"===t.type){var i=t.getBaseAxis().isHorizontal(),r=Cc(t,e,n);if(!n.get("clip",!0)){var o=r.shape,a=Math.max(o.width,o.height);i?(o.y-=a,o.height+=2*a):(o.x-=a,o.width+=2*a)}return r}return Ic(t,e,n)}function Pd(t){return _(t)||(t=[+t,+t]),t}function Od(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})})}function Ld(t,e){Qv.call(this);var n=new ad(t,e),i=new Qv;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(t,e)}function zd(t,e,n){var i,r={},o="toggleSelected"===t;return n.eachComponent("legend",function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var a=n.getData();f(a,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r[e]=r.hasOwnProperty(e)?r[e]&&i:i}})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function Ed(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Za(i,o,r);x_(e.get("orient"),t,e.get("itemGap"),a.width,a.height),Ua(t,i,o,r)}function Bd(t,e){var n=u_(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var t=new Ix({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return t}function Rd(t,e,n,i,r,o){var a;return"line"!==e&&e.indexOf("empty")<0?(a=n.getItemStyle(),t.style.stroke=i,o||(a.stroke=r)):a=n.getItemStyle(["borderWidth","borderColor"]),t.setStyle(a)}function Nd(t,e,n,i){Vd(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Fd(t,e,n,i)}function Fd(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Vd(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function Hd(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,ja(e,n,{type:"box",ignoreSize:r})}function Gd(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var s=Wd(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==r.seriesIndex&&a(r,l[0]),!i&&t.snap&&o.containData(u)&&null!=u&&(e=u),n.showPointer(t,e,l,r),n.showTooltip(t,s,u)}}function Wd(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return cC(e.seriesModels,function(e){var l,u,h=e.getData().mapDimension(i,!0);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(h,t,n);u=c.dataIndices,l=c.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!u.length)return;l=e.getData().get(h[0],u[0])}if(null!=l&&isFinite(l)){var d=t-l,f=Math.abs(d);a>=f&&((a>f||d>=0&&0>s)&&(a=f,s=d,r=l,o.length=0),cC(u,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}function Xd(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function Yd(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=nd(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:r.slice()})}}function Zd(t,e,n){var i=n.axesInfo=[];cC(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function Ud(t,e,n,i){if(Kd(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}function jd(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=fC(i)[r]||{},a=fC(i)[r]={};cC(t,function(t){var e=t.axisPointerModel.option;"show"===e.status&&cC(e.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var s=[],l=[];f(o,function(t,e){!a[e]&&l.push(t)}),f(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:s})}function qd(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function $d(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function Kd(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Qd(t,e,n){if(!Fg.node){var i=e.getZr();gC(i).records||(gC(i).records={}),Jd(i,e);var r=gC(i).records[t]||(gC(i).records[t]={});r.handler=n}}function Jd(t,e){function n(n,i){t.on(n,function(n){var r=rf(e);vC(gC(t).records,function(t){t&&i(t,n,r.dispatchAction)}),tf(r.pendings,e)})}gC(t).initialized||(gC(t).initialized=!0,n("click",x(nf,"click")),n("mousemove",x(nf,"mousemove")),n("globalout",ef))}function tf(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function ef(t,e,n){t.handler("leave",null,n)}function nf(t,e,n,i){e.handler(t,n,i)}function rf(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function of(t,e){if(!Fg.node){var n=e.getZr(),i=(gC(n).records||{})[t];i&&(gC(n).records[t]=null)}}function af(){}function sf(t,e,n,i){lf(yC(n).lastProp,i)||(yC(n).lastProp=i,e?Ko(n,i,t):(n.stopAnimation(),n.attr(i)))}function lf(t,e){if(S(t)&&S(e)){var n=!0;return f(e,function(e,i){n=n&&lf(t[i],e)}),!!n}return t===e}function uf(t,e){t[e.get("label.show")?"show":"hide"]()}function hf(t){return{position:t.position.slice(),rotation:t.rotation||0}}function cf(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function df(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function ff(t,e,n,i,r){var o=n.get("value"),a=gf(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),s=n.getModel("label"),l=u_(s.get("padding")||0),u=s.getFont(),h=Gn(a,u),c=r.position,d=h.width+l[1]+l[3],f=h.height+l[0]+l[2],p=r.align;"right"===p&&(c[0]-=d),"center"===p&&(c[0]-=d/2);var g=r.verticalAlign;"bottom"===g&&(c[1]-=f),"middle"===g&&(c[1]-=f/2),pf(c,d,f,i);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:d,height:f,r:s.get("borderRadius")},position:c.slice(),style:{text:a,textFont:u,textFill:s.getTextColor(),textPosition:"inside",textPadding:l,fill:v,stroke:s.get("borderColor")||"transparent",lineWidth:s.get("borderWidth")||0,shadowBlur:s.get("shadowBlur"),shadowColor:s.get("shadowColor"),shadowOffsetX:s.get("shadowOffsetX"),shadowOffsetY:s.get("shadowOffsetY")},z2:10}}function pf(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function gf(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:r.precision}),a=r.formatter;if(a){var s={value:Eh(e,t),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};f(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),b(a)?o=a.replace("{value}",o):w(a)&&(o=a(s))}return o}function vf(t,e,n){var i=De();return ze(i,i,n.rotation),Le(i,i,n.position),ta([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function mf(t,e,n,i,r,o){var a=gM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),ff(e,i,r,o,{position:vf(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function yf(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function xf(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function _f(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}function wf(t){return"x"===t.dim?0:1}function bf(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",n="left "+t+"s "+e+",top "+t+"s "+e;return p(CC,function(t){return t+"transition:"+n}).join(";")}function Sf(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();return i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px"),SC(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}function Mf(t){var e=[],n=t.get("transitionDuration"),i=t.get("backgroundColor"),r=t.getModel("textStyle"),o=t.get("padding");return n&&e.push(bf(n)),i&&(Fg.canvasSupported?e.push("background-Color:"+i):(e.push("background-Color:#"+tn(i)),e.push("filter:alpha(opacity=70)"))),SC(["width","color","radius"],function(n){var i="border-"+n,r=MC(i),o=t.get(r);null!=o&&e.push(i+":"+o+("color"===n?"":"px"))}),e.push(Sf(r)),null!=o&&e.push("padding:"+u_(o).join("px ")+"px"),e.join(";")+";"}function Cf(t,e){if(Fg.wxa)return null;var n=document.createElement("div"),i=this._zr=e.getZr();this.el=n,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var r=this;n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!r._enterable){var n=i.handler;xe(t,e,!0),n.dispatch("mousemove",e)}},n.onmouseleave=function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}function If(t){this._zr=t.getZr(),this._show=!1,this._hideTimeout}function Tf(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(ha.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),e=new ha(n,e,e.ecModel))}return e}function Af(t,e){return t.dispatchAction||y(e.dispatchAction,e)}function Df(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function kf(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Pf(t,e,n){var i=n[0],r=n[1],o=5,a=0,s=0,l=e.width,u=e.height;switch(t){case"inside":a=e.x+l/2-i/2,s=e.y+u/2-r/2;break;case"top":a=e.x+l/2-i/2,s=e.y-r-o;break;case"bottom":a=e.x+l/2-i/2,s=e.y+u+o;break;case"left":a=e.x-i-o,s=e.y+u/2-r/2;break;case"right":a=e.x+l+o,s=e.y+u/2-r/2}return[a,s]}function Of(t){return"center"===t||"middle"===t}function Lf(t){Ki(t,"label",["show"])}function zf(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function Ef(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function Bf(t,e,n,i,r,o){var a=[],s=rh(e,i),l=s?e.getCalculationInfo("stackResultDimension"):i,u=Hf(e,l,t),h=e.indicesOfNearest(l,u)[0];a[r]=e.get(n,h),a[o]=e.get(i,h);var c=wa(e.get(i,h));return c=Math.min(c,20),c>=0&&(a[o]=+a[o].toFixed(c)),a}function Rf(t,e){var n=t.getData(),r=t.coordinateSystem;if(e&&!Ef(e)&&!_(e.coord)&&r){var o=r.dimensions,a=Nf(e,n,r,t);if(e=i(e),e.type&&BC[e.type]&&a.baseAxis&&a.valueAxis){var s=zC(o,a.baseAxis.dim),l=zC(o,a.valueAxis.dim);e.coord=BC[e.type](n,a.baseDataDim,a.valueDataDim,s,l),e.value=e.coord[l]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],h=0;2>h;h++)BC[u[h]]&&(u[h]=Hf(n,n.mapDimension(o[h]),u[h]));e.coord=u}}return e}function Nf(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(Ff(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function Ff(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r<i.length;r++){var o=n.getDimensionInfo(i[r]);if(o.name===e)return o.coordDim}}function Vf(t,e){return t&&t.containData&&e.coord&&!zf(e)?t.containData(e.coord):!0}function Hf(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,function(t){isNaN(t)||(i+=t,r++)}),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e,!0)["max"===n?1:0]}function Gf(t){return!isNaN(t)&&!isFinite(t)}function Wf(t,e,n){var i=1-t;return Gf(e[i])&&Gf(n[i])}function Xf(t,e){var n=e.coord[0],i=e.coord[1];return"cartesian2d"===t.type&&n&&i&&(Wf(1,n,i,t)||Wf(0,n,i,t))?!0:Vf(t,{coord:n,x:e.x0,y:e.y0})||Vf(t,{coord:i,x:e.x1,y:e.y1})}function Yf(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=ya(s.get(n[0]),r.getWidth()),u=ya(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(n,e));else{var h=t.get(n[0],e),c=t.get(n[1],e),d=[h,c];a.clampData&&a.clampData(d,d),o=a.dataToPoint(d,!0)}if("cartesian2d"===a.type){var f=a.getAxis("x"),p=a.getAxis("y"),h=t.get(n[0],e),c=t.get(n[1],e);Gf(h)?o[0]=f.toGlobalCoord(f.getExtent()["x0"===n[0]?0:1]):Gf(c)&&(o[1]=p.toGlobalCoord(p.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}function Zf(t,e,n){var i,r,o=["x0","y0","x1","y1"];t?(i=p(t&&t.dimensions,function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return s({name:t},i)}),r=new Zb(p(o,function(t,e){return{name:t,type:i[e%2].type}}),n)):(i=[{name:"value",type:"float"}],r=new Zb(i,n));var a=p(n.get("data"),x(NC,e,t,n));t&&(a=v(a,x(Xf,t)));var l=t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return r.initData(a,null,l),r.hasItemOption=!0,r}function Uf(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),jf(t),qf(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});qf(i,"position")||(i.position=t.controlPosition),"none"!==i.position||qf(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}f(t.data||[],function(t){S(t)&&!_(t)&&(!qf(t,"value")&&qf(t,"name")&&(t.value=t.name),jf(t))})}function jf(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};f(i,function(t,e){o[e]||qf(r,e)||(r[e]=t)}),n.label&&!qf(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function qf(t,e){return t.hasOwnProperty(e)}function $f(t,e){return Za(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function Kf(t,e,n,r){var o=vo(t.get(e).replace(/^path:\/\//,""),i(r||{}),new Sn(n[0],n[1],n[2],n[3]),"center");return o}function Qf(t,e,n,i,o,a){var s=e.get("color");if(o)o.setColor(s),n.add(o),a&&a.onUpdate(o);else{var l=t.get("symbol");o=Hh(l,-1,-1,2,2,s),o.setStyle("strokeNoScale",!0),n.add(o),a&&a.onCreate(o)}var u=e.getItemStyle(["color","symbol","symbolSize"]);o.setStyle(u),i=r({rectHover:!0,z2:100},i,!0);var h=t.get("symbolSize");h=h instanceof Array?h.slice():[+h,+h],h[0]/=2,h[1]/=2,i.scale=h;var c=t.get("symbolOffset");if(c){var d=i.position=i.position||[0,0];d[0]+=ya(c[0],h[0]),d[1]+=ya(c[1],h[1])}var f=t.get("symbolRotate");return i.rotation=(f||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function Jf(t,e,n,i,r){if(!t.dragging){var o=i.getModel("checkpointStyle"),a=n.dataToCoord(i.getData().get(["value"],e));r||!o.get("animation",!0)?t.attr({position:[a,0]}):(t.stopAnimation(!0),t.animateTo({position:[a,0]},o.get("animationDuration",!0),o.get("animationEasing",!0)))}}function tp(t,e){jC[t]=e}function ep(t){return jC[t]}function np(t){return 0===t.indexOf("my")}function ip(t){this.model=t}function rp(t){this.model=t}function op(t){var e={},n=[],i=[];return t.eachRawSeries(function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}}),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function ap(t){var e=[];return f(t,function(t){var n=t.categoryAxis,i=t.valueAxis,r=i.dim,o=[" "].concat(p(t.series,function(t){return t.name})),a=[n.model.getCategories()];f(t.series,function(t){a.push(t.getRawData().mapArray(r,function(t){return t}))});for(var s=[o.join(oI)],l=0;l<a[0].length;l++){for(var u=[],h=0;h<a.length;h++)u.push(a[h][l]);s.push(u.join(oI))}e.push(s.join("\n"))}),e.join("\n\n"+rI+"\n\n")}function sp(t){return p(t,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;t-1>a;a++)i[a]=arguments[a];n.push((o?o+oI:"")+i.join(oI))}),n.join("\n")}).join("\n\n"+rI+"\n\n")}function lp(t){var e=op(t);return{value:v([ap(e.seriesGroupByCategoryAxis),sp(e.other)],function(t){return t.replace(/[\n\t\s]/g,"")}).join("\n\n"+rI+"\n\n"),meta:e.meta}}function up(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function hp(t){var e=t.slice(0,t.indexOf("\n"));return e.indexOf(oI)>=0?!0:void 0}function cp(t){for(var e=t.split(/\n+/g),n=up(e.shift()).split(aI),i=[],r=p(n,function(t){return{name:t,data:[]}}),o=0;o<e.length;o++){var a=up(e[o]).split(aI);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}function dp(t){for(var e=t.split(/\n+/g),n=up(e.shift()),i=[],r=0;r<e.length;r++){var o,a=up(e[r]).split(aI),s="",l=!1;isNaN(a[0])?(l=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},o=i[r].value):o=i[r]=[];for(var u=0;u<a.length;u++)o.push(+a[u]);1===o.length&&(l?i[r].value=o[0]:i[r]=o[0])}return{name:n,data:i}}function fp(t,e){var n=t.split(new RegExp("\n*"+rI+"\n*","g")),i={series:[]};return f(n,function(t,n){if(hp(t)){var r=cp(t),o=e[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{var r=dp(t);i.series.push(r)}}),i}function pp(t){this._dom=null,this.model=t}function gp(t,e){return p(t,function(t,n){var i=e&&e[n];return S(i)&&!_(i)?(S(t)&&!_(t)&&(t=t.value),s({value:t},i)):t})}function vp(t,e,n){var i=yp(t);i[e]=n}function mp(t,e,n){var i=yp(t),r=i[e];r===n&&(i[e]=null)}function yp(t){return t[sI]||(t[sI]={})}function xp(t){sv.call(this),this._zr=t,this.group=new Qv,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+wI++,this._handlers={},uI(bI,function(t,e){this._handlers[e]=y(t,this)},this)}function _p(t,e){var n=t._zr;t._enableGlobalPan||vp(n,mI,t._uid),bp(n,t._handlers),t._brushType=e.brushType,t._brushOption=r(i(_I),e,!0)}function wp(t){var e=t._zr;mp(e,mI,t._uid),Sp(e,t._handlers),t._brushType=t._brushOption=null}function bp(t,e){uI(e,function(e,n){t.on(n,e)})}function Sp(t,e){uI(e,function(e,n){t.off(n,e)})}function Mp(t,e){var n=SI[e.brushType].createCover(t,e);return n.__brushOption=e,Tp(n,e),t.group.add(n),n}function Cp(t,e){var n=Dp(e);return n.endCreating&&(n.endCreating(t,e),Tp(e,e.__brushOption)),e}function Ip(t,e){var n=e.__brushOption;Dp(e).updateCoverShape(t,e,n.range,n)}function Tp(t,e){var n=e.z;null==n&&(n=pI),t.traverse(function(t){t.z=n,t.z2=n})}function Ap(t,e){Dp(e).updateCommon(t,e),Ip(t,e)}function Dp(t){return SI[t.__brushOption.brushType]}function kp(t,e,n){var i=t._panels;if(!i)return!0;var r,o=t._transform;return uI(i,function(t){t.isTargetByCursor(e,n,o)&&(r=t)}),r}function Pp(t,e){var n=t._panels;if(!n)return!0;var i=e.__brushOption.panelId;return null!=i?n[i]:!0}function Op(t){var e=t._covers,n=e.length;return uI(e,function(e){t.group.remove(e)},t),e.length=0,!!n}function Lp(t,e){var n=hI(t._covers,function(t){var e=t.__brushOption,n=i(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}});t.trigger("brush",n,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function zp(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1],a=fI(r*r+o*o,.5);return a>gI}function Ep(t){var e=t.length-1;return 0>e&&(e=0),[t[0],t[e]]}function Bp(t,e,n,i){var r=new Qv;return r.add(new Ix({name:"main",style:Vp(n),silent:!0,draggable:!0,cursor:"move",drift:lI(t,e,r,"nswe"),ondragend:lI(Lp,e,{isEnd:!0})})),uI(i,function(n){r.add(new Ix({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:lI(t,e,r,n),ondragend:lI(Lp,e,{isEnd:!0})}))}),r}function Rp(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=dI(r,vI),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,h=n[0][1],c=n[1][1],d=h-o+r/2,f=c-o+r/2,p=h-a,g=c-s,v=p+r,m=g+r;Fp(t,e,"main",a,s,p,g),i.transformable&&(Fp(t,e,"w",l,u,o,m),Fp(t,e,"e",d,u,o,m),Fp(t,e,"n",l,u,v,o),Fp(t,e,"s",l,f,v,o),Fp(t,e,"nw",l,u,o,o),Fp(t,e,"ne",d,u,o,o),Fp(t,e,"sw",l,f,o,o),Fp(t,e,"se",d,f,o,o))}function Np(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(Vp(n)),r.attr({silent:!i,cursor:i?"move":"default"}),uI(["w","e","n","s","se","sw","ne","nw"],function(n){var r=e.childOfName(n),o=Wp(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?xI[o]+"-resize":null})})}function Fp(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(jp(Up(t,e,[[i,r],[i+o,r+a]])))}function Vp(t){return s({strokeNoScale:!0},t.brushStyle)}function Hp(t,e,n,i){var r=[cI(t,n),cI(e,i)],o=[dI(t,n),dI(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function Gp(t){return Jo(t.group)}function Wp(t,e){if(e.length>1){e=e.split("");var n=[Wp(t,e[0]),Wp(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}var i={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},n=ea(i[e],Gp(t));return r[n]}function Xp(t,e,n,i,r,o,a){var s=i.__brushOption,l=t(s.range),u=Zp(n,o,a);uI(r.split(""),function(t){var e=yI[t];l[e[0]][e[1]]+=u[e[0]]}),s.range=e(Hp(l[0][0],l[1][0],l[0][1],l[1][1])),Ap(n,i),Lp(n,{isEnd:!1})}function Yp(t,e,n,i){var r=e.__brushOption.range,o=Zp(t,n,i);uI(r,function(t){t[0]+=o[0],t[1]+=o[1]}),Ap(t,e),Lp(t,{isEnd:!1})}function Zp(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function Up(t,e,n){var r=Pp(t,e);return r&&r!==!0?r.clipPath(n,t._transform):i(n)}function jp(t){var e=cI(t[0][0],t[1][0]),n=cI(t[0][1],t[1][1]),i=dI(t[0][0],t[1][0]),r=dI(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function qp(t,e,n){if(t._brushType&&!eg(t,e)){var i=t._zr,r=t._covers,o=kp(t,e,n);if(!t._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===!0||s.panelId===o.panelId)&&SI[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}function $p(t){var e=t.event;e.preventDefault&&e.preventDefault()}function Kp(t,e,n){return t.childOfName("main").contain(e,n)}function Qp(t,e,n,r){var o,a=t._creatingCover,s=t._creatingPanel,l=t._brushOption;if(t._track.push(n.slice()),zp(t)||a){if(s&&!a){"single"===l.brushMode&&Op(t);var u=i(l);u.brushType=Jp(u.brushType,s),u.panelId=s===!0?null:s.panelId,a=t._creatingCover=Mp(t,u),t._covers.push(a)}if(a){var h=SI[Jp(t._brushType,s)],c=a.__brushOption;c.range=h.getCreatingRange(Up(t,a,t._track)),r&&(Cp(t,a),h.updateCommon(t,a)),Ip(t,a),o={isEnd:r}}}else r&&"single"===l.brushMode&&l.removeOnClick&&kp(t,e,n)&&Op(t)&&(o={isEnd:r,removeOnClick:!0});return o}function Jp(t,e){return"auto"===t?e.defaultBrushType:t}function tg(t,e){if(t._dragging){$p(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),o=Qp(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&Lp(t,o)}}function eg(t,e,n){var i=t._zr;return 0>e||e>i.getWidth()||0>n||n>i.getHeight()}function ng(t){return{createCover:function(e,n){return Bp(lI(Xp,function(e){var n=[e,[0,100]];return t&&n.reverse(),n},function(e){return e[t]}),e,n,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var n=Ep(e),i=cI(n[0][t],n[1][t]),r=dI(n[0][t],n[1][t]);return[i,r]},updateCoverShape:function(e,n,i,r){var o,a=Pp(e,n);if(a!==!0&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),Rp(e,n,l,r)},updateCommon:Np,contain:Kp}}function ig(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!MI[i.mainType]&&r&&r.model!==n}function rg(t){return t=sg(t),function(e){return ia(e,t)}}function og(t,e){return t=sg(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function ag(t,e,n){return t=sg(t),function(i,r){return t.contain(r[0],r[1])&&!ig(i,e,n)}}function sg(t){return Sn.create(t)}function lg(t,e,n){var i=this._targetInfoList=[],r={},o=hg(e,t);CI(PI,function(t,e){(!n||!n.include||II(n.include,e)>=0)&&t(o,i,r)})}function ug(t){return t[0]>t[1]&&t.reverse(),t}function hg(t,e){return ar(t,e,{includeMainTypes:DI})}function cg(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=ug(p([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t])):r.toGlobalCoord(r.dataToCoord(i[t]))})),a=[];return a[t]=o,a[1-t]=[0/0,0/0],{values:o,xyMinMax:a}}function dg(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function fg(t,e){var n=pg(t),i=pg(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function pg(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[0/0,0/0]}function gg(t,e){var n=xg(t);BI(e,function(e,i){for(var r=n.length-1;r>=0;r--){var o=n[r];if(o[i])break}if(0>r){var a=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}}),n.push(e)}function vg(t){var e=xg(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return BI(n,function(t,n){for(var r=e.length-1;r>=0;r--){var t=e[r][n];if(t){i[n]=t;break}}}),i}function mg(t){t[RI]=null}function yg(t){return xg(t).length}function xg(t){var e=t[RI];return e||(e=t[RI]=[{}]),e}function _g(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:0>n?1:e?-1:1}}function wg(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}function bg(t){return u(VI,t)>=0}function Sg(t,e){t=t.slice();var n=p(t,Ga);e=(e||[]).slice();var i=p(e,Ga);return function(r,o){f(t,function(t,a){for(var s={name:t,capital:n[a]},l=0;l<e.length;l++)s[e[l]]=t+i[l];r.call(o,s)})}}function Mg(t,e,n){function i(t,e){return u(e.nodes,t)>=0}function r(t,i){var r=!1;return e(function(e){f(n(t,e)||[],function(t){i.records[e.name][t]&&(r=!0)})}),r}function o(t,i){i.nodes.push(t),e(function(e){f(n(t,e)||[],function(t){i.records[e.name][t]=!0})})}return function(n){function a(t){!i(t,s)&&r(t,s)&&(o(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!n)return s;o(n,s);var l;do l=!1,t(a);while(l);return s}}function Cg(t,e,n){var i=[1/0,-1/0]; return GI(n,function(t){var n=t.getData();n&&GI(n.mapDimension(e,!0),function(t){var e=n.getApproximateExtent(t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])})}),i[1]<i[0]&&(i=[0/0,0/0]),Ig(t,i),i}function Ig(t,e){var n=t.getAxisModel(),i=n.getMin(!0),r="category"===n.get("type"),o=r&&n.getCategories().length;null!=i&&"dataMin"!==i&&"function"!=typeof i?e[0]=i:r&&(e[0]=o>0?0:0/0);var a=n.getMax(!0);return null!=a&&"dataMax"!==a&&"function"!=typeof a?e[1]=a:r&&(e[1]=o>0?o-1:0/0),n.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function Tg(t,e){var n=t.getAxisModel(),i=t._percentWindow,r=t._valueWindow;if(i){var o=Sa(r,[0,500]);o=Math.min(o,20);var a=e||0===i[0]&&100===i[1];n.setRange(a?null:+r[0].toFixed(o),a?null:+r[1].toFixed(o))}}function Ag(t){var e=t._minMaxSpan={},n=t._dataZoomModel,i=t._dataExtent;GI(["min","max"],function(r){var o=n.get(r+"Span"),a=n.get(r+"ValueSpan");null!=a&&(a=t.getAxisModel().axis.scale.parse(a)),null!=a?o=ma(i[0]+a,i,[0,100],!0):null!=o&&(a=ma(o,[0,100],i,!0)-i[0]),e[r+"Span"]=o,e[r+"ValueSpan"]=a})}function Dg(t){var e={};return YI(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}function kg(t,e){var n=t._rangePropMode,i=t.get("rangeMode");YI([["start","startValue"],["end","endValue"]],function(t,r){var o=null!=e[t[0]],a=null!=e[t[1]];o&&!a?n[r]="percent":!o&&a?n[r]="value":i?n[r]=i[r]:o&&(n[r]="percent")})}function Pg(t,e,n){(this._brushController=new xp(n.getZr())).on("brush",y(this._onBrush,this)).mount(),this._isZoomActive}function Og(t){var e={};return f(["xAxisIndex","yAxisIndex"],function(n){e[n]=t[n],null==e[n]&&(e[n]="all"),(e[n]===!1||"none"===e[n])&&(e[n]=[])}),e}function Lg(t,e){t.setIconStatus("back",yg(e)>1?"emphasis":"normal")}function zg(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key?i.dataZoomSelectActive:!1),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new lg(Og(t.option),e,{include:["grid"]});n._brushController.setPanels(a.makePanelOpts(r,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})).enableBrush(o?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}function Eg(t){this.model=t}var Bg=2311,Rg=function(){return Bg++},Ng={};Ng="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:e(navigator.userAgent);var Fg=Ng,Vg={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},Hg={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},Gg=Object.prototype.toString,Wg=Array.prototype,Xg=Wg.forEach,Yg=Wg.filter,Zg=Wg.slice,Ug=Wg.map,jg=Wg.reduce,qg={},$g=function(){return qg.createCanvas()};qg.createCanvas=function(){return document.createElement("canvas")};var Kg,Qg="__ec_primitive__";R.prototype={constructor:R,get:function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},set:function(t,e){return this.data[t]=e},each:function(t,e){void 0!==e&&(t=y(t,e));for(var n in this.data)this.data.hasOwnProperty(n)&&t(this.data[n],n)},removeKey:function(t){delete this.data[t]}};var Jg=(Object.freeze||Object)({$override:n,clone:i,merge:r,mergeAll:o,extend:a,defaults:s,createCanvas:$g,getContext:l,indexOf:u,inherits:h,mixin:c,isArrayLike:d,each:f,map:p,reduce:g,filter:v,find:m,bind:y,curry:x,isArray:_,isFunction:w,isString:b,isObject:S,isBuiltInObject:M,isTypedArray:C,isDom:I,eqNaN:T,retrieve:A,retrieve2:D,retrieve3:k,slice:P,normalizeCssArray:O,assert:L,trim:z,setAsPrimitive:E,isPrimitive:B,createHashMap:N,concatArray:F,noop:V}),tv="undefined"==typeof Float32Array?Array:Float32Array,ev=j,nv=q,iv=ee,rv=ne,ov=(Object.freeze||Object)({create:H,copy:G,clone:W,set:X,add:Y,scaleAndAdd:Z,sub:U,len:j,length:ev,lenSquare:q,lengthSquare:nv,mul:$,div:K,dot:Q,scale:J,normalize:te,distance:ee,dist:iv,distanceSquare:ne,distSquare:rv,negate:ie,lerp:re,applyTransform:oe,min:ae,max:se});le.prototype={constructor:le,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(ue(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.dispatchToElement(ue(e,t),"drag",t.event);var a=this.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.dispatchToElement(ue(s,t),"dragleave",t.event),a&&a!==s&&this.dispatchToElement(ue(a,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(ue(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(ue(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var av=Array.prototype.slice,sv=function(t){this._$handlers={},this._$eventProcessor=t};sv.prototype={constructor:sv,one:function(t,e,n,i){return ce(this,t,e,n,i,!0)},on:function(t,e,n,i){return ce(this,t,e,n,i,!1)},isSilent:function(t){var e=this._$handlers;return!e[t]||!e[t].length},off:function(t,e){var n=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;o>r;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},trigger:function(t){var e=this._$handlers[t],n=this._$eventProcessor;if(e){var i=arguments,r=i.length;r>3&&(i=av.call(i,1));for(var o=e.length,a=0;o>a;){var s=e[a];if(n&&n.filter&&null!=s.query&&!n.filter(t,s.query))a++;else{switch(r){case 1:s.h.call(s.ctx);break;case 2:s.h.call(s.ctx,i[1]);break;case 3:s.h.call(s.ctx,i[1],i[2]);break;default:s.h.apply(s.ctx,i)}s.one?(e.splice(a,1),o--):a++}}}return n&&n.afterTrigger&&n.afterTrigger(t),this},triggerWithContext:function(t){var e=this._$handlers[t],n=this._$eventProcessor;if(e){var i=arguments,r=i.length;r>4&&(i=av.call(i,1,i.length-1));for(var o=i[i.length-1],a=e.length,s=0;a>s;){var l=e[s];if(n&&n.filter&&null!=l.query&&!n.filter(t,l.query))s++;else{switch(r){case 1:l.h.call(o);break;case 2:l.h.call(o,i[1]);break;case 3:l.h.call(o,i[1],i[2]);break;default:l.h.apply(o,i)}l.one?(e.splice(s,1),a--):s++}}}return n&&n.afterTrigger&&n.afterTrigger(t),this}};var lv=Math.log(2),uv="undefined"!=typeof window&&!!window.addEventListener,hv=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cv="___zrEVENTSAVED",dv=[],fv=uv?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},pv=function(){this._track=[]};pv.prototype={constructor:pv,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;a>o;o++){var s=i[o],l=pe(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},_recognize:function(t){for(var e in gv)if(gv.hasOwnProperty(e)){var n=gv[e](this._track,t);if(n)return n}}};var gv={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=be(i)/be(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Se(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},vv="silent";Ie.prototype.dispose=function(){};var mv=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],yv=function(t,e,n,i){sv.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new Ie,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,le.call(this),this.setHandlerProxy(n)};yv.prototype={constructor:yv,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(f(mv,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,n=t.zrY,i=Ae(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?{x:e,y:n}:this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},mouseout:function(t){var e=t.zrEventControl,n=t.zrIsToLocalDOM;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&!n&&this.trigger("globalout",{type:"globalout",event:t})},resize:function(){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){for(var r="on"+e,o=Me(e,t,n);i&&(i[r]&&(o.cancelBubble=i[r].call(i,o)),i.trigger(e,o),i=i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),r={x:t,y:e},o=i.length-1;o>=0;o--){var a;if(i[o]!==n&&!i[o].ignore&&(a=Te(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==vv)){r.target=i[o];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new pv);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r,this.dispatchToElement({target:i.target},r,i.event)}}},f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){yv.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Ae(this,r,o);if("mouseup"===t&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||iv(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}),c(yv,sv),c(yv,le);var xv="undefined"==typeof Float32Array?Array:Float32Array,_v=(Object.freeze||Object)({create:De,identity:ke,copy:Pe,mul:Oe,translate:Le,rotate:ze,scale:Ee,invert:Be,clone:Re}),wv=ke,bv=5e-5,Sv=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},Mv=Sv.prototype;Mv.transform=null,Mv.needLocalTransform=function(){return Ne(this.rotation)||Ne(this.position[0])||Ne(this.position[1])||Ne(this.scale[0]-1)||Ne(this.scale[1]-1)};var Cv=[];Mv.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;if(!n&&!e)return void(i&&wv(i));i=i||De(),n?this.getLocalTransform(i):wv(i),e&&(n?Oe(i,t.transform,i):Pe(i,t.transform)),this.transform=i;var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(Cv);var o=Cv[0]<0?-1:1,a=Cv[1]<0?-1:1,s=((Cv[0]-o)*r+o)/Cv[0]||0,l=((Cv[1]-a)*r+a)/Cv[1]||0;i[0]*=s,i[1]*=s,i[2]*=l,i[3]*=l}this.invTransform=this.invTransform||De(),Be(this.invTransform,i)},Mv.getLocalTransform=function(t){return Sv.getLocalTransform(this,t)},Mv.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},Mv.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var Iv=[],Tv=De();Mv.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=this.position,r=this.scale;Ne(e-1)&&(e=Math.sqrt(e)),Ne(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),i[0]=t[4],i[1]=t[5],r[0]=e,r[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/e)}},Mv.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Oe(Iv,t.invTransform,e),e=Iv);var n=this.origin;n&&(n[0]||n[1])&&(Tv[4]=n[0],Tv[5]=n[1],Oe(Iv,e,Tv),Iv[4]-=n[0],Iv[5]-=n[1],e=Iv),this.setLocalTransform(e)}},Mv.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},Mv.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&oe(n,n,i),n},Mv.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&oe(n,n,i),n},Sv.getLocalTransform=function(t,e){e=e||[],wv(e);var n=t.origin,i=t.scale||[1,1],r=t.rotation||0,o=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),Ee(e,e,i),r&&ze(e,e,r),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=o[0],e[5]+=o[1],e};var Av={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Av.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*Av.bounceIn(2*t):.5*Av.bounceOut(2*t-1)+.5}};Fe.prototype={constructor:Fe,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)return void(this._pausedTime+=e);var n=(t-this._startTime-this._pausedTime)/this._life;if(!(0>n)){n=Math.min(n,1);var i=this.easing,r="string"==typeof i?Av[i]:i,o="function"==typeof r?r(n):n;return this.fire("frame",o),1===n?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var Dv=function(){this.head=null,this.tail=null,this._len=0},kv=Dv.prototype;kv.insert=function(t){var e=new Pv(t);return this.insertEntry(e),e},kv.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},kv.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},kv.len=function(){return this._len},kv.clear=function(){this.head=this.tail=null,this._len=0};var Pv=function(t){this.value=t,this.next,this.prev},Ov=function(t){this._list=new Dv,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},Lv=Ov.prototype;Lv.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Pv(e),a.key=t,n.insertEntry(a),i[t]=a}return r},Lv.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},Lv.clear=function(){this._list.clear(),this._map={}};var zv={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]},Ev=new Ov(20),Bv=null,Rv=en,Nv=nn,Fv=(Object.freeze||Object)({parse:$e,lift:Je,toHex:tn,fastLerp:en,fastMapToColor:Rv,lerp:nn,mapToColor:Nv,modifyHSL:rn,modifyAlpha:on,stringify:an}),Vv=Array.prototype.slice,Hv=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||sn,this._setter=i||ln,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};Hv.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:vn(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,n=0;e>n;n++)t[n].call(this)},start:function(t,e){var n,i=this,r=0,o=function(){r--,r||i._doneCallback()};for(var a in this._tracks)if(this._tracks.hasOwnProperty(a)){var s=xn(this,t,o,this._tracks[a],a,e);s&&(this._clipList.push(s),r++,this.animation&&this.animation.addClip(s),n=s)}if(n){var l=n.onframe;n.onframe=function(t,e){l(t,e);for(var n=0;n<i._onframeList.length;n++)i._onframeList[n](t,e)}}return r||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,n=this.animation,i=0;i<e.length;i++){var r=e[i];t&&r.onframe(this._target,1),n&&n.removeClip(r)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}};var Gv=1;"undefined"!=typeof window&&(Gv=Math.max(window.devicePixelRatio||1,1));var Wv=0,Xv=Gv,Yv=function(){};1===Wv&&(Yv=console.error);var Zv=Yv,Uv=function(){this.animators=[]};Uv.prototype={constructor:Uv,animate:function(t,e){var n,i=!1,r=this,o=this.__zr;if(t){var a=t.split("."),s=r;i="shape"===a[0];for(var l=0,h=a.length;h>l;l++)s&&(s=s[a[l]]);s&&(n=s)}else n=r;if(!n)return void Zv('Property "'+t+'" is not existed in element '+r.id);var c=r.animators,d=new Hv(n,e);return d.during(function(){r.dirty(i)}).done(function(){c.splice(u(c,d),1)}),c.push(d),o&&o.animation.addAnimator(d),d},stopAnimation:function(t){for(var e=this.animators,n=e.length,i=0;n>i;i++)e[i].stop(t);return e.length=0,this},animateTo:function(t,e,n,i,r,o){_n(this,t,e,n,i,r,o)},animateFrom:function(t,e,n,i,r,o){_n(this,t,e,n,i,r,o,!0)}};var jv=function(t){Sv.call(this,t),sv.call(this,t),Uv.call(this,t),this.id=t.id||Rg()};jv.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(S(t))for(var n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},c(jv,Uv),c(jv,Sv),c(jv,sv);var qv=oe,$v=Math.min,Kv=Math.max;Sn.prototype={constructor:Sn,union:function(t){var e=$v(t.x,this.x),n=$v(t.y,this.y);this.width=Kv(t.x+t.width,this.x+this.width)-e,this.height=Kv(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:function(){var t=[],e=[],n=[],i=[];return function(r){if(r){t[0]=n[0]=this.x,t[1]=i[1]=this.y,e[0]=i[0]=this.x+this.width,e[1]=n[1]=this.y+this.height,qv(t,t,r),qv(e,e,r),qv(n,n,r),qv(i,i,r),this.x=$v(t[0],e[0],n[0],i[0]),this.y=$v(t[1],e[1],n[1],i[1]);var o=Kv(t[0],e[0],n[0],i[0]),a=Kv(t[1],e[1],n[1],i[1]);this.width=o-this.x,this.height=a-this.y}}}(),calculateTransform:function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=De();return Le(r,r,[-e.x,-e.y]),Ee(r,r,[n,i]),Le(r,r,[t.x,t.y]),r},intersect:function(t){if(!t)return!1;t instanceof Sn||(t=Sn.create(t));var e=this,n=e.x,i=e.x+e.width,r=e.y,o=e.y+e.height,a=t.x,s=t.x+t.width,l=t.y,u=t.y+t.height;return!(a>i||n>s||l>o||r>u)},contain:function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new Sn(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},Sn.create=function(t){return new Sn(t.x,t.y,t.width,t.height)};var Qv=function(t){t=t||{},jv.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};Qv.prototype={constructor:Qv,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof Qv&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,i=this._children,r=u(i,t);return 0>r?this:(i.splice(r,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof Qv&&t.delChildrenFromStorage(n)),e&&e.refresh(),this)},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e<n.length;e++)t=n[e],i&&(i.delFromStorage(t),t instanceof Qv&&t.delChildrenFromStorage(i)),t.parent=null;return n.length=0,this},eachChild:function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},traverse:function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n];t.call(e,i),"group"===i.type&&i.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.addToStorage(n),n instanceof Qv&&n.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.delFromStorage(n),n instanceof Qv&&n.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,n=new Sn(0,0,0,0),i=t||this._children,r=[],o=0;o<i.length;o++){var a=i[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(n.copy(s),n.applyTransform(l),e=e||n.clone(),e.union(n)):(e=e||s.clone(),e.union(s))}}return e||n}},h(Qv,jv);var Jv=32,tm=7,em=function(){this._roots=[],this._displayList=[],this._displayListLen=0};em.prototype={constructor:em,traverse:function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;r>i;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Fg.canvasSupported&&Pn(n,On)},_updateAndAddDisplayable:function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var i=t.clipPath;if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.clipPath}if(t.isGroup){for(var a=t._children,s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,n)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof Qv&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots.length;e++){var n=this._roots[e];n instanceof Qv&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,i=t.length;i>e;e++)this.delRoot(t[e]);else{var r=u(this._roots,t);r>=0&&(this.delFromStorage(t),this._roots.splice(r,1),t instanceof Qv&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:On};var nm={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1},im=function(t,e,n){return nm.hasOwnProperty(e)?n*=t.dpr:n},rm={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},om=9,am=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],sm=function(t){this.extendFrom(t,!1)};sm.prototype={constructor:sm,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,n){var i=this,r=n&&n.style,o=!r||t.__attrCachedBy!==rm.STYLE_BIND; t.__attrCachedBy=rm.STYLE_BIND;for(var a=0;a<am.length;a++){var s=am[a],l=s[0];(o||i[l]!==r[l])&&(t[l]=im(t,l,i[l]||s[1]))}if((o||i.fill!==r.fill)&&(t.fillStyle=i.fill),(o||i.stroke!==r.stroke)&&(t.strokeStyle=i.stroke),(o||i.opacity!==r.opacity)&&(t.globalAlpha=null==i.opacity?1:i.opacity),(o||i.blend!==r.blend)&&(t.globalCompositeOperation=i.blend||"source-over"),this.hasStroke()){var u=i.lineWidth;t.lineWidth=u/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||e!==!0&&(e===!1?this.hasOwnProperty(n):null==t[n])||(this[n]=t[n])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var i="radial"===e.type?zn:Ln,r=i(t,e,n),o=e.colorStops,a=0;a<o.length;a++)r.addColorStop(o[a].offset,o[a].color);return r}};for(var lm=sm.prototype,um=0;um<am.length;um++){var hm=am[um];hm[0]in lm||(lm[hm[0]]=hm[1])}sm.getGradient=lm.getGradient;var cm=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};cm.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var dm=function(t,e,n){var i;n=n||Xv,"string"==typeof t?i=Bn(t,e,n):S(t)&&(i=t,t=i.id),this.id=t,this.dom=i;var r=i.style;r&&(i.onselectstart=En,r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",r["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",r.padding=0,r.margin=0,r["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};dm.prototype={constructor:dm,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=Bn("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(t,e){var n=this.dom,i=this.ctx,r=n.width,o=n.height,e=e||this.clearColor,a=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;if(a&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,r/l,o/l)),i.clearRect(0,0,r,o),e&&"transparent"!==e){var u;e.colorStops?(u=e.__canvasGradient||sm.getGradient(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=u):e.image&&(u=cm.prototype.getCanvasPattern.call(e,i)),i.save(),i.fillStyle=u||e,i.fillRect(0,0,r,o),i.restore()}if(a){var h=this.domBack;i.save(),i.globalAlpha=s,i.drawImage(h,0,0,r,o),i.restore()}}};var fm="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},pm=new Ov(50),gm={},vm=0,mm=5e3,ym=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,xm="12px sans-serif",_m={};_m.measureText=function(t,e){var n=l();return n.font=e||xm,n.measureText(t)};var wm=xm,bm={left:1,right:1,center:1},Sm={top:1,bottom:1,middle:1},Mm=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],Cm={},Im={},Tm=new Sn,Am=function(){};Am.prototype={constructor:Am,drawRectText:function(t,e){var n=this.style;e=n.textRect||e,this.__dirty&&oi(n,!0);var i=n.text;if(null!=i&&(i+=""),bi(i,n)){t.save();var r=this.transform;n.transformText?this.setTransform(t):r&&(Tm.copy(e),Tm.applyTransform(r),e=Tm),si(this,t,i,n,e,om),t.restore()}}},Si.prototype={constructor:Si,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return i.contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?jv.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new sm(t,this),this.dirty(!1),this},calculateTextPosition:null},h(Si,jv),c(Si,Am),Mi.prototype={constructor:Mi,type:"image",brush:function(t,e){var n=this.style,i=n.image;n.bind(t,this,e);var r=this._image=Nn(i,this._image,this,this.onload);if(r&&Vn(r)){var o=n.x||0,a=n.y||0,s=n.width,l=n.height,u=r.width/r.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=r.width,l=r.height),this.setTransform(t),n.sWidth&&n.sHeight){var h=n.sx||0,c=n.sy||0;t.drawImage(r,h,c,n.sWidth,n.sHeight,o,a,s,l)}else if(n.sx&&n.sy){var h=n.sx,c=n.sy,d=s-h,f=l-c;t.drawImage(r,h,c,d,f,o,a,s,l)}else t.drawImage(r,o,a,s,l);null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new Sn(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},h(Mi,Si);var Dm=1e5,km=314159,Pm=.01,Om=.001,Lm=new Sn(0,0,0,0),zm=new Sn(0,0,0,0),Em=function(t,e,n){this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=a({},n||{}),this.dpr=n.devicePixelRatio||Xv,this._singleCanvas=i,this.root=t;var r=t.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var o=this._zlevelList=[],s=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,i){var l=t.width,u=t.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,t.width=l*this.dpr,t.height=u*this.dpr,this._width=l,this._height=u;var h=new dm(t,this,this.dpr);h.__builtin__=!0,h.initContext(),s[km]=h,h.zlevel=km,o.push(km),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var c=this._domRoot=ki(this._width,this._height);t.appendChild(c)}this._hoverlayer=null,this._hoverElements=[]};Em.prototype={constructor:Em,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var i=0;i<n.length;i++){var r=n[i],o=this._layers[r];if(!o.__builtin__&&o.refresh){var a=0===i?this._backgroundColor:null;o.refresh(a)}}return this.refreshHover(),this},addHover:function(t,e){if(!t.__hoverMir){var n=new t.constructor({style:t.style,shape:t.shape,z:t.z,z2:t.z2,silent:t.silent});return n.__from=t,t.__hoverMir=n,e&&n.setStyle(e),this._hoverElements.push(n),n}},removeHover:function(t){var e=t.__hoverMir,n=this._hoverElements,i=u(n,e);i>=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;e<t.length;e++){var n=t[e].__from;n&&(n.__hoverMir=null)}t.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){Pn(t,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(Dm));var i={};n.ctx.save();for(var r=0;e>r;){var o=t[r],a=o.__from;a&&a.__zr?(r++,a.invisible||(o.transform=a.transform,o.invTransform=a.invTransform,o.__clipPaths=a.__clipPaths,this._doPaintEl(o,n,!0,i))):(t.splice(r,1),a.__hoverMir=null,e--)}n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(Dm)},_paintList:function(t,e,n){if(this._redrawId===n){e=e||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),!i){var r=this;fm(function(){r._paintList(t,e,n)})}}},_compositeManually:function(){var t=this.getLayer(km).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},_doPaintList:function(t,e){for(var n=[],i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i],o=this._layers[r];o.__builtin__&&o!==this._hoverlayer&&(o.__dirty||e)&&n.push(o)}for(var a=!0,s=0;s<n.length;s++){var o=n[s],l=o.ctx,u={};l.save();var h=e?o.__startIndex:o.__drawIndex,c=!e&&o.incremental&&Date.now,d=c&&Date.now(),p=o.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(o.__startIndex===o.__endIndex)o.clear(!1,p);else if(h===o.__startIndex){var g=t[h];g.incremental&&g.notClear&&!e||o.clear(!1,p)}-1===h&&(console.error("For some unknown reason. drawIndex is -1"),h=o.__startIndex);for(var v=h;v<o.__endIndex;v++){var m=t[v];if(this._doPaintEl(m,o,e,u),m.__dirty=m.__dirtyText=!1,c){var y=Date.now()-d;if(y>15)break}}o.__drawIndex=v,o.__drawIndex<o.__endIndex&&(a=!1),u.prevElClipPaths&&l.restore(),l.restore()}return Fg.wxa&&f(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),a},_doPaintEl:function(t,e,n,i){var r=e.ctx,o=t.transform;if(!(!e.__dirty&&!n||t.invisible||0===t.style.opacity||o&&!o[0]&&!o[3]||t.culling&&Ti(t,this._width,this._height))){var a=t.__clipPaths,s=i.prevElClipPaths;(!s||Ai(a,s))&&(s&&(r.restore(),i.prevElClipPaths=null,i.prevEl=null),a&&(r.save(),Di(a,r),i.prevElClipPaths=a)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,i.prevEl||null),i.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=km);var n=this._layers[t];return n||(n=new dm("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]&&r(n,this._layerConfig[t],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},insertLayer:function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=null,a=-1,s=this._domRoot;if(n[t])return void Zv("ZLevel "+t+" has been used already");if(!Ii(e))return void Zv("Layer of zlevel "+t+" is not valid");if(r>0&&t>i[0]){for(a=0;r-1>a&&!(i[a]<t&&i[a+1]>t);a++);o=n[i[a]]}if(i.splice(a+1,0,t),n[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i<r.length;i++)n=r[i],t.call(e,this._layers[n],n)},eachBuiltinLayer:function(t,e){var n,i,r,o=this._zlevelList;for(r=0;r<o.length;r++)i=o[r],n=this._layers[i],n.__builtin__&&t.call(e,n,i)},eachOtherLayer:function(t,e){var n,i,r,o=this._zlevelList;for(r=0;r<o.length;r++)i=o[r],n=this._layers[i],n.__builtin__||t.call(e,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer(function(t){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}for(var r=null,o=0,n=0;n<t.length;n++){var a,i=t[n],s=i.zlevel;i.incremental?(a=this.getLayer(s+Om,this._needsManuallyCompositing),a.incremental=!0,o=1):a=this.getLayer(s+(o>0?Pm:0),this._needsManuallyCompositing),a.__builtin__||Zv("ZLevel "+s+" has been used by unkown layer "+a.id),a!==r&&(a.__used=!0,a.__startIndex!==n&&(a.__dirty=!0),a.__startIndex=n,a.__drawIndex=a.incremental?-1:n,e(n),r=a),i.__dirty&&(a.__dirty=!0,a.incremental&&a.__drawIndex<0&&(a.__drawIndex=n))}e(n),this.eachBuiltinLayer(function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?r(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===t||o===t+Pm){var a=this._layers[o];r(a,n[t],!0)}}}},delLayer:function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(u(n,t),1))},resize:function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var r in this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);f(this._progressiveLayers,function(n){n.resize(t,e)}),this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(km).resize(t,e)}return this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[km].dom;var e=new dm("image",this,t.pixelRatio||this.dpr);if(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,i=e.dom.height,r=e.ctx;this.eachLayer(function(t){t.__builtin__?r.drawImage(t.dom,0,0,n,i):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())})}else for(var o={},a=this.storage.getDisplayList(!0),s=0;s<a.length;s++){var l=a[s];this._doPaintEl(l,e,!0,o)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||Ci(s[n])||Ci(a.style[n]))-(Ci(s[r])||0)-(Ci(s[o])||0)|0},pathToImage:function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),r=t.getBoundingRect(),o=t.style,a=o.shadowBlur*e,s=o.shadowOffsetX*e,l=o.shadowOffsetY*e,u=o.hasStroke()?o.lineWidth:0,h=Math.max(u/2,-s+a),c=Math.max(u/2,s+a),d=Math.max(u/2,-l+a),f=Math.max(u/2,l+a),p=r.width+h+c,g=r.height+d+f;n.width=p*e,n.height=g*e,i.scale(e,e),i.clearRect(0,0,p,g),i.dpr=e;var v={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[h-r.x,d-r.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(i);var m=Mi,y=new m({style:{x:0,y:0,image:n}});return null!=v.position&&(y.position=t.position=v.position),null!=v.rotation&&(y.rotation=t.rotation=v.rotation),null!=v.scale&&(y.scale=t.scale=v.scale),y}};var Bm=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,sv.call(this)};Bm.prototype={constructor:Bm,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),n=0;n<e.length;n++)this.addClip(e[n])},removeClip:function(t){var e=u(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n<e.length;n++)this.removeClip(e[n]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,n=this._clips,i=n.length,r=[],o=[],a=0;i>a;a++){var s=n[a],l=s.step(t,e);l&&(r.push(l),o.push(s))}for(var a=0;i>a;)n[a]._needsRemove?(n[a]=n[i-1],n.pop(),i--):a++;i=r.length;for(var a=0;i>a;a++)o[a].fire(r[a]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){function t(){e._running&&(fm(t),!e._paused&&e._update())}var e=this;this._running=!0,fm(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(t,e){e=e||{};var n=new Hv(t,e.loop,e.getter,e.setter);return this.addAnimator(n),n}},c(Bm,sv);var Rm=300,Nm=Fg.domSupported,Fm=function(){var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=p(t,function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t});return{mouse:t,touch:e,pointer:i}}(),Vm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Hm=Ri.prototype;Hm.stopPropagation=Hm.stopImmediatePropagation=Hm.preventDefault=V;var Gm={mousedown:function(t){t=xe(this.dom,t),this._mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=xe(this.dom,t);var e=this._mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||Gi(this,!0),this.trigger("mousemove",t)},mouseup:function(t){t=xe(this.dom,t),Gi(this,!1),this.trigger("mouseup",t)},mouseout:function(t){t=xe(this.dom,t),this._pointerCapturing&&(t.zrEventControl="no_globalout");var e=t.toElement||t.relatedTarget;t.zrIsToLocalDOM=Bi(this,e),this.trigger("mouseout",t)},touchstart:function(t){t=xe(this.dom,t),zi(t),this._lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Gm.mousemove.call(this,t),Gm.mousedown.call(this,t)},touchmove:function(t){t=xe(this.dom,t),zi(t),this.handler.processGesture(t,"change"),Gm.mousemove.call(this,t)},touchend:function(t){t=xe(this.dom,t),zi(t),this.handler.processGesture(t,"end"),Gm.mouseup.call(this,t),+new Date-this._lastTouchMoment<Rm&&Gm.click.call(this,t)},pointerdown:function(t){Gm.mousedown.call(this,t)},pointermove:function(t){Oi(t)||Gm.mousemove.call(this,t)},pointerup:function(t){Gm.mouseup.call(this,t)},pointerout:function(t){Oi(t)||Gm.mouseout.call(this,t)}};f(["click","mousewheel","dblclick","contextmenu"],function(t){Gm[t]=function(e){e=xe(this.dom,e),this.trigger(t,e)}});var Wm={pointermove:function(t){Oi(t)||Wm.mousemove.call(this,t)},pointerup:function(t){Wm.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this._pointerCapturing;Gi(this,!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}},Xm=Xi.prototype;Xm.dispose=function(){Hi(this._localHandlerScope),Nm&&Hi(this._globalHandlerScope)},Xm.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},c(Xi,sv);var Ym=!Fg.canvasSupported,Zm={canvas:Em},Um={},jm="4.2.0",qm=function(t,e,n){n=n||{},this.dom=e,this.id=t;var i=this,r=new em,o=n.renderer;if(Ym){if(!Zm.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");o="vml"}else o&&Zm[o]||(o="canvas");var a=new Zm[o](e,r,n,t);this.storage=r,this.painter=a;var s=Fg.node||Fg.worker?null:new Xi(a.getViewportRoot(),a.root);this.handler=new yv(r,a,s,a.root),this.animation=new Bm({stage:{update:y(this.flush,this)}}),this.animation.start(),this._needsRefresh;var l=r.delFromStorage,u=r.addToStorage;r.delFromStorage=function(t){l.call(r,t),t&&t.removeSelfFromZr(i)},r.addToStorage=function(t){u.call(r,t),t.addSelfToZr(i)}};qm.prototype={constructor:qm,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,e){if(this.painter.addHover){var n=this.painter.addHover(t,e);return this.refreshHover(),n}},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,qi(this.id)}};var $m=(Object.freeze||Object)({version:jm,init:Yi,dispose:Zi,getInstance:Ui,registerPainter:ji}),Km=f,Qm=S,Jm=_,ty="series\x00",ey=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],ny=0,iy=".",ry="___EC__COMPONENT__CONTAINER___",oy=0,ay=function(t){for(var e=0;e<t.length;e++)t[e][1]||(t[e][1]=t[e][0]);return function(e,n,i){for(var r={},o=0;o<t.length;o++){var a=t[o][1];if(!(n&&u(n,a)>=0||i&&u(i,a)<0)){var s=e.getShallow(a);null!=s&&(r[t[o][0]]=s)}}return r}},sy=ay([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),ly={getLineStyle:function(t){var e=sy(this,t);return e.lineDash=this.getLineDash(e.lineWidth),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"===e||null==e?!1:"dashed"===e?[i,i]:[n,n]}},uy=ay([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),hy={getAreaStyle:function(t,e){return uy(this,t,e)}},cy=Math.pow,dy=Math.sqrt,fy=1e-8,py=1e-4,gy=dy(3),vy=1/3,my=H(),yy=H(),xy=H(),_y=Math.min,wy=Math.max,by=Math.sin,Sy=Math.cos,My=2*Math.PI,Cy=H(),Iy=H(),Ty=H(),Ay=[],Dy=[],ky={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Py=[],Oy=[],Ly=[],zy=[],Ey=Math.min,By=Math.max,Ry=Math.cos,Ny=Math.sin,Fy=Math.sqrt,Vy=Math.abs,Hy="undefined"!=typeof Float32Array,Gy=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};Gy.prototype={constructor:Gy,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e,n){n=n||0,this._ux=Vy(n/Xv/t)||0,this._uy=Vy(n/Xv/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(ky.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var n=Vy(t-this._xi)>this._ux||Vy(e-this._yi)>this._uy||this._len<5;return this.addData(ky.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,o){return this.addData(ky.C,t,e,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,n,i){return this.addData(ky.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,o){return this.addData(ky.A,t,e,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Ry(r)*n+t,this._yi=Ny(r)*n+e,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(ky.R,t,e,n,i),this},closePath:function(){this.addData(ky.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length===e||!Hy||(this.data=new Float32Array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;e>r;r++)n+=t[r].len();Hy&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;e>r;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var n=0;n<arguments.length;n++)e[this._len++]=arguments[n];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var n,i,r=this._dashSum,o=this._dashOffset,a=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,h=t-l,c=e-u,d=Fy(h*h+c*c),f=l,p=u,g=a.length;for(h/=d,c/=d,0>o&&(o=r+o),o%=r,f-=o*h,p-=o*c;h>0&&t>=f||0>h&&f>=t||0===h&&(c>0&&e>=p||0>c&&p>=e);)i=this._dashIdx,n=a[i],f+=h*n,p+=c*n,this._dashIdx=(i+1)%g,h>0&&l>f||0>h&&f>l||c>0&&u>p||0>c&&p>u||s[i%2?"moveTo":"lineTo"](h>=0?Ey(f,t):By(f,t),c>=0?Ey(p,e):By(p,e));h=f-t,c=p-e,this._dashOffset=-Fy(h*h+c*c)},_dashedBezierTo:function(t,e,n,i,r,o){var a,s,l,u,h,c=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,v=this._yi,m=_r,y=0,x=this._dashIdx,_=f.length,w=0;for(0>d&&(d=c+d),d%=c,a=0;1>a;a+=.1)s=m(g,t,n,r,a+.1)-m(g,t,n,r,a),l=m(v,e,i,o,a+.1)-m(v,e,i,o,a),y+=Fy(s*s+l*l);for(;_>x&&(w+=f[x],!(w>d));x++);for(a=(w-d)/y;1>=a;)u=m(g,t,n,r,a),h=m(v,e,i,o,a),x%2?p.moveTo(u,h):p.lineTo(u,h),a+=f[x]/y,x=(x+1)%_;x%2!==0&&p.lineTo(r,o),s=r-u,l=o-h,this._dashOffset=-Fy(s*s+l*l)},_dashedQuadraticTo:function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,Hy&&(this.data=new Float32Array(t)))},getBoundingRect:function(){Py[0]=Py[1]=Ly[0]=Ly[1]=Number.MAX_VALUE,Oy[0]=Oy[1]=zy[0]=zy[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,r=0,o=0;o<t.length;){var a=t[o++];switch(1===o&&(e=t[o],n=t[o+1],i=e,r=n),a){case ky.M:i=t[o++],r=t[o++],e=i,n=r,Ly[0]=i,Ly[1]=r,zy[0]=i,zy[1]=r;break;case ky.L:Lr(e,n,t[o],t[o+1],Ly,zy),e=t[o++],n=t[o++];break;case ky.C:zr(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ly,zy),e=t[o++],n=t[o++];break;case ky.Q:Er(e,n,t[o++],t[o++],t[o],t[o+1],Ly,zy),e=t[o++],n=t[o++];break;case ky.A:var s=t[o++],l=t[o++],u=t[o++],h=t[o++],c=t[o++],d=t[o++]+c;o+=1;var f=1-t[o++];1===o&&(i=Ry(c)*u+s,r=Ny(c)*h+l),Br(s,l,u,h,c,d,f,Ly,zy),e=Ry(d)*u+s,n=Ny(d)*h+l;break;case ky.R:i=e=t[o++],r=n=t[o++];var p=t[o++],g=t[o++];Lr(i,r,i+p,r+g,Ly,zy);break;case ky.Z:e=i,n=r}ae(Py,Py,Ly),se(Oy,Oy,zy)}return 0===o&&(Py[0]=Py[1]=Oy[0]=Oy[1]=0),new Sn(Py[0],Py[1],Oy[0]-Py[0],Oy[1]-Py[1])},rebuildPath:function(t){for(var e,n,i,r,o,a,s=this.data,l=this._ux,u=this._uy,h=this._len,c=0;h>c;){var d=s[c++];switch(1===c&&(i=s[c],r=s[c+1],e=i,n=r),d){case ky.M:e=i=s[c++],n=r=s[c++],t.moveTo(i,r);break;case ky.L:o=s[c++],a=s[c++],(Vy(o-i)>l||Vy(a-r)>u||c===h-1)&&(t.lineTo(o,a),i=o,r=a);break;case ky.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case ky.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case ky.A:var f=s[c++],p=s[c++],g=s[c++],v=s[c++],m=s[c++],y=s[c++],x=s[c++],_=s[c++],w=g>v?g:v,b=g>v?1:g/v,S=g>v?v/g:1,M=Math.abs(g-v)>.001,C=m+y;M?(t.translate(f,p),t.rotate(x),t.scale(b,S),t.arc(0,0,w,m,C,1-_),t.scale(1/b,1/S),t.rotate(-x),t.translate(-f,-p)):t.arc(f,p,w,m,C,1-_),1===c&&(e=Ry(m)*g+f,n=Ny(m)*v+p),i=Ry(C)*g+f,r=Ny(C)*v+p;break;case ky.R:e=i=s[c],n=r=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case ky.Z:t.closePath(),i=e,r=n}}}},Gy.CMD=ky;var Wy=2*Math.PI,Xy=2*Math.PI,Yy=Gy.CMD,Zy=2*Math.PI,Uy=1e-4,jy=[-1,-1,-1],qy=[-1,-1],$y=cm.prototype.getCanvasPattern,Ky=Math.abs,Qy=new Gy(!0);Kr.prototype={constructor:Kr,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,e){var n=this.style,i=this.path||Qy,r=n.hasStroke(),o=n.hasFill(),a=n.fill,s=n.stroke,l=o&&!!a.colorStops,u=r&&!!s.colorStops,h=o&&!!a.image,c=r&&!!s.image;if(n.bind(t,this,e),this.setTransform(t),this.__dirty){var d;l&&(d=d||this.getBoundingRect(),this._fillGradient=n.getGradient(t,a,d)),u&&(d=d||this.getBoundingRect(),this._strokeGradient=n.getGradient(t,s,d))}l?t.fillStyle=this._fillGradient:h&&(t.fillStyle=$y.call(a,t)),u?t.strokeStyle=this._strokeGradient:c&&(t.strokeStyle=$y.call(s,t));var f=n.lineDash,p=n.lineDashOffset,g=!!t.setLineDash,v=this.getGlobalScale();if(i.setScale(v[0],v[1],this.segmentIgnoreThreshold),this.__dirtyPath||f&&!g&&r?(i.beginPath(t),f&&!g&&(i.setLineDash(f),i.setLineDashOffset(p)),this.buildPath(i,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),o)if(null!=n.fillOpacity){var m=t.globalAlpha;t.globalAlpha=n.fillOpacity*n.opacity,i.fill(t),t.globalAlpha=m}else i.fill(t);if(f&&g&&(t.setLineDash(f),t.lineDashOffset=p),r)if(null!=n.strokeOpacity){var m=t.globalAlpha;t.globalAlpha=n.strokeOpacity*n.opacity,i.stroke(t),t.globalAlpha=m}else i.stroke(t);f&&g&&t.setLineDash([]),null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(){},createPathProxy:function(){this.path=new Gy},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;i||(i=this.path=new Gy),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),t=i.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){r.copy(t);var o=e.lineWidth,a=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),a>1e-10&&(r.width+=o/a,r.height+=o/a,r.x-=o/a/2,r.y-=o/a/2)}return r}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path.data;if(r.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(r.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),$r(o,a/s,t,e)))return!0 }if(r.hasFill())return qr(o,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):Si.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(S(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&Ky(t[0]-1)>1e-10&&Ky(t[3]-1)>1e-10?Math.sqrt(Ky(t[0]*t[3]-t[2]*t[1])):1}},Kr.extend=function(t){var e=function(e){Kr.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};h(e,Kr);for(var n in t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},h(Kr,Si);var Jy=Gy.CMD,tx=[[],[],[]],ex=Math.sqrt,nx=Math.atan2,ix=function(t,e){var n,i,r,o,a,s,l=t.data,u=Jy.M,h=Jy.C,c=Jy.L,d=Jy.R,f=Jy.A,p=Jy.Q;for(r=0,o=0;r<l.length;){switch(n=l[r++],o=r,i=0,n){case u:i=1;break;case c:i=1;break;case h:i=3;break;case p:i=2;break;case f:var g=e[4],v=e[5],m=ex(e[0]*e[0]+e[1]*e[1]),y=ex(e[2]*e[2]+e[3]*e[3]),x=nx(-e[1]/y,e[0]/m);l[r]*=m,l[r++]+=g,l[r]*=y,l[r++]+=v,l[r++]*=m,l[r++]*=y,l[r++]+=x,l[r++]+=x,r+=2,o=r;break;case d:s[0]=l[r++],s[1]=l[r++],oe(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],oe(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;i>a;a++){var s=tx[a];s[0]=l[r++],s[1]=l[r++],oe(s,s,e),l[o++]=s[0],l[o++]=s[1]}}},rx=Math.sqrt,ox=Math.sin,ax=Math.cos,sx=Math.PI,lx=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},ux=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(lx(t)*lx(e))},hx=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ux(t,e))},cx=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,dx=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,fx=function(t){Si.call(this,t)};fx.prototype={constructor:fx,type:"text",brush:function(t,e){var n=this.style;this.__dirty&&oi(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var i=n.text;return null!=i&&(i+=""),bi(i,n)?(this.setTransform(t),si(this,t,i,n,null,e),void this.restoreTransform(t)):void(t.__attrCachedBy=rm.NONE)},getBoundingRect:function(){var t=this.style;if(this.__dirty&&oi(t,!0),!this._rect){var e=t.text;null!=e?e+="":e="";var n=Gn(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich);if(n.x+=t.x||0,n.y+=t.y||0,yi(t.textStroke,t.textStrokeWidth)){var i=t.textStrokeWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect}},h(fx,Si);var px=Kr.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}}),gx=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]],vx=function(t){return Fg.browser.ie&&Fg.browser.version>=11?function(){var e,n=this.__clipPaths,i=this.style;if(n)for(var r=0;r<n.length;r++){var o=n[r],a=o&&o.shape,s=o&&o.type;if(a&&("sector"===s&&a.startAngle===a.endAngle||"rect"===s&&(!a.width||!a.height))){for(var l=0;l<gx.length;l++)gx[l][2]=i[gx[l][0]],i[gx[l][0]]=gx[l][1];e=!0;break}}if(t.apply(this,arguments),e)for(var l=0;l<gx.length;l++)i[gx[l][0]]=gx[l][2]}:t},mx=Kr.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:vx(Kr.prototype.brush),buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(a),h=Math.sin(a);t.moveTo(u*r+n,h*r+i),t.lineTo(u*o+n,h*o+i),t.arc(n,i,o,a,s,!l),t.lineTo(Math.cos(s)*r+n,Math.sin(s)*r+i),0!==r&&t.arc(n,i,r,s,a,l),t.closePath()}}),yx=Kr.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)}}),xx=function(t,e){for(var n=t.length,i=[],r=0,o=1;n>o;o++)r+=ee(t[o-1],t[o]);var a=r/2;a=n>a?n:a;for(var o=0;a>o;o++){var s,l,u,h=o/(a-1)*(e?n:n-1),c=Math.floor(h),d=h-c,f=t[c%n];e?(s=t[(c-1+n)%n],l=t[(c+1)%n],u=t[(c+2)%n]):(s=t[0===c?c:c-1],l=t[c>n-2?n-1:c+1],u=t[c>n-3?n-1:c+2]);var p=d*d,g=d*p;i.push([ro(s[0],f[0],l[0],u[0],d,p,g),ro(s[1],f[1],l[1],u[1],d,p,g)])}return i},_x=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;f>d;d++)ae(a,a,t[d]),se(s,s,t[d]);ae(a,a,i[0]),se(s,s,i[1])}for(var d=0,f=t.length;f>d;d++){var p=t[d];if(n)r=t[d?d-1:f-1],o=t[(d+1)%f];else{if(0===d||d===f-1){l.push(W(t[d]));continue}r=t[d-1],o=t[d+1]}U(u,o,r),J(u,u,e);var g=ee(p,r),v=ee(p,o),m=g+v;0!==m&&(g/=m,v/=m),J(h,u,-g),J(c,u,v);var y=Y([],p,h),x=Y([],p,c);i&&(se(y,y,a),ae(y,y,s),se(x,x,a),ae(x,x,s)),l.push(y),l.push(x)}return n&&l.push(l.shift()),l},bx=Kr.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){oo(t,e,!0)}}),Sx=Kr.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){oo(t,e,!1)}}),Mx=Math.round,Cx={},Ix=Kr.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var n,i,r,o;this.subPixelOptimize?(so(Cx,e,this.style),n=Cx.x,i=Cx.y,r=Cx.width,o=Cx.height,Cx.r=e.r,e=Cx):(n=e.x,i=e.y,r=e.width,o=e.height),e.r?ri(t,e):t.rect(n,i,r,o),t.closePath()}}),Tx={},Ax=Kr.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n,i,r,o;this.subPixelOptimize?(ao(Tx,e,this.style),n=Tx.x1,i=Tx.y1,r=Tx.x2,o=Tx.y2):(n=e.x1,i=e.y1,r=e.x2,o=e.y2);var a=e.percent;0!==a&&(t.moveTo(n,i),1>a&&(r=n*(1-a)+r*a,o=i*(1-a)+o*a),t.lineTo(r,o))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}}),Dx=[],kx=Kr.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(n,i),null==l||null==u?(1>h&&(kr(n,a,r,h,Dx),a=Dx[1],r=Dx[2],kr(i,s,o,h,Dx),s=Dx[1],o=Dx[2]),t.quadraticCurveTo(a,s,r,o)):(1>h&&(Mr(n,a,l,r,h,Dx),a=Dx[1],l=Dx[2],r=Dx[3],Mr(i,s,u,o,h,Dx),s=Dx[1],u=Dx[2],o=Dx[3]),t.bezierCurveTo(a,s,l,u,r,o)))},pointAt:function(t){return uo(this.shape,t,!1)},tangentAt:function(t){var e=uo(this.shape,t,!0);return te(e,e)}}),Px=Kr.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)}}),Ox=Kr.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;n<e.length;n++)t=t||e[n].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},buildPath:function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),Kr.prototype.getBoundingRect.call(this)}}),Lx=function(t){this.colorStops=t||[]};Lx.prototype={constructor:Lx,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var zx=function(t,e,n,i,r,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=o||!1,Lx.call(this,r)};zx.prototype={constructor:zx},h(zx,Lx);var Ex=function(t,e,n,i,r){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=r||!1,Lx.call(this,i)};Ex.prototype={constructor:Ex},h(Ex,Lx),ho.prototype.incremental=!0,ho.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},ho.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},ho.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},ho.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},ho.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},ho.prototype.brush=function(t){for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.beforeBrush&&n.beforeBrush(t),n.brush(t,e===this._cursor?null:this._displayables[e-1]),n.afterBrush&&n.afterBrush(t)}this._cursor=e;for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.beforeBrush&&n.beforeBrush(t),n.brush(t,0===e?null:this._temporaryDisplayables[e-1]),n.afterBrush&&n.afterBrush(t)}this._temporaryDisplayables=[],this.notClear=!0};var Bx=[];ho.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Sn(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(Bx)),t.union(i)}this._rect=t}return this._rect},ho.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var o=this._displayables[r];if(o.contain(t,e))return!0}return!1},h(ho,Si);var Rx=Math.max,Nx=Math.min,Fx={},Vx=1,Hx={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},Gx="emphasis",Wx="normal",Xx=1,Yx={},Zx={},Ux=io,jx=lo,qx=N(),$x=0;po("circle",px),po("sector",mx),po("ring",yx),po("polygon",bx),po("polyline",Sx),po("rect",Ix),po("line",Ax),po("bezierCurve",kx),po("arc",Px);var Kx=(Object.freeze||Object)({Z2_EMPHASIS_LIFT:Vx,CACHED_LABEL_STYLE_PROPERTIES:Hx,extendShape:co,extendPath:fo,registerShape:po,getShapeClass:go,makePath:vo,makeImage:mo,mergePath:Ux,resizePath:xo,subPixelOptimizeLine:_o,subPixelOptimizeRect:wo,subPixelOptimize:jx,setElementHoverStyle:Do,setHoverStyle:Eo,setAsHighDownDispatcher:Bo,isHighDownDispatcher:Ro,getHighlightDigit:No,setLabelStyle:Fo,modifyLabelStyle:Vo,setTextStyle:Ho,setText:Go,getFont:qo,updateProps:Ko,initProps:Qo,getTransform:Jo,applyTransform:ta,transformDirection:ea,groupTransition:na,clipPointsByRect:ia,clipRectByRect:ra,createIcon:oa,linePolygonIntersect:aa,lineLineIntersect:sa,Group:Qv,Image:Mi,Text:fx,Circle:px,Sector:mx,Ring:yx,Polygon:bx,Polyline:Sx,Rect:Ix,Line:Ax,BezierCurve:kx,Arc:Px,IncrementalDisplayable:ho,CompoundPath:Ox,LinearGradient:zx,RadialGradient:Ex,BoundingRect:Sn}),Qx=["textStyle","color"],Jx={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Qx):null)},getFont:function(){return qo({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return Gn(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}},t_=ay([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),e_={getItemStyle:function(t,e){var n=t_(this,t,e),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}},n_=c,i_=or();ha.prototype={constructor:ha,init:null,mergeOption:function(t){r(this.option,t,!0)},get:function(t,e){return null==t?this.option:ca(this.option,this.parsePath(t),!e&&da(this,t))},getShallow:function(t,e){var n=this.option,i=null==n?n:n[t],r=!e&&da(this,t);return null==i&&r&&(i=r.getShallow(t)),i},getModel:function(t,e){var n,i=null==t?this.option:ca(this.option,t=this.parsePath(t));return e=e||(n=da(this,t))&&n.getModel(t),new ha(i,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i(this.option))},setReadOnly:function(){},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){i_(this).getParent=t},isAnimationEnabled:function(){if(!Fg.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},fr(ha),pr(ha),n_(ha,ly),n_(ha,hy),n_(ha,Jx),n_(ha,e_);var r_=0,o_=1e-4,a_=9007199254740991,s_=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,l_=(Object.freeze||Object)({linearMap:ma,parsePercent:ya,round:xa,asc:_a,getPrecision:wa,getPrecisionSafe:ba,getPixelPrecision:Sa,getPercentWithPrecision:Ma,MAX_SAFE_INTEGER:a_,remRadian:Ca,isRadianAroundZero:Ia,parseDate:Ta,quantity:Aa,quantityExponent:Da,nice:ka,quantile:Pa,reformIntervals:Oa,isNumeric:La}),u_=O,h_=/([&<>"'])/g,c_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},d_=["a","b","c","d","e","f","g"],f_=function(t,e){return"{"+t+(null==e?"":e)+"}"},p_=jn,g_=(Object.freeze||Object)({addCommas:za,toCamelCase:Ea,normalizeCssArray:u_,encodeHTML:Ba,formatTpl:Ra,formatTplSimple:Na,getTooltipMarker:Fa,formatTime:Ha,capitalFirst:Ga,truncateText:p_,getTextBoundingRect:Wa,getTextRect:Xa}),v_=f,m_=["left","right","top","bottom","width","height"],y_=[["width","left","right"],["height","top","bottom"]],x_=Ya,__=(x(Ya,"vertical"),x(Ya,"horizontal"),{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}),w_=or(),b_=ha.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,i){ha.call(this,t,e,n,i),this.uid=fa("ec_cpt_model")},init:function(t,e,n){this.mergeDefaultAndTheme(t,n)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?qa(t):{},o=e.getTheme();r(t,o.get(this.mainType)),r(t,this.getDefaultOption()),n&&ja(t,i,n)},mergeOption:function(t){r(this.option,t,!0);var e=this.layoutMode;e&&ja(this.option,t,e)},optionUpdated:function(){},getDefaultOption:function(){var t=w_(this);if(!t.defaultOption){for(var e=[],n=this.constructor;n;){var i=n.prototype.defaultOption;i&&e.push(i),n=n.superClass}for(var o={},a=e.length-1;a>=0;a--)o=r(o,e[a],!0);t.defaultOption=o}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});mr(b_,{registerWhenExtend:!0}),pa(b_),ga(b_,Ka),c(b_,__);var S_="";"undefined"!=typeof navigator&&(S_=navigator.platform||"");var M_={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:S_.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},C_=or(),I_={clearColorPalette:function(){C_(this).colorIdx=0,C_(this).colorNameMap={}},getColorFromPalette:function(t,e,n){e=e||this;var i=C_(e),r=i.colorIdx||0,o=i.colorNameMap=i.colorNameMap||{};if(o.hasOwnProperty(t))return o[t];var a=$i(this.get("color",!0)),s=this.get("colorLayer",!0),l=null!=n&&s?Qa(s,n):a;if(l=l||a,l&&l.length){var u=l[r];return t&&(o[t]=u),i.colorIdx=(r+1)%l.length,u}}},T_="original",A_="arrayRows",D_="objectRows",k_="keyedColumns",P_="unknown",O_="typedArray",L_="column",z_="row";Ja.seriesDataToSource=function(t){return new Ja({data:t,sourceFormat:C(t)?O_:T_,fromDataset:!1})},pr(Ja);var E_={Must:1,Might:2,Not:3},B_=or(),R_="\x00_ec_inner",N_=ha.extend({init:function(t,e,n,i){n=n||{},this.option=null,this._theme=new ha(n),this._optionManager=i},setOption:function(t,e){L(!(R_ in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var i=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(i)):ps.call(this,i),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=n.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o.length&&f(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,i){var r=$i(t[e]),s=tr(o.get(e),r);er(s),f(s,function(t){var n=t.option;S(n)&&(t.keyInfo.mainType=e,t.keyInfo.subType=vs(e,n,t.exist))});var l=gs(o,i);n[e]=[],o.set(e,[]),f(s,function(t,i){var r=t.exist,s=t.option;if(L(S(s)||r,"Empty component definition"),s){var u=b_.getClass(e,t.keyInfo.subType,!0);if(r&&r.constructor===u)r.name=t.keyInfo.name,r.mergeOption(s,this),r.optionUpdated(s,!1);else{var h=a({dependentModels:l,componentIndex:i},t.keyInfo);r=new u(s,this,this,h),a(r,h),r.init(s,this,this,h),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);o.get(e)[i]=r,n[e][i]=r.option},this),"series"===e&&ms(this,o.get("series"))}var n=this.option,o=this._componentsMap,s=[];ns(this),f(t,function(t,e){null!=t&&(b_.hasClass(e)?e&&s.push(e):n[e]=null==n[e]?i(t):r(n[e],t,!0))}),b_.topologicalTravel(s,b_.getAllClassMainTypes(),e,this),this._seriesIndicesMap=N(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=i(this.option);return f(t,function(e,n){if(b_.hasClass(n)){for(var e=$i(e),i=e.length-1;i>=0;i--)ir(e[i])&&e.splice(i,1);t[n]=e}}),delete t[R_],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);return n?n[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n=t.index,i=t.id,r=t.name,o=this._componentsMap.get(e);if(!o||!o.length)return[];var a;if(null!=n)_(n)||(n=[n]),a=v(p(n,function(t){return o[t]}),function(t){return!!t});else if(null!=i){var s=_(i);a=v(o,function(t){return s&&u(i,t.id)>=0||!s&&t.id===i})}else if(null!=r){var l=_(r);a=v(o,function(t){return l&&u(r,t.name)>=0||!l&&t.name===r})}else a=o.slice();return ys(a,t)},findComponents:function(t){function e(t){var e=r+"Index",n=r+"Id",i=r+"Name";return!t||null==t[e]&&null==t[n]&&null==t[i]?null:{mainType:r,index:t[e],id:t[n],name:t[i]}}function n(e){return t.filter?v(e,t.filter):e}var i=t.query,r=t.mainType,o=e(i),a=o?this.queryComponents(o):this._componentsMap.get(r);return n(ys(a,t))},eachComponent:function(t,e,n){var i=this._componentsMap;if("function"==typeof t)n=e,e=t,i.each(function(t,i){f(t,function(t,r){e.call(n,i,t,r)})});else if(b(t))f(i.get(t),e,n);else if(S(t)){var r=this.findComponents(t);f(r,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return v(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return v(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){f(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},eachRawSeries:function(t,e){f(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){f(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},eachRawSeriesByType:function(t,e,n){return f(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){var n=v(this._componentsMap.get("series"),t,e);ms(this,n)},restoreData:function(t){var e=this._componentsMap;ms(this,e.get("series"));var n=[];e.each(function(t,e){n.push(e)}),b_.topologicalTravel(n,b_.getAllClassMainTypes(),function(n){f(e.get(n),function(e){("series"!==n||!ds(e,t))&&e.restoreData()})})}});c(N_,I_);var F_=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"],V_={};_s.prototype={constructor:_s,create:function(t,e){var n=[];f(V_,function(i){var r=i.create(t,e);n=n.concat(r||[])}),this._coordinateSystems=n},update:function(t,e){f(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},_s.register=function(t,e){V_[t]=e},_s.get=function(t){return V_[t]};var H_=f,G_=i,W_=p,X_=r,Y_=/^(min|max)?(.+)$/;ws.prototype={constructor:ws,setOption:function(t,e){t&&f($i(t.series),function(t){t&&t.data&&C(t.data)&&E(t.data)}),t=G_(t);var n=this._optionBackup,i=bs.call(this,t,e,!n);this._newBaseOption=i.baseOption,n?(Is(n.baseOption,i.baseOption),i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=W_(e.timelineOptions,G_),this._mediaList=W_(e.mediaList,G_),this._mediaDefault=G_(e.mediaDefault),this._currentMediaIndices=[],G_(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=G_(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api.getWidth(),e=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,r=[],o=[];if(!n.length&&!i)return o;for(var a=0,s=n.length;s>a;a++)Ss(n[a].query,t,e)&&r.push(a);return!r.length&&i&&(r=[-1]),r.length&&!Cs(r,this._currentMediaIndices)&&(o=W_(r,function(t){return G_(-1===t?i.option:n[t].option)})),this._currentMediaIndices=r,o}};var Z_=f,U_=S,j_=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],q_=function(t,e){Z_(Ls(t.series),function(t){U_(t)&&Os(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Z_(n,function(e){Z_(Ls(t[e]),function(t){t&&(ks(t,"axisLabel"),ks(t.axisPointer,"label"))})}),Z_(Ls(t.parallel),function(t){var e=t&&t.parallelAxisDefault;ks(e,"axisLabel"),ks(e&&e.axisPointer,"label")}),Z_(Ls(t.calendar),function(t){As(t,"itemStyle"),ks(t,"dayLabel"),ks(t,"monthLabel"),ks(t,"yearLabel")}),Z_(Ls(t.radar),function(t){ks(t,"name")}),Z_(Ls(t.geo),function(t){U_(t)&&(Ps(t),Z_(Ls(t.regions),function(t){Ps(t)}))}),Z_(Ls(t.timeline),function(t){Ps(t),As(t,"label"),As(t,"itemStyle"),As(t,"controlStyle",!0);var e=t.data;_(e)&&f(e,function(t){S(t)&&(As(t,"label"),As(t,"itemStyle"))})}),Z_(Ls(t.toolbox),function(t){As(t,"iconStyle"),Z_(t.feature,function(t){As(t,"iconStyle")})}),ks(zs(t.axisPointer),"label"),ks(zs(t.tooltip).axisPointer,"label")},$_=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],K_=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Q_=function(t,e){q_(t,e),t.series=$i(t.series),f(t.series,function(t){if(S(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e)null!=t.clockWise&&(t.clockwise=t.clockWise);else if("gauge"===e){var n=Es(t,"pointer.color");null!=n&&Bs(t,"itemStyle.color",n)}Rs(t)}}),t.dataRange&&(t.visualMap=t.dataRange),f(K_,function(e){var n=t[e];n&&(_(n)||(n=[n]),f(n,function(t){Rs(t)}))})},J_=function(t){var e=N();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(Ns)},tw=Fs.prototype;tw.pure=!1,tw.persistent=!0,tw.getSource=function(){return this._source};var ew={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:Gs},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],n=this._data,i=0;i<n.length;i++){var r=n[i];e.push(r?r[t]:null)}return e},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:Vs,getItem:Hs,appendData:Gs},keyedColumns:{pure:!0,count:function(){var t=this._source.dimensionsDefine[0].name,e=this._data[t];return e?e.length:0},getItem:function(t){for(var e=[],n=this._source.dimensionsDefine,i=0;i<n.length;i++){var r=this._data[n[i].name];e.push(r?r[t]:null)}return e},appendData:function(t){var e=this._data;f(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},original:{count:Vs,getItem:Hs,appendData:Gs},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(t,e){t-=this._offset,e=e||[];for(var n=this._dimSize*t,i=0;i<this._dimSize;i++)e[i]=this._data[n+i];return e},appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}}},nw={arrayRows:Ws,objectRows:function(t,e,n,i){return null!=n?t[i]:t},keyedColumns:Ws,original:function(t,e,n){var i=Qi(t);return null!=n&&i instanceof Array?i[n]:i},typedArray:Ws},iw={arrayRows:Xs,objectRows:function(t,e){return Ys(t[e],this._dimensionInfos[e])},keyedColumns:Xs,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return!this._rawData.pure&&Ji(t)&&(this.hasItemOption=!0),Ys(r instanceof Array?r[i]:r,this._dimensionInfos[e])},typedArray:function(t,e,n,i){return t[i]}},rw=/\{@(.+?)\}/g,ow={getDataParams:function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"color"),l=n.getItemVisual(t,"borderColor"),u=this.ecModel.getComponent("tooltip"),h=u&&u.get("renderMode"),c=hr(h),d=this.mainType,f="series"===d,p=n.userOutput;return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:s,borderColor:l,dimensionNames:p?p.dimensionNames:null,encode:p?p.encode:null,marker:Fa({color:s,renderMode:c}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,i,r){e=e||"normal";var o=this.getData(n),a=o.getItemModel(t),s=this.getDataParams(t,n);null!=i&&s.value instanceof Array&&(s.value=s.value[i]);var l=a.get("normal"===e?[r||"label","formatter"]:[e,r||"label","formatter"]);if("function"==typeof l)return s.status=e,s.dimensionIndex=i,l(s);if("string"==typeof l){var u=Ra(l,s);return u.replace(rw,function(e,n){var i=n.length;return"["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),Zs(o,t,n)})}},getRawValue:function(t,e){return Zs(this.getData(e),t)},formatTooltip:function(){}},aw=js.prototype;aw.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!i&&(o=this._plan(this.context));var a=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o="reset");var h;(this._dirty||"reset"===o)&&(this._dirty=!1,h=$s(this,i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||f>d)){var p=this._progress;if(_(p))for(var g=0;g<p.length;g++)qs(this,p[g],d,f,l,u);else qs(this,p,d,f,l,u)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var sw=function(){function t(){return n>i?i++:null}function e(){var t=i%a*r+Math.ceil(i/a),e=i>=n?null:o>t?t:i;return i++,e}var n,i,r,o,a,s={reset:function(l,u,h,c){i=l,n=u,r=h,o=c,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}();aw.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},aw.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},aw.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},aw.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},aw.getUpstream=function(){return this._upstream},aw.getDownstream=function(){return this._downstream},aw.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var lw=or(),uw=b_.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Us({count:Js,reset:tl}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),is(this);var i=this.getInitialData(t,n);nl(i,this),this.dataTask.context.data=i,lw(this).dataBeforeProcessed=i,Ks(this)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?qa(t):{},o=this.subType;b_.hasClass(o)&&(o+="Series"),r(t,e.getTheme().get(this.subType)),r(t,this.getDefaultOption()),Ki(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ja(t,i,n)},mergeOption:function(t,e){t=r(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.layoutMode;n&&ja(this.option,t,n),is(this);var i=this.getInitialData(t,e);nl(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,lw(this).dataBeforeProcessed=i,Ks(this)},fillDataTextStyle:function(t){if(t&&!C(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Ki(t[n],"label",e)},getInitialData:function(){},appendData:function(t){var e=this.getRawData();e.appendData(t.data)},getData:function(t){var e=rl(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return lw(this).data},setData:function(t){var e=rl(this);if(e){var n=e.context;n.data!==t&&e.modifyOutputEnd&&e.setOutputEnd(t.count()),n.outputData=t,e!==this.dataTask&&(n.data=t)}lw(this).data=t},getSource:function(){return es(this)},getRawData:function(){return lw(this).dataBeforeProcessed},getBaseAxis:function(){var t=this.coordinateSystem; return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e,n,i){function r(n){function r(t,n){var r=c.getDimensionInfo(n);if(r&&r.otherDims.tooltip!==!1){var d=r.type,f="sub"+a.seriesIndex+"at"+h,p=Fa({color:y,type:"subItem",renderMode:i,markerId:f}),g="string"==typeof p?p:p.content,v=(o?g+Ba(r.displayName||"-")+": ":"")+Ba("ordinal"===d?t+"":"time"===d?e?"":Ha("yyyy/MM/dd hh:mm:ss",t):za(t));v&&s.push(v),l&&(u[f]=y,++h)}}var o=g(n,function(t,e,n){var i=c.getDimensionInfo(n);return t|=i&&i.tooltip!==!1&&null!=i.displayName},0),s=[];d.length?f(d,function(e){r(Zs(c,t,e),e)}):f(n,r);var p=o?l?"\n":"<br/>":"",v=p+s.join(p||", ");return{renderMode:i,content:v,style:u}}function o(t){return{renderMode:i,content:Ba(za(t)),style:u}}var a=this;i=i||"html";var s="html"===i?"<br/>":"\n",l="richText"===i,u={},h=0,c=this.getData(),d=c.mapDimension("defaultedTooltip",!0),p=d.length,v=this.getRawValue(t),m=_(v),y=c.getItemVisual(t,"color");S(y)&&y.colorStops&&(y=(y.colorStops[0]||{}).color),y=y||"transparent";var x=p>1||m&&!p?r(v):o(p?Zs(c,t,d[0]):m?v[0]:v),w=x.content,b=a.seriesIndex+"at"+h,M=Fa({color:y,type:"item",renderMode:i,markerId:b});u[b]=y,++h;var C=c.getName(t),I=this.name;nr(this)||(I=""),I=I?Ba(I)+(e?": ":s):"";var T="string"==typeof M?M:M.content,A=e?T+I+w:I+T+(C?Ba(C)+": "+w:w);return{html:A,markers:u}},isAnimationEnabled:function(){if(Fg.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel,r=I_.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});c(uw,ow),c(uw,I_);var hw=function(){this.group=new Qv,this.uid=fa("viewComponent")};hw.prototype={constructor:hw,init:function(){},render:function(){},dispose:function(){},filterForExposedEvent:null};var cw=hw.prototype;cw.updateView=cw.updateLayout=cw.updateVisual=function(){},fr(hw),mr(hw,{registerWhenExtend:!0});var dw=function(){var t=or();return function(e){var n=t(e),i=e.pipelineContext,r=n.large,o=n.progressiveRender,a=n.large=i.large,s=n.progressiveRender=i.progressiveRender;return!!(r^a||o^s)&&"reset"}},fw=or(),pw=dw();ol.prototype={type:"chart",init:function(){},render:function(){},highlight:function(t,e,n,i){sl(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){sl(t.getData(),i,"normal")},remove:function(){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var gw=ol.prototype;gw.updateView=gw.updateLayout=gw.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},fr(ol,["dispose"]),mr(ol,{registerWhenExtend:!0}),ol.markUpdateMethod=function(t,e){fw(t).updateMethod=e};var vw={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},mw="\x00__throttleOriginMethod",yw="\x00__throttleRate",xw="\x00__throttleType",_w={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=(t.visualColorAccessPath||"itemStyle.color").split("."),r=t.get(i),o=!w(r)||r instanceof Lx?null:r;(!r||o)&&(r=t.getColorFromPalette(t.name,null,e.getSeriesCount())),n.setVisual("color",r);var a=(t.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),s=t.get(a);if(n.setVisual("borderColor",s),!e.isSeriesFiltered(t)){o&&n.each(function(e){n.setItemVisual(e,"color",o(t.getDataParams(e)))});var l=function(t,e){var n=t.getItemModel(e),r=n.get(i,!0),o=n.get(a,!0);null!=r&&t.setItemVisual(e,"color",r),null!=o&&t.setItemVisual(e,"borderColor",o)};return{dataEach:n.hasItemOption?l:null}}}},ww={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},bw=function(t,e){function n(t,e){if("string"!=typeof t)return t;var n=t;return f(e,function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),n}function i(t){var e=a.get(t);if(null==e){for(var n=t.split("."),i=ww.aria,r=0;r<n.length;++r)i=i[n[r]];return i}return e}function r(){var t=e.getModel("title").option;return t&&t.length&&(t=t[0]),t&&t.text}function o(t){return ww.series.typeNames[t]||"自定义图"}var a=e.getModel("aria");if(a.get("show")){if(a.get("description"))return void t.setAttribute("aria-label",a.get("description"));var s=0;e.eachSeries(function(){++s},this);var l,u=a.get("data.maxCount")||10,h=a.get("series.maxCount")||10,c=Math.min(s,h);if(!(1>s)){var d=r();l=d?n(i("general.withTitle"),{title:d}):i("general.withoutTitle");var p=[],g=s>1?"series.multiple.prefix":"series.single.prefix";l+=n(i(g),{seriesCount:s}),e.eachSeries(function(t,e){if(c>e){var r,a=t.get("name"),l="series."+(s>1?"multiple":"single")+".";r=i(a?l+"withName":l+"withoutName"),r=n(r,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:o(t.subType)});var h=t.getData();window.data=h,r+=h.count()>u?n(i("data.partialData"),{displayCnt:u}):i("data.allData");for(var d=[],f=0;f<h.count();f++)if(u>f){var g=h.getName(f),v=Zs(h,f);d.push(n(i(g?"data.withName":"data.withoutName"),{name:g,value:v}))}r+=d.join(i("data.separator.middle"))+i("data.separator.end"),p.push(r)}}),l+=p.join(i("series.multiple.separator.middle"))+i("series.multiple.separator.end"),t.setAttribute("aria-label",l)}}},Sw=Math.PI,Mw=function(t,e){e=e||{},s(e,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var n=new Ix({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),i=new Px({shape:{startAngle:-Sw/2,endAngle:-Sw/2+.1,r:10},style:{stroke:e.color,lineCap:"round",lineWidth:5},zlevel:e.zlevel,z:10001}),r=new Ix({style:{fill:"none",text:e.text,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});i.animateShape(!0).when(1e3,{endAngle:3*Sw/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Sw/2}).delay(300).start("circularInOut");var o=new Qv;return o.add(i),o.add(r),o.add(n),o.resize=function(){var e=t.getWidth()/2,o=t.getHeight()/2;i.setShape({cx:e,cy:o});var a=i.shape.r;r.setShape({x:e-a,y:o-a,width:2*a,height:2*a}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},o.resize(),o},Cw=dl.prototype;Cw.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},Cw.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},Cw.getPipeline=function(t){return this._pipelineMap.get(t)},Cw.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},Cw.restorePipelines=function(t){var e=this,n=e._pipelineMap=N();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),Ml(e,t,t.dataTask)})},Cw.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),n=this.api;f(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,[]);i.reset&&pl(this,i,r,e,n),i.overallReset&&gl(this,i,r,e,n)},this)},Cw.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,Ml(this,e,r)},Cw.performDataProcessorTasks=function(t,e){fl(this,this._dataProcessorHandlers,t,e,{block:!0})},Cw.performVisualTasks=function(t,e,n){fl(this,this._visualHandlers,t,e,n)},Cw.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},Cw.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})};var Iw=Cw.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Tw=bl(0);dl.wrapStageHandler=function(t,e){return w(t)&&(t={overallReset:t,seriesType:Cl(t)}),t.uid=fa("stageHandler"),e&&(t.visualType=e),t};var Aw,Dw={},kw={};Il(Dw,N_),Il(kw,xs),Dw.eachSeriesByType=Dw.eachRawSeriesByType=function(t){Aw=t},Dw.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Aw=t.subType)};var Pw=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Ow={color:Pw,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Pw]},Lw="#eee",zw=function(){return{axisLine:{lineStyle:{color:Lw}},axisTick:{lineStyle:{color:Lw}},axisLabel:{textStyle:{color:Lw}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:Lw}}}},Ew=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],Bw={color:Ew,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:Lw},crossStyle:{color:Lw},label:{color:"#000"}}},legend:{textStyle:{color:Lw}},textStyle:{color:Lw},title:{textStyle:{color:Lw}},toolbox:{iconStyle:{normal:{borderColor:Lw}}},dataZoom:{textStyle:{color:Lw}},visualMap:{textStyle:{color:Lw}},timeline:{lineStyle:{color:Lw},itemStyle:{normal:{color:Ew[1]}},label:{normal:{textStyle:{color:Lw}}},controlStyle:{normal:{color:Lw,borderColor:Lw}}},timeAxis:zw(),logAxis:zw(),valueAxis:zw(),categoryAxis:zw(),line:{symbol:"circle"},graph:{color:Ew},gauge:{title:{textStyle:{color:Lw}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};Bw.categoryAxis.splitLine.show=!1,b_.extend({type:"dataset",defaultOption:{seriesLayoutBy:L_,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){ts(this)}}),hw.extend({type:"dataset"});var Rw=Kr.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()}}),Nw=/[\s,]+/;Al.prototype.parse=function(t,e){e=e||{};var n=Tl(t);if(!n)throw new Error("Illegal svg");var i=new Qv;this._root=i;var r=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||e.width),a=parseFloat(n.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(a)&&(a=null),Ol(n,i,null,!0);for(var s=n.firstChild;s;)this._parseNode(s,i),s=s.nextSibling;var l,u;if(r){var h=z(r).split(Nw);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=o&&null!=a&&(u=Bl(l,o,a),!e.ignoreViewBox)){var c=i;i=new Qv,i.add(c),c.scale=u.scale.slice(),c.position=u.position.slice()}return e.ignoreRootClip||null==o||null==a||i.setClipPath(new Ix({shape:{x:0,y:0,width:o,height:a}})),{root:i,width:o,height:a,viewBoxRect:l,viewBoxTransform:u}},Al.prototype._parseNode=function(t,e){var n=t.nodeName.toLowerCase();"defs"===n?this._isDefine=!0:"text"===n&&(this._isText=!0);var i;if(this._isDefine){var r=Vw[n];if(r){var o=r.call(this,t),a=t.getAttribute("id");a&&(this._defs[a]=o)}}else{var r=Fw[n];r&&(i=r.call(this,t,e),e.add(i))}for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,i),3===s.nodeType&&this._isText&&this._parseText(s,i),s=s.nextSibling;"defs"===n?this._isDefine=!1:"text"===n&&(this._isText=!1)},Al.prototype._parseText=function(t,e){if(1===t.nodeType){var n=t.getAttribute("dx")||0,i=t.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new fx({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});kl(e,r),Ol(t,r,this._defs);var o=r.style.fontSize;o&&9>o&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=o/9,r.scale[1]*=o/9);var a=r.getBoundingRect();return this._textX+=a.width,e.add(r),r};var Fw={g:function(t,e){var n=new Qv;return kl(e,n),Ol(t,n,this._defs),n},rect:function(t,e){var n=new Ix;return kl(e,n),Ol(t,n,this._defs),n.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),n},circle:function(t,e){var n=new px;return kl(e,n),Ol(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),n},line:function(t,e){var n=new Ax;return kl(e,n),Ol(t,n,this._defs),n.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),n},ellipse:function(t,e){var n=new Rw;return kl(e,n),Ol(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),n},polygon:function(t,e){var n=t.getAttribute("points");n&&(n=Pl(n));var i=new bx({shape:{points:n||[]}});return kl(e,i),Ol(t,i,this._defs),i},polyline:function(t,e){var n=new Kr;kl(e,n),Ol(t,n,this._defs);var i=t.getAttribute("points");i&&(i=Pl(i));var r=new Sx({shape:{points:i||[]}});return r},image:function(t,e){var n=new Mi;return kl(e,n),Ol(t,n,this._defs),n.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),n},text:function(t,e){var n=t.getAttribute("x")||0,i=t.getAttribute("y")||0,r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Qv;return kl(e,a),Ol(t,a,this._defs),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,a=new Qv;return kl(e,a),Ol(t,a,this._defs),this._textX+=r,this._textY+=o,a},path:function(t,e){var n=t.getAttribute("d")||"",i=eo(n);return kl(e,i),Ol(t,i,this._defs),i}},Vw={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),n=parseInt(t.getAttribute("y1")||0,10),i=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),o=new zx(e,n,i,r);return Dl(t,o),o},radialgradient:function(){}},Hw={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"},Gw=/url\(\s*#(.*?)\)/,Ww=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g,Xw=/([^\s:;]+)\s*:\s*([^:;]+)/g,Yw=N(),Zw={registerMap:function(t,e,n){var i;return _(e)?i=e:e.svg?i=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),i=[{type:"geoJSON",source:e,specialAreas:n}]),f(i,function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON");var n=Uw[e];n(t)}),Yw.set(t,i)},retrieveMap:function(t){return Yw.get(t)}},Uw={geoJSON:function(t){var e=t.source;t.geoJSON=b(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=Tl(t.source)}},jw=L,qw=f,$w=w,Kw=S,Qw=b_.parseClassType,Jw="4.6.0",tb={zrender:"4.2.0"},eb=1,nb=1e3,ib=800,rb=900,ob=5e3,ab=1e3,sb=1100,lb=2e3,ub=3e3,hb=3500,cb=4e3,db=5e3,fb={PROCESSOR:{FILTER:nb,SERIES_FILTER:ib,STATISTIC:ob},VISUAL:{LAYOUT:ab,PROGRESSIVE_LAYOUT:sb,GLOBAL:lb,CHART:ub,POST_CHART_LAYOUT:hb,COMPONENT:cb,BRUSH:db}},pb="__flagInMainProcess",gb="__optionUpdated",vb=/^[a-zA-Z0-9_]+$/;Nl.prototype.on=Rl("on",!0),Nl.prototype.off=Rl("off",!0),Nl.prototype.one=Rl("one",!0),c(Nl,sv);var mb=Fl.prototype;mb._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[gb]){var e=this[gb].silent;this[pb]=!0,Hl(this),yb.update.call(this),this[pb]=!1,this[gb]=!1,Yl.call(this,e),Zl.call(this,e)}else if(t.unfinished){var n=eb,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Wl(this,i),t.performVisualTasks(i),Ql(this,this._model,r,"remain"),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},mb.getDom=function(){return this._dom},mb.getZr=function(){return this._zr},mb.setOption=function(t,e,n){if(!this._disposed){var i;if(Kw(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[pb]=!0,!this._model||e){var r=new ws(this._api),o=this._theme,a=this._model=new N_;a.scheduler=this._scheduler,a.init(null,null,o,r)}this._model.setOption(t,Sb),n?(this[gb]={silent:i},this[pb]=!1):(Hl(this),yb.update.call(this),this._zr.flush(),this[gb]=!1,this[pb]=!1,Yl.call(this,i),Zl.call(this,i))}},mb.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},mb.getModel=function(){return this._model},mb.getOption=function(){return this._model&&this._model.getOption()},mb.getWidth=function(){return this._zr.getWidth()},mb.getHeight=function(){return this._zr.getHeight()},mb.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},mb.getRenderedCanvas=function(t){if(Fg.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr;return e.painter.getRenderedCanvas(t)}},mb.getSvgDataUrl=function(){if(Fg.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return f(e,function(t){t.stopAnimation(!0)}),t.painter.pathToDataUrl()}},mb.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;qw(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return qw(i,function(t){t.group.ignore=!1}),o}},mb.getConnectedDataURL=function(t){if(!this._disposed&&Fg.canvasSupported){var e=this.group,n=Math.min,r=Math.max,o=1/0;if(Db[e]){var a=o,s=o,l=-o,u=-o,h=[],c=t&&t.pixelRatio||1;f(Ab,function(o){if(o.group===e){var c=o.getRenderedCanvas(i(t)),d=o.getDom().getBoundingClientRect();a=n(d.left,a),s=n(d.top,s),l=r(d.right,l),u=r(d.bottom,u),h.push({dom:c,left:d.left,top:d.top})}}),a*=c,s*=c,l*=c,u*=c;var d=l-a,p=u-s,g=$g();g.width=d,g.height=p;var v=Yi(g);return t.connectedBackgroundColor&&v.add(new Ix({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),qw(h,function(t){var e=new Mi({style:{x:t.left*c-a,y:t.top*c-s,image:t.dom}});v.add(e)}),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},mb.convertToPixel=x(Vl,"convertToPixel"),mb.convertFromPixel=x(Vl,"convertFromPixel"),mb.containPixel=function(t,e){if(!this._disposed){var n,i=this._model;return t=ar(i,t),f(t,function(t,i){i.indexOf("Models")>=0&&f(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n|=o.containPoint(e,t))}},this)},this),!!n}},mb.getVisual=function(t,e){var n=this._model;t=ar(n,t,{defaultMainType:"series"});var i=t.seriesModel,r=i.getData(),o=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?r.indexOfRawIndex(t.dataIndex):null;return null!=o?r.getItemVisual(o,e):r.getVisual(e)},mb.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},mb.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var yb={prepareAndUpdate:function(t){Hl(this),yb.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,o=this._scheduler;if(e){o.restoreData(e,t),o.performSeriesTasks(e),r.create(e,n),o.performDataProcessorTasks(e,t),Wl(this,e),r.update(e,n),ql(e),o.performVisualTasks(e,t),$l(this,e,n,t);var a=e.get("backgroundColor")||"transparent";if(Fg.canvasSupported)i.setBackgroundColor(a);else{var s=$e(a);a=an(s,"rgb"),0===s[3]&&(a="transparent")}Jl(e,n)}},updateTransform:function(t){var e=this._model,n=this,i=this._api;if(e){var r=[];e.eachComponent(function(o,a){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,e,i,t);l&&l.update&&r.push(s)}else r.push(s)});var o=N();e.eachSeries(function(r){var a=n._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,e,i,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),ql(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),Ql(n,e,i,t,o),Jl(e,this._api)}},updateView:function(t){var e=this._model;e&&(ol.markUpdateMethod(t,"updateView"),ql(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),$l(this,this._model,this._api,t),Jl(e,this._api))},updateVisual:function(t){yb.update.call(this,t)},updateLayout:function(t){yb.update.call(this,t)}};mb.resize=function(t){if(!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[pb]=!0,n&&Hl(this),yb.update.call(this),this[pb]=!1,Yl.call(this,i),Zl.call(this,i)}}},mb.showLoading=function(t,e){if(!this._disposed&&(Kw(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Tb[t])){var n=Tb[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},mb.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},mb.makeActionFromEvent=function(t){var e=a({},t);return e.type=wb[t.type],e},mb.dispatchAction=function(t,e){if(!this._disposed&&(Kw(e)||(e={silent:!!e}),_b[t.type]&&this._model)){if(this[pb])return void this._pendingActions.push(t);Xl.call(this,t,e.silent),e.flush?this._zr.flush(!0):e.flush!==!1&&Fg.browser.weChat&&this._throttledZrFlush(),Yl.call(this,e.silent),Zl.call(this,e.silent)}},mb.appendData=function(t){if(!this._disposed){var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);i.appendData(t),this._scheduler.unfinished=!0}},mb.on=Rl("on",!1),mb.off=Rl("off",!1),mb.one=Rl("one",!1);var xb=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];mb._initEvents=function(){qw(xb,function(t){var e=function(e){var n,i=this.getModel(),r=e.target,o="globalout"===t;if(o)n={};else if(r&&null!=r.dataIndex){var s=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=s&&s.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(n=a({},r.eventData));if(n){var l=n.componentType,u=n.componentIndex;("markLine"===l||"markPoint"===l||"markArea"===l)&&(l="series",u=n.seriesIndex);var h=l&&null!=u&&i.getComponent(l,u),c=h&&this["series"===h.mainType?"_chartsMap":"_componentsMap"][h.__viewId];n.event=e,n.type=t,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:n,model:h,view:c},this.trigger(t,n)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)},this),qw(wb,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},mb.isDisposed=function(){return this._disposed},mb.clear=function(){this._disposed||this.setOption({series:[]},!0)},mb.dispose=function(){if(!this._disposed){this._disposed=!0,lr(this.getDom(),Ob,"");var t=this._api,e=this._model;qw(this._componentsViews,function(n){n.dispose(e,t)}),qw(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete Ab[this.id]}},c(Fl,sv),ru.prototype={constructor:ru,normalizeQuery:function(t){var e={},n={},i={};if(b(t)){var r=Qw(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};f(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],h=r.lastIndexOf(u);if(h>0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},filter:function(t,e){function n(t,e,n,i){return null==t[n]||e[i||n]===t[n]}var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return n(l,a,"mainType")&&n(l,a,"subType")&&n(l,a,"index","componentIndex")&&n(l,a,"name")&&n(l,a,"id")&&n(u,o,"name")&&n(u,o,"dataIndex")&&n(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o))},afterTrigger:function(){this.eventInfo=null}};var _b={},wb={},bb=[],Sb=[],Mb=[],Cb=[],Ib={},Tb={},Ab={},Db={},kb=new Date-0,Pb=new Date-0,Ob="_echarts_instance_",Lb=lu;_u(lb,_w),fu(Q_),pu(rb,J_),bu("default",Mw),vu({type:"highlight",event:"highlight",update:"highlight"},V),vu({type:"downplay",event:"downplay",update:"downplay"},V),du("light",Ow),du("dark",Bw);var zb={};Pu.prototype={constructor:Pu,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,n=this._new,i={},r={},o=[],a=[];for(Ou(e,i,o,"_oldKeyGetter",this),Ou(n,r,a,"_newKeyGetter",this),t=0;t<e.length;t++){var s=o[t],l=r[s];if(null!=l){var u=l.length;u?(1===u&&(r[s]=null),l=l.shift()):r[s]=null,this._update&&this._update(l,t)}else this._remove&&this._remove(t)}for(var t=0;t<a.length;t++){var s=a[t];if(r.hasOwnProperty(s)){var l=r[s];if(null==l)continue;if(l.length)for(var h=0,u=l.length;u>h;h++)this._add&&this._add(l[h]);else this._add&&this._add(l)}}}};var Eb=N(["tooltip","label","itemName","itemId","seriesName"]),Bb=S,Rb="undefined",Nb=-1,Fb="e\x00\x00",Vb={"float":typeof Float64Array===Rb?Array:Float64Array,"int":typeof Int32Array===Rb?Array:Int32Array,ordinal:Array,number:Array,time:Array},Hb=typeof Uint32Array===Rb?Array:Uint32Array,Gb=typeof Int32Array===Rb?Array:Int32Array,Wb=typeof Uint16Array===Rb?Array:Uint16Array,Xb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],Yb=["_extent","_approximateExtent","_rawExtent"],Zb=function(t,e){t=t||["x","y"];for(var n={},i=[],r={},o=0;o<t.length;o++){var a=t[o];b(a)?a=new Ru({name:a}):a instanceof Ru||(a=new Ru(a));var s=a.name;a.type=a.type||"float",a.coordDim||(a.coordDim=s,a.coordDimIndex=0),a.otherDims=a.otherDims||{},i.push(s),n[s]=a,a.index=o,a.createInvertedIndices&&(r[s]=[])}this.dimensions=i,this._dimensionInfos=n,this.hostModel=e,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=Lu(this),this._invertedIndicesMap=r,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},Ub=Zb.prototype;Ub.type="list",Ub.hasItemOption=!0,Ub.getDimension=function(t){return("number"==typeof t||!isNaN(t)&&!this._dimensionInfos.hasOwnProperty(t))&&(t=this.dimensions[t]),t},Ub.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},Ub.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},Ub.mapDimension=function(t,e){var n=this._dimensionsSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return e===!0?(i||[]).slice():i&&i[e]},Ub.initData=function(t,e,n){var i=Ja.isInstance(t)||d(t);i&&(t=new Fs(t,this.dimensions.length)),this._rawData=t,this._storage={},this._indices=null,this._nameList=e||[],this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=iw[this._rawData.getSource().sourceFormat],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=iw.arrayRows,this._rawExtent={},this._initDataFromProvider(0,t.count()),t.pure&&(this.hasItemOption=!1)},Ub.getProvider=function(){return this._rawData},Ub.appendData=function(t){var e=this._rawData,n=this.count();e.appendData(t);var i=e.count();e.persistent||(i+=n),this._initDataFromProvider(n,i)},Ub.appendValues=function(t,e){for(var n=this._chunkSize,i=this._storage,r=this.dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e?e.length:0),u=this._chunkCount,h=0;o>h;h++){var c=r[h];a[c]||(a[c]=$u()),i[c]||(i[c]=[]),Hu(i,this._dimensionInfos[c],n,u,l),this._chunkCount=i[c].length}for(var d=new Array(o),f=s;l>f;f++){for(var p=f-s,g=Math.floor(f/n),v=f%n,m=0;o>m;m++){var c=r[m],y=this._dimValueGetterArrayRows(t[p]||d,c,p,m);i[c][g][v]=y;var x=a[c];y<x[0]&&(x[0]=y),y>x[1]&&(x[1]=y)}e&&(this._nameList[f]=e[p])}this._rawCount=this._count=l,this._extent={},Gu(this)},Ub._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,i=this._chunkSize,r=this._rawData,o=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;s>p;p++){var g=a[p];c[g]||(c[g]=$u());var v=l[g];0===v.otherDims.itemName&&(n=this._nameDimIdx=p),0===v.otherDims.itemId&&(this._idDimIdx=p),o[g]||(o[g]=[]),Hu(o,v,i,f,e),this._chunkCount=o[g].length}for(var m=new Array(s),y=t;e>y;y++){m=r.getItem(y,m);for(var x=Math.floor(y/i),_=y%i,w=0;s>w;w++){var g=a[w],b=o[g][x],S=this._dimValueGetter(m,g,y,w);b[_]=S;var M=c[g];S<M[0]&&(M[0]=S),S>M[1]&&(M[1]=S)}if(!r.pure){var C=u[y];if(m&&null==C)if(null!=m.name)u[y]=C=m.name;else if(null!=n){var I=a[n],T=o[I][x];if(T){C=T[_];var A=l[I].ordinalMeta;A&&A.categories.length&&(C=A.categories[C])}}var D=null==m?null:m.id;null==D&&null!=C&&(d[C]=d[C]||0,D=C,d[C]>0&&(D+="__ec__"+d[C]),d[C]++),null!=D&&(h[y]=D)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},Gu(this)}},Ub.count=function(){return this._count},Ub.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;i>r;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else for(var n=Nu(this),t=new n(this.count()),r=0;r<t.length;r++)t[r]=r;return t},Ub.get=function(t,e){if(!(e>=0&&e<this._count))return 0/0; var n=this._storage;if(!n[t])return 0/0;e=this.getRawIndex(e);var i=Math.floor(e/this._chunkSize),r=e%this._chunkSize,o=n[t][i],a=o[r];return a},Ub.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return 0/0;var n=this._storage[t];if(!n)return 0/0;var i=Math.floor(e/this._chunkSize),r=e%this._chunkSize,o=n[i];return o[r]},Ub._getFast=function(t,e){var n=Math.floor(e/this._chunkSize),i=e%this._chunkSize,r=this._storage[t][n];return r[i]},Ub.getValues=function(t,e){var n=[];_(t)||(e=t,t=this.dimensions);for(var i=0,r=t.length;r>i;i++)n.push(this.get(t[i],e));return n},Ub.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,n=0,i=e.length;i>n;n++)if(isNaN(this.get(e[n],t)))return!1;return!0},Ub.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],n=$u();if(!e)return n;var i,r=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();i=n;for(var a=i[0],s=i[1],l=0;r>l;l++){var u=this._getFast(t,this.getRawIndex(l));a>u&&(a=u),u>s&&(s=u)}return i=[a,s],this._extent[t]=i,i},Ub.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},Ub.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Ub.getCalculationInfo=function(t){return this._calculationInfo[t]},Ub.setCalculationInfo=function(t,e){Bb(t)?a(this._calculationInfo,t):this._calculationInfo[t]=e},Ub.getSum=function(t){var e=this._storage[t],n=0;if(e)for(var i=0,r=this.count();r>i;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},Ub.getMedian=function(t){var e=[];this.each(t,function(t){isNaN(t)||e.push(t)});var n=[].concat(e).sort(function(t,e){return t-e}),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},Ub.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n[e];return null==i||isNaN(i)?Nb:i},Ub.indexOfName=function(t){for(var e=0,n=this.count();n>e;e++)if(this.getName(e)===t)return e;return-1},Ub.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;r>=i;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},Ub.indicesOfNearest=function(t,e,n){var i=this._storage,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();h>u;u++){var c=e-this.get(t,u),d=Math.abs(c);n>=d&&((a>d||d===a&&c>=0&&0>s)&&(a=d,s=c,l=0),c===s&&(o[l++]=u))}return o.length=l,o},Ub.getRawIndex=Xu,Ub.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];e.push(this.get(i,t))}return e},Ub.getName=function(t){var e=this.getRawIndex(t);return this._nameList[e]||Wu(this,this._nameDimIdx,e)||""},Ub.getId=function(t){return Zu(this,this.getRawIndex(t))},Ub.each=function(t,e,n,i){if(this._count){"function"==typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this,t=p(Uu(t),this.getDimension,this);for(var r=t.length,o=0;o<this.count();o++)switch(r){case 0:e.call(n,o);break;case 1:e.call(n,this.get(t[0],o),o);break;case 2:e.call(n,this.get(t[0],o),this.get(t[1],o),o);break;default:for(var a=0,s=[];r>a;a++)s[a]=this.get(t[a],o);s[a]=o,e.apply(n,s)}}},Ub.filterSelf=function(t,e,n,i){if(this._count){"function"==typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this,t=p(Uu(t),this.getDimension,this);for(var r=this.count(),o=Nu(this),a=new o(r),s=[],l=t.length,u=0,h=t[0],c=0;r>c;c++){var d,f=this.getRawIndex(c);if(0===l)d=e.call(n,c);else if(1===l){var g=this._getFast(h,f);d=e.call(n,g,c)}else{for(var v=0;l>v;v++)s[v]=this._getFast(h,f);s[v]=c,d=e.apply(n,s)}d&&(a[u++]=f)}return r>u&&(this._indices=a),this._count=u,this._extent={},this.getRawIndex=this._indices?Yu:Xu,this}},Ub.selectRange=function(t){if(this._count){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);var i=e.length;if(i){var r=this.count(),o=Nu(this),a=new o(r),s=0,l=e[0],u=t[l][0],h=t[l][1],c=!1;if(!this._indices){var d=0;if(1===i){for(var f=this._storage[e[0]],p=0;p<this._chunkCount;p++)for(var g=f[p],v=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;v>m;m++){var y=g[m];(y>=u&&h>=y||isNaN(y))&&(a[s++]=d),d++}c=!0}else if(2===i){for(var f=this._storage[l],x=this._storage[e[1]],_=t[e[1]][0],w=t[e[1]][1],p=0;p<this._chunkCount;p++)for(var g=f[p],b=x[p],v=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;v>m;m++){var y=g[m],S=b[m];(y>=u&&h>=y||isNaN(y))&&(S>=_&&w>=S||isNaN(S))&&(a[s++]=d),d++}c=!0}}if(!c)if(1===i)for(var m=0;r>m;m++){var M=this.getRawIndex(m),y=this._getFast(l,M);(y>=u&&h>=y||isNaN(y))&&(a[s++]=M)}else for(var m=0;r>m;m++){for(var C=!0,M=this.getRawIndex(m),p=0;i>p;p++){var I=e[p],y=this._getFast(n,M);(y<t[I][0]||y>t[I][1])&&(C=!1)}C&&(a[s++]=this.getRawIndex(m))}return r>s&&(this._indices=a),this._count=s,this._extent={},this.getRawIndex=this._indices?Yu:Xu,this}}},Ub.mapArray=function(t,e,n,i){"function"==typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n),r},Ub.map=function(t,e,n,i){n=n||i||this,t=p(Uu(t),this.getDimension,this);var r=ju(this,t);r._indices=this._indices,r.getRawIndex=r._indices?Yu:Xu;for(var o=r._storage,a=[],s=this._chunkSize,l=t.length,u=this.count(),h=[],c=r._rawExtent,d=0;u>d;d++){for(var f=0;l>f;f++)h[f]=this.get(t[f],d);h[l]=d;var g=e&&e.apply(n,h);if(null!=g){"object"!=typeof g&&(a[0]=g,g=a);for(var v=this.getRawIndex(d),m=Math.floor(v/s),y=v%s,x=0;x<g.length;x++){var _=t[x],w=g[x],b=c[_],S=o[_];S&&(S[m][y]=w),w<b[0]&&(b[0]=w),w>b[1]&&(b[1]=w)}}}return r},Ub.downSample=function(t,e,n,i){for(var r=ju(this,[t]),o=r._storage,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=this._chunkSize,c=r._rawExtent[t],d=new(Nu(this))(u),f=0,p=0;u>p;p+=s){s>u-p&&(s=u-p,a.length=s);for(var g=0;s>g;g++){var v=this.getRawIndex(p+g),m=Math.floor(v/h),y=v%h;a[g]=l[m][y]}var x=n(a),_=this.getRawIndex(Math.min(p+i(a,x)||0,u-1)),w=Math.floor(_/h),b=_%h;l[w][b]=x,x<c[0]&&(c[0]=x),x>c[1]&&(c[1]=x),d[f++]=_}return r._count=f,r._indices=d,r.getRawIndex=Yu,r},Ub.getItemModel=function(t){var e=this.hostModel;return new ha(this.getRawDataItem(t),e,e&&e.ecModel)},Ub.diff=function(t){var e=this;return new Pu(t?t.getIndices():[],this.getIndices(),function(e){return Zu(t,e)},function(t){return Zu(e,t)})},Ub.getVisual=function(t){var e=this._visual;return e&&e[t]},Ub.setVisual=function(t,e){if(Bb(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},Ub.setLayout=function(t,e){if(Bb(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},Ub.getLayout=function(t){return this._layout[t]},Ub.getItemLayout=function(t){return this._itemLayouts[t]},Ub.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?a(this._itemLayouts[t]||{},e):e},Ub.clearItemLayouts=function(){this._itemLayouts.length=0},Ub.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},Ub.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=i,Bb(e))for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o],r[o]=!0);else i[e]=n,r[e]=!0},Ub.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var jb=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};Ub.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(jb,e)),this._graphicEls[t]=e},Ub.getItemGraphicEl=function(t){return this._graphicEls[t]},Ub.eachItemGraphicEl=function(t,e){f(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},Ub.cloneShallow=function(t){if(!t){var e=p(this.dimensions,this.getDimensionInfo,this);t=new Zb(e,this.hostModel)}if(t._storage=this._storage,Vu(t,this),this._indices){var n=this._indices.constructor;t._indices=new n(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?Yu:Xu,t},Ub.wrapMethod=function(t,e){var n=this[t];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(P(arguments)))})},Ub.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],Ub.CHANGABLE_METHODS=["filterSelf","selectRange"];var qb=function(t,e){return e=e||{},Ku(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})},$b={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis")[0],o=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),nh(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),nh(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],n.set("single",r),nh(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar")[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),nh(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),nh(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();f(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),nh(s)&&null==e.firstCategoryDimIndex&&(i.set(l,s),e.firstCategoryDimIndex=o)})}};uh.prototype.parse=function(t){return t},uh.prototype.getSetting=function(t){return this._setting[t]},uh.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},uh.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},uh.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},uh.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},uh.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},uh.prototype.getExtent=function(){return this._extent.slice()},uh.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},uh.prototype.isBlank=function(){return this._isBlank},uh.prototype.setBlank=function(t){this._isBlank=t},uh.prototype.getLabel=null,fr(uh),mr(uh,{registerWhenExtend:!0}),hh.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&p(n,dh);return new hh({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})};var Kb=hh.prototype;Kb.getOrdinal=function(t){return ch(this).get(t)},Kb.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=ch(this);return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=0/0),e};var Qb=uh.prototype,Jb=uh.extend({type:"ordinal",init:function(t,e){(!t||_(t))&&(t=new hh({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),Qb.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return Qb.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(Qb.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){return this.isBlank()?void 0:this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:V,niceExtent:V});Jb.create=function(){return new Jb};var tS=xa,eS=xa,nS=uh.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),nS.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=ph(t)},getTicks:function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]<i[0]&&o.push(t?eS(i[0]-e):n[0]);for(var s=i[0];s<=i[1]&&(o.push(s),s=eS(s+e,r),s!==o[o.length-1]);)if(o.length>a)return[];var l=o.length?o[o.length-1]:i[1];return n[1]>l&&o.push(t?l+e:n[1]),o},getMinorTicks:function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=o-a,h=u/t;t-1>s;){var c=xa(a+(s+1)*h);c>i[0]&&c<i[1]&&l.push(c),s++}n.push(l)}return n},getLabel:function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=ba(t)||0:"auto"===n&&(n=this._intervalPrecision),t=eS(t,n,!0),za(t)},niceTicks:function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){0>r&&(r=-r,i.reverse());var o=fh(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=eS(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=eS(Math.ceil(e[1]/r)*r))}});nS.create=function(){return new nS};var iS="__ec_stack_",rS=.5,oS="undefined"!=typeof Float32Array?Float32Array:Array,aS={seriesType:"bar",plan:dw(),reset:function(t){function e(t,e){for(var n,c=t.count,d=new oS(2*c),f=new oS(c),p=[],g=[],v=0,m=0;null!=(n=t.next());)g[u]=e.get(a,n),g[1-u]=e.get(s,n),p=i.dataToPoint(g,null,p),d[v++]=p[0],d[v++]=p[1],f[m++]=n;e.setLayout({largePoints:d,largeDataIndices:f,barWidth:h,valueAxisStart:Th(r,o,!1),valueAxisHorizontal:l})}if(Ch(t)&&Ih(t)){var n=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),o=i.getOtherAxis(r),a=n.mapDimension(o.dim),s=n.mapDimension(r.dim),l=o.isHorizontal(),u=l?0:1,h=Sh(wh([t]),r,t).width;return h>rS||(h=rS),{progress:e}}}},sS=nS.prototype,lS=Math.ceil,uS=Math.floor,hS=1e3,cS=60*hS,dS=60*cS,fS=24*dS,pS=function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},gS=nS.extend({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return Ha(e[0],n,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=fS,e[1]+=fS),e[1]===-1/0&&1/0===e[0]){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-fS}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=xa(uS(e[0]/i)*i)),t.fixMax||(e[1]=xa(lS(e[1]/i)*i))},niceTicks:function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0],o=r/t;null!=e&&e>o&&(o=e),null!=n&&o>n&&(o=n);var a=vS.length,s=pS(vS,o,0,a),l=vS[Math.min(s,a-1)],u=l[1];if("year"===l[0]){var h=r/u,c=ka(h/t,!0);u*=c}var d=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,f=[Math.round(lS((i[0]-d)/u)*u+d),Math.round(uS((i[1]-d)/u)*u+d)];vh(f,i),this._stepLvl=l,this._interval=u,this._niceExtent=f},parse:function(t){return+Ta(t)}});f(["contain","normalize"],function(t){gS.prototype[t]=function(e){return sS[t].call(this,this.parse(e))}});var vS=[["hh:mm:ss",hS],["hh:mm:ss",5*hS],["hh:mm:ss",10*hS],["hh:mm:ss",15*hS],["hh:mm:ss",30*hS],["hh:mm\nMM-dd",cS],["hh:mm\nMM-dd",5*cS],["hh:mm\nMM-dd",10*cS],["hh:mm\nMM-dd",15*cS],["hh:mm\nMM-dd",30*cS],["hh:mm\nMM-dd",dS],["hh:mm\nMM-dd",2*dS],["hh:mm\nMM-dd",6*dS],["hh:mm\nMM-dd",12*dS],["MM-dd\nyyyy",fS],["MM-dd\nyyyy",2*fS],["MM-dd\nyyyy",3*fS],["MM-dd\nyyyy",4*fS],["MM-dd\nyyyy",5*fS],["MM-dd\nyyyy",6*fS],["week",7*fS],["MM-dd\nyyyy",10*fS],["week",14*fS],["week",21*fS],["month",31*fS],["week",42*fS],["month",62*fS],["week",70*fS],["quarter",95*fS],["month",31*fS*4],["month",31*fS*5],["half-year",380*fS/2],["month",31*fS*8],["month",31*fS*10],["year",380*fS]];gS.create=function(t){return new gS({useUTC:t.ecModel.get("useUTC")})};var mS=uh.prototype,yS=nS.prototype,xS=ba,_S=xa,wS=Math.floor,bS=Math.ceil,SS=Math.pow,MS=Math.log,CS=uh.extend({type:"log",base:10,$constructor:function(){uh.apply(this,arguments),this._originalScale=new nS},getTicks:function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return p(yS.getTicks.call(this,t),function(t){var r=xa(SS(this.base,t));return r=t===n[0]&&e.__fixMin?Ah(r,i[0]):r,r=t===n[1]&&e.__fixMax?Ah(r,i[1]):r},this)},getMinorTicks:yS.getMinorTicks,getLabel:yS.getLabel,scale:function(t){return t=mS.scale.call(this,t),SS(this.base,t)},setExtent:function(t,e){var n=this.base;t=MS(t)/MS(n),e=MS(e)/MS(n),yS.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=mS.getExtent.call(this);e[0]=SS(t,e[0]),e[1]=SS(t,e[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(e[0]=Ah(e[0],i[0])),n.__fixMax&&(e[1]=Ah(e[1],i[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=MS(t[0])/MS(e),t[1]=MS(t[1])/MS(e),mS.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var i=Aa(n),r=t/n*i;for(.5>=r&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[xa(bS(e[0]/i)*i),xa(wS(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},niceExtent:function(t){yS.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});f(["contain","normalize"],function(t){CS.prototype[t]=function(e){return e=MS(e)/MS(this.base),mS[t].call(this,e)}}),CS.create=function(){return new CS};var IS={getMin:function(t){var e=this.option,n=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&"function"!=typeof n&&!T(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(t){var e=this.option,n=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&"function"!=typeof n&&!T(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var t=this.option;return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},getCoordSysModel:V,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},TS=co({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),AS=co({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),DS=co({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),d=Math.cos(u),f=.6*a,p=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*f,l+s+d*f,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-h+c*f,l+s+d*f,n-h,l+s),t.closePath()}}),kS=co({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),PS={line:Ax,rect:Ix,roundRect:Ix,square:Ix,circle:px,diamond:AS,pin:DS,arrow:kS,triangle:TS},OS={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},LS={};f(PS,function(t,e){LS[e]=new t});var zS=co({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=Un(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.textPosition&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=LS[i];r||(i="rect",r=LS[i]),OS[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}}),ES={isDimensionStacked:rh,enableDataStack:ih,getStackedDimension:oh},BS=(Object.freeze||Object)({createList:Gh,getLayoutRect:Za,dataStack:ES,createScale:Wh,mixinAxisModelCommonMethods:Xh,completeDimensions:Ku,createDimensions:qb,createSymbol:Hh}),RS=1e-8;Uh.prototype={constructor:Uh,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],i=[-e,-e],r=[],o=[],a=this.geometries,s=0;s<a.length;s++)if("polygon"===a[s].type){var l=a[s].exterior;Or(l,r,o),ae(n,n,r),se(i,i,o)}return 0===s&&(n[0]=n[1]=i[0]=i[1]=0),this._rect=new Sn(n[0],n[1],i[0]-n[0],i[1]-n[1])},contain:function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;r>i;i++)if("polygon"===n[i].type){var o=n[i].exterior,a=n[i].interiors;if(Zh(o,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(Zh(a[s]))continue t;return!0}}return!1},transformTo:function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new Sn(t,e,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++)if("polygon"===l[u].type){for(var h=l[u].exterior,c=l[u].interiors,d=0;d<h.length;d++)oe(h[d],h[d],s);for(var f=0;f<(c?c.length:0);f++)for(var d=0;d<c[f].length;d++)oe(c[f][d],c[f][d],s)}r=this._rect,r.copy(a),this.center=[r.x+r.width/2,r.y+r.height/2]},cloneShallow:function(t){null==t&&(t=this.name);var e=new Uh(t,this.geometries,this.center);return e._rect=this._rect,e.transformTo=null,e}};var NS=function(t){return jh(t),p(v(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var e=t.properties,n=t.geometry,i=n.coordinates,r=[];"Polygon"===n.type&&r.push({type:"polygon",exterior:i[0],interiors:i.slice(1)}),"MultiPolygon"===n.type&&f(i,function(t){t[0]&&r.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var o=new Uh(e.name,r,e.cp);return o.properties=e,o})},FS=or(),VS=[0,1],HS=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};HS.prototype={constructor:HS,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&i>=t},containData:function(t){return this.scale.contain(t)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return Sa(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),hc(n,i.count())),ma(t,VS,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),hc(n,i.count()));var r=ma(t,n,VS,e);return this.scale.scale(r)},pointToData:function(){},getTicksCoords:function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=Kh(this,e),i=n.ticks,r=p(i,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),o=e.get("alignWithLabel");return cc(this,r,o,t.clamp),r},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&100>e||(e=5);var n=this.scale.getMinorTicks(e),i=p(n,function(t){return p(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this);return i},getViewLabels:function(){return $h(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return ac(this)}};var GS=NS,WS={};f(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){WS[t]=Jg[t]});var XS={};f(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(t){XS[t]=Kx[t]});var YS=function(t){this._axes={},this._dimList=[],this.name=t||""};YS.prototype={constructor:YS,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return p(this._dimList,dc,this)},getAxesByScale:function(t){return t=t.toLowerCase(),v(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},r=0;r<n.length;r++){var o=n[r],a=this._axes[o];i[o]=a[e](t[o])}return i}},fc.prototype={constructor:fc,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,n){var i=this.getAxis("x"),r=this.getAxis("y");return n=n||[],n[0]=i.toGlobalCoord(i.dataToCoord(t[0])),n[1]=r.toGlobalCoord(r.dataToCoord(t[1])),n},clampData:function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},pointToData:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return e=e||[],e[0]=n.coordToData(n.toLocalCoord(t[0])),e[1]=i.coordToData(i.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")},getArea:function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i,a=new Sn(n,i,r,o);return a}},h(fc,YS);var ZS=function(t,e,n,i,r){HS.call(this,t,e,n),this.type=i||"value",this.position=r||"bottom"};ZS.prototype={constructor:ZS,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},h(ZS,HS);var US={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},jS={};jS.categoryAxis=r({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},US),jS.valueAxis=r({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},US),jS.timeAxis=s({scale:!0,min:"dataMin",max:"dataMax"},jS.valueAxis),jS.logAxis=s({scale:!0,logBase:10},jS.valueAxis);var qS=["value","category","time","log"],$S=function(t,e,n,i){f(qS,function(a){e.extend({type:t+"Axis."+a,mergeDefaultAndTheme:function(e,i){var o=this.layoutMode,s=o?qa(e):{},l=i.getTheme();r(e,l.get(a+"Axis")),r(e,this.getDefaultOption()),e.type=n(t,e),o&&ja(e,s,o)},optionUpdated:function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=hh.createByAxisModel(this))},getCategories:function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:o([{},jS[a+"Axis"],i],!0)})}),b_.registerSubTypeDefaulter(t+"Axis",x(n,t))},KS=b_.extend({type:"cartesian2dAxis",axis:null,init:function(){KS.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){KS.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){KS.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});r(KS.prototype,IS);var QS={offset:0};$S("x",KS,pc,QS),$S("y",KS,pc,QS),b_.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});var JS=vc.prototype;JS.type="grid",JS.axisPointerEnabled=!0,JS.getRect=function(){return this._rect},JS.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),f(n.x,function(t){Ph(t.scale,t.model)}),f(n.y,function(t){Ph(t.scale,t.model)});var i={};f(n.x,function(t){mc(n,"y",t,i)}),f(n.y,function(t){mc(n,"x",t,i)}),this.resize(this.model,e)},JS.resize=function(t,e,n){function i(){f(o,function(t){var e=t.isHorizontal(),n=e?[0,r.width]:[0,r.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),xc(t,e?r.x:r.y)})}var r=Za(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=r;var o=this._axesList;i(),!n&&t.get("containLabel")&&(f(o,function(t){if(!t.model.get("axisLabel.inside")){var e=Bh(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get("axisLabel.margin");r[n]-=e[n]+i,"top"===t.position?r.y+=e.height+i:"left"===t.position&&(r.x+=e.width+i)}}}),i())},JS.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[e]}},JS.getAxes=function(){return this._axesList.slice()},JS.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}S(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},JS.getCartesians=function(){return this._coordsList.slice()},JS.convertToPixel=function(t,e,n){var i=this._findConvertTarget(t,e); return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},JS.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},JS._findConvertTarget=function(t,e){var n,i,r=e.seriesModel,o=e.xAxisModel||r&&r.getReferringComponents("xAxis")[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=e.gridModel,l=this._coordsList;if(r)n=r.coordinateSystem,u(l,n)<0&&(n=null);else if(o&&a)n=this.getCartesian(o.componentIndex,a.componentIndex);else if(o)i=this.getAxis("x",o.componentIndex);else if(a)i=this.getAxis("y",a.componentIndex);else if(s){var h=s.coordinateSystem;h===this&&(n=this._coordsList[0])}return{cartesian:n,axis:i}},JS.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},JS._initCartesian=function(t,e){function n(n){return function(a,s){if(gc(a,t,e)){var l=a.get("position");"x"===n?"top"!==l&&"bottom"!==l&&(l=i.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=i.left?"right":"left"),i[l]=!0;var u=new ZS(n,Oh(a),[0,0],a.get("type"),l),h="category"===u.type;u.onBand=h&&a.get("boundaryGap"),u.inverse=a.get("inverse"),a.axis=u,u.model=a,u.grid=this,u.index=s,this._axesList.push(u),r[n][s]=u,o[n]++}}}var i={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},o={x:0,y:0};return e.eachComponent("xAxis",n("x"),this),e.eachComponent("yAxis",n("y"),this),o.x&&o.y?(this._axesMap=r,void f(r.x,function(e,n){f(r.y,function(i,r){var o="x"+n+"y"+r,a=new fc(o);a.grid=this,a.model=t,this._coordsMap[o]=a,this._coordsList.push(a),a.addAxis(e),a.addAxis(i)},this)},this)):(this._axesMap={},void(this._axesList=[]))},JS._updateScale=function(t,e){function n(t,e){f(t.mapDimension(e.dim,!0),function(n){e.scale.unionExtentFromData(t,oh(t,n))})}f(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(i){if(wc(i)){var r=_c(i,t),o=r[0],a=r[1];if(!gc(o,e,t)||!gc(a,e,t))return;var s=this.getCartesian(o.componentIndex,a.componentIndex),l=i.getData(),u=s.getAxis("x"),h=s.getAxis("y");"list"===l.type&&(n(l,u,i),n(l,h,i))}},this)},JS.getTooltipAxes=function(t){var e=[],n=[];return f(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);u(e,r)<0&&e.push(r),u(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}};var tM=["xAxis","yAxis"];vc.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,r){var o=new vc(i,t,e);o.name="grid_"+r,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(e){if(wc(e)){var n=_c(e,t),i=n[0],r=n[1],o=i.getCoordSysModel(),a=o.coordinateSystem;e.coordinateSystem=a.getCartesian(i.componentIndex,r.componentIndex)}}),n},vc.dimensions=vc.prototype.dimensions=fc.prototype.dimensions,_s.register("cartesian2d",vc);var eM=uw.extend({type:"series.__base_bar__",getInitialData:function(){return ah(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size"),a=e.getBaseAxis().isHorizontal()?0:1;return n[a]+=r+o/2,n}return[0/0,0/0]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});eM.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},defaultOption:{clip:!0,roundCap:!1}});var nM=ay([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),iM={getBarItemStyle:function(t){var e=nM(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(e.lineDash=n)}return e}},rM=co({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=Math.cos(l),d=Math.sin(l),f=Math.cos(u),p=Math.sin(u),g=h?u-l<2*Math.PI:l-u<2*Math.PI;g&&(t.moveTo(c*r+n,d*r+i),t.arc(c*s+n,d*s+i,a,-Math.PI+l,l,!h)),t.arc(n,i,o,l,u,!h),t.moveTo(f*o+n,p*o+i),t.arc(f*s+n,p*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==r&&(t.arc(n,i,r,u,l,h),t.moveTo(c*r+n,p*r+i)),t.closePath()}}),oM=["itemStyle","barBorderWidth"],aM=[0,0];a(ha.prototype,iM),Iu({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var i=t.get("coordinateSystem");return("cartesian2d"===i||"polar"===i)&&(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n)),this.group},incrementalPrepareRender:function(t){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t){var e,n=this.group,i=t.getData(),r=this._data,o=t.coordinateSystem,a=o.getBaseAxis();"cartesian2d"===o.type?e=a.isHorizontal():"polar"===o.type&&(e="angle"===a.dim);var s=t.isAnimationEnabled()?t:null,l=t.get("clip",!0),u=Ac(o,i);n.removeClipPath();var h=t.get("roundCap",!0);i.diff(r).add(function(r){if(i.hasValue(r)){var a=i.getItemModel(r),c=cM[o.type](i,r,a);if(l){var d=uM[o.type](u,c);if(d)return void n.remove(f)}var f=hM[o.type](r,c,e,s,!1,h);i.setItemGraphicEl(r,f),n.add(f),Oc(f,i,r,a,c,t,e,"polar"===o.type)}}).update(function(a,c){var d=r.getItemGraphicEl(c);if(!i.hasValue(a))return void n.remove(d);var f=i.getItemModel(a),p=cM[o.type](i,a,f);if(l){var g=uM[o.type](u,p);if(g)return void n.remove(d)}d?Ko(d,{shape:p},s,a):d=hM[o.type](a,p,e,s,!0,h),i.setItemGraphicEl(a,d),n.add(d),Oc(d,i,a,f,p,t,e,"polar"===o.type)}).remove(function(t){var e=r.getItemGraphicEl(t);"cartesian2d"===o.type?e&&Dc(t,s,e):e&&kc(t,s,e)}).execute(),this._data=i},_renderLarge:function(t){this._clear(),zc(t,this.group);var e=t.get("clip",!0)?Tc(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},_incrementalRenderLarge:function(t,e){zc(e,this.group,!0)},dispose:V,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,n=this._data;t&&t.get("animation")&&n&&!this._isLargeDraw?n.eachItemGraphicEl(function(e){"sector"===e.type?kc(e.dataIndex,t,e):Dc(e.dataIndex,t,e)}):e.removeAll(),this._data=null}});var sM=Math.max,lM=Math.min,uM={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;0>n&&(e.x+=e.width,e.width=-e.width),0>i&&(e.y+=e.height,e.height=-e.height);var r=sM(e.x,t.x),o=lM(e.x+e.width,t.x+t.width),a=sM(e.y,t.y),s=lM(e.y+e.height,t.y+t.height);e.x=r,e.y=a,e.width=o-r,e.height=s-a;var l=e.width<0||e.height<0;return 0>n&&(e.x+=e.width,e.width=-e.width),0>i&&(e.y+=e.height,e.height=-e.height),l},polar:function(){return!1}},hM={cartesian2d:function(t,e,n,i,r){var o=new Ix({shape:a({},e)});if(i){var s=o.shape,l=n?"height":"width",u={};s[l]=0,u[l]=e[l],Kx[r?"updateProps":"initProps"](o,{shape:u},i,t)}return o},polar:function(t,e,n,i,r,o){var a=e.startAngle<e.endAngle,l=!n&&o?rM:mx,u=new l({shape:s({clockwise:a},e)});if(i){var h=u.shape,c=n?"r":"endAngle",d={};h[c]=n?0:e.startAngle,d[c]=e[c],Kx[r?"updateProps":"initProps"](u,{shape:d},i,t)}return u}},cM={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=Lc(n,i),o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}},dM=Kr.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o<n.length;o+=2)i[r]=n[o+r],t.moveTo(i[0],i[1]),t.lineTo(n[o],n[o+1])}}),fM=hl(function(t){var e=this,n=Ec(e,t.offsetX,t.offsetY);e.dataIndex=n>=0?n:null},30,!1),pM=Math.PI,gM=function(t,e){this.opt=e,this.axisModel=t,s(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new Qv;var n=new Qv({position:e.position.slice(),rotation:e.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};gM.prototype={constructor:gM,hasBuilder:function(t){return!!vM[t]},add:function(t){vM[t].call(this)},getGroup:function(){return this.group}};var vM={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),i=this._transform,r=[n[0],0],o=[n[1],0];i&&(oe(r,r,i),oe(o,o,i));var s=a({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new Ax({anid:"line",subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:o[0],y2:o[1]},style:s,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1}));var l=e.get("axisLine.symbol"),u=e.get("axisLine.symbolSize"),h=e.get("axisLine.symbolOffset")||0;if("number"==typeof h&&(h=[h,h]),null!=l){"string"==typeof l&&(l=[l,l]),("string"==typeof u||"number"==typeof u)&&(u=[u,u]);var c=u[0],d=u[1];f([{rotate:t.rotation+Math.PI/2,offset:h[0],r:0},{rotate:t.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((r[0]-o[0])*(r[0]-o[0])+(r[1]-o[1])*(r[1]-o[1]))}],function(e,n){if("none"!==l[n]&&null!=l[n]){var i=Hh(l[n],-c/2,-d/2,c,d,s.stroke,!0),o=e.r+e.offset,a=[r[0]+o*Math.cos(t.rotation),r[1]-o*Math.sin(t.rotation)];i.attr({rotation:e.rotate,position:a,silent:!0,z2:11}),this.group.add(i)}},this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,n=Wc(this,t,e),i=Yc(this,t,e);Nc(t,i,n),Xc(this,t,e)},axisName:function(){var t=this.opt,e=this.axisModel,n=A(t.axisName,e.get("name"));if(n){var i,r=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=this.axisModel.axis.getExtent(),h=u[0]>u[1]?-1:1,c=["start"===r?u[0]-h*l:"end"===r?u[1]+h*l:(u[0]+u[1])/2,Hc(r)?t.labelOffset+o*l:0],d=e.get("nameRotate");null!=d&&(d=d*pM/180);var f;Hc(r)?i=yM(t.rotation,null!=d?d:t.rotation,o):(i=Rc(t,r,d||0,u),f=t.axisNameAvailableWidth,null!=f&&(f=Math.abs(f/Math.sin(i.rotation)),!isFinite(f)&&(f=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},v=g.ellipsis,m=A(t.nameTruncateMaxWidth,g.maxWidth,f),y=null!=v&&null!=m?p_(n,m,p,v,{minChar:2,placeholder:g.placeholder}):n,x=e.get("tooltip",!0),_=e.mainType,w={componentType:_,name:n,$vars:["name"]};w[_+"Index"]=e.componentIndex;var b=new fx({anid:"name",__fullText:n,__truncatedText:y,position:c,rotation:i.rotation,silent:xM(e),z2:1,tooltip:x&&x.show?a({content:n,formatter:function(){return n},formatterParams:w},x):null});Ho(b.style,s,{text:y,textFont:p,textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:s.get("align")||i.textAlign,textVerticalAlign:s.get("verticalAlign")||i.textVerticalAlign}),e.get("triggerEvent")&&(b.eventData=mM(e),b.eventData.targetType="axisName",b.eventData.name=n),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},mM=gM.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},yM=gM.innerTextLayout=function(t,e,n){var i,r,o=Ca(e-t);return Ia(o)?(r=n>0?"top":"bottom",i="center"):Ia(o-pM)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&pM>o?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},xM=gM.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},_M=f,wM=x,bM=Mu({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,n,i){this.axisPointerClass&&Qc(t),bM.superApply(this,"render",arguments),id(this,t,e,n,i,!0)},updateAxisPointer:function(t,e,n,i){id(this,t,e,n,i,!1)},remove:function(t,e){var n=this._axisPointer;n&&n.remove(e),bM.superApply(this,"remove",arguments)},dispose:function(t,e){rd(this,e),bM.superApply(this,"dispose",arguments)}}),SM=[];bM.registerAxisPointerClass=function(t,e){SM[t]=e},bM.getAxisPointerClass=function(t){return t&&SM[t]};var MM=["axisLine","axisTickLabel","axisName"],CM=["splitArea","splitLine","minorSplitLine"],IM=bM.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,n,i){this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Qv,this.group.add(this._axisGroup),t.get("show")){var o=t.getCoordSysModel(),a=od(o,t),s=new gM(t,a);f(MM,s.add,s),this._axisGroup.add(s.getGroup()),f(CM,function(e){t.get(e+".show")&&this["_"+e](t,o)},this),na(r,this._axisGroup,t),IM.superCall(this,"render",t,e,n,i)}},remove:function(){this._splitAreaColors=null},_splitLine:function(t,e){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitLine"),r=i.getModel("lineStyle"),o=r.get("color");o=_(o)?o:[o];for(var a=e.coordinateSystem.getRect(),l=n.isHorizontal(),u=0,h=n.getTicksCoords({tickModel:i}),c=[],d=[],f=r.getLineStyle(),p=0;p<h.length;p++){var g=n.toGlobalCoord(h[p].coord);l?(c[0]=g,c[1]=a.y,d[0]=g,d[1]=a.y+a.height):(c[0]=a.x,c[1]=g,d[0]=a.x+a.width,d[1]=g);var v=u++%o.length,m=h[p].tickValue;this._axisGroup.add(new Ax({anid:null!=m?"line_"+h[p].tickValue:null,subPixelOptimize:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:s({stroke:o[v]},f),silent:!0}))}}},_minorSplitLine:function(t,e){var n=t.axis,i=t.getModel("minorSplitLine"),r=i.getModel("lineStyle"),o=e.coordinateSystem.getRect(),a=n.isHorizontal(),s=n.getMinorTicksCoords();if(s.length)for(var l=[],u=[],h=r.getLineStyle(),c=0;c<s.length;c++)for(var d=0;d<s[c].length;d++){var f=n.toGlobalCoord(s[c][d].coord);a?(l[0]=f,l[1]=o.y,u[0]=f,u[1]=o.y+o.height):(l[0]=o.x,l[1]=f,u[0]=o.x+o.width,u[1]=f),this._axisGroup.add(new Ax({anid:"minor_line_"+s[c][d].tickValue,subPixelOptimize:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,silent:!0}))}},_splitArea:function(t,e){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitArea"),r=i.getModel("areaStyle"),o=r.get("color"),a=e.coordinateSystem.getRect(),l=n.getTicksCoords({tickModel:i,clamp:!0});if(l.length){var u=o.length,h=this._splitAreaColors,c=N(),d=0;if(h)for(var f=0;f<l.length;f++){var p=h.get(l[f].tickValue);if(null!=p){d=(p+(u-1)*f)%u;break}}var g=n.toGlobalCoord(l[0].coord),v=r.getAreaStyle();o=_(o)?o:[o];for(var f=1;f<l.length;f++){var m,y,x,w,b=n.toGlobalCoord(l[f].coord);n.isHorizontal()?(m=g,y=a.y,x=b-m,w=a.height,g=m+x):(m=a.x,y=g,x=a.width,w=b-y,g=y+w);var S=l[f-1].tickValue;null!=S&&c.set(S,d),this._axisGroup.add(new Ix({anid:null!=S?"area_"+S:null,shape:{x:m,y:y,width:x,height:w},style:s({fill:o[d]},v),silent:!0})),d=(d+1)%u}this._splitAreaColors=c}}}});IM.extend({type:"xAxis"}),IM.extend({type:"yAxis"}),Mu({type:"grid",render:function(t){this.group.removeAll(),t.get("show")&&this.group.add(new Ix({shape:t.coordinateSystem.getRect(),style:s({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),fu(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}),xu(fb.VISUAL.LAYOUT,x(Mh,"bar")),xu(fb.VISUAL.PROGRESSIVE_LAYOUT,aS),_u({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}}),uw.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(){return ah(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});var TM=ad.prototype,AM=ad.getSymbolSize=function(t,e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array?n.slice():[+n,+n]};TM._createSymbol=function(t,e,n,i,r){this.removeAll();var o=e.getItemVisual(n,"color"),a=Hh(t,-1,-1,2,2,o,r);a.attr({z2:100,culling:!0,scale:sd(i)}),a.drift=ld,this._symbolType=t,this.add(a)},TM.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},TM.getSymbolPath=function(){return this.childAt(0)},TM.getScale=function(){return this.childAt(0).scale},TM.highlight=function(){this.childAt(0).trigger("emphasis")},TM.downplay=function(){this.childAt(0).trigger("normal")},TM.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},TM.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},TM.updateData=function(t,e,n){this.silent=!1;var i=t.getItemVisual(e,"symbol")||"circle",r=t.hostModel,o=AM(t,e),a=i!==this._symbolType;if(a){var s=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(i,t,e,o,s)}else{var l=this.childAt(0);l.silent=!1,Ko(l,{scale:sd(o)},r,e)}if(this._updateCommon(t,e,o,n),a){var l=this.childAt(0),u=n&&n.fadeIn,h={scale:l.scale.slice()};u&&(h.style={opacity:l.style.opacity}),l.scale=[0,0],u&&(l.style.opacity=0),Qo(l,h,r,e)}this._seriesModel=r};var DM=["itemStyle"],kM=["emphasis","itemStyle"],PM=["label"],OM=["emphasis","label"];TM._updateCommon=function(t,e,n,i){function r(e){return b?t.getName(e):bc(t,e)}var o=this.childAt(0),s=t.hostModel,l=t.getItemVisual(e,"color");"image"!==o.type?o.useStyle({strokeNoScale:!0}):o.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var u=i&&i.itemStyle,h=i&&i.hoverItemStyle,c=i&&i.symbolRotate,d=i&&i.symbolOffset,f=i&&i.labelModel,p=i&&i.hoverLabelModel,g=i&&i.hoverAnimation,v=i&&i.cursorStyle;if(!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(e);u=m.getModel(DM).getItemStyle(["color"]),h=m.getModel(kM).getItemStyle(),c=m.getShallow("symbolRotate"),d=m.getShallow("symbolOffset"),f=m.getModel(PM),p=m.getModel(OM),g=m.getShallow("hoverAnimation"),v=m.getShallow("cursor")}else h=a({},h);var y=o.style;o.attr("rotation",(c||0)*Math.PI/180||0),d&&o.attr("position",[ya(d[0],n[0]),ya(d[1],n[1])]),v&&o.attr("cursor",v),o.setColor(l,i&&i.symbolInnerColor),o.setStyle(u);var x=t.getItemVisual(e,"opacity");null!=x&&(y.opacity=x);var _=t.getItemVisual(e,"liftZ"),w=o.__z2Origin;null!=_?null==w&&(o.__z2Origin=o.z2,o.z2+=_):null!=w&&(o.z2=w,o.__z2Origin=null);var b=i&&i.useNameLabel;Fo(y,h,f,p,{labelFetcher:s,labelDataIndex:e,defaultText:r,isRectText:!0,autoColor:l}),o.__symbolOriginalScale=sd(n),o.hoverStyle=h,o.highDownOnUpdate=g&&s.isAnimationEnabled()?ud:null,Eo(o)},TM.fadeOut=function(t,e){var n=this.childAt(0);this.silent=n.silent=!0,!(e&&e.keepLabel)&&(n.style.text=null),Ko(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},h(ad,Qv);var LM=hd.prototype;LM.updateData=function(t,e){e=dd(e);var n=this.group,i=t.hostModel,r=this._data,o=this._symbolCtor,a=fd(t);r||n.removeAll(),t.diff(r).add(function(i){var r=t.getItemLayout(i);if(cd(t,r,i,e)){var s=new o(t,i,a);s.attr("position",r),t.setItemGraphicEl(i,s),n.add(s)}}).update(function(s,l){var u=r.getItemGraphicEl(l),h=t.getItemLayout(s);return cd(t,h,s,e)?(u?(u.updateData(t,s,a),Ko(u,{position:h},i)):(u=new o(t,s),u.attr("position",h)),n.add(u),void t.setItemGraphicEl(s,u)):void n.remove(u)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)})}).execute(),this._data=t},LM.isPersistent=function(){return!0},LM.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,n){var i=t.getItemLayout(n);e.attr("position",i)})},LM.incrementalPrepareUpdate=function(t){this._seriesScope=fd(t),this._data=null,this.group.removeAll()},LM.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}n=dd(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(cd(e,o,r,n)){var a=new this._symbolCtor(e,r,this._seriesScope);a.traverse(i),a.attr("position",o),this.group.add(a),e.setItemGraphicEl(r,a)}}},LM.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()};var zM=function(t,e,n,i,r,o,a,s){for(var l=md(t,e),u=[],h=[],c=[],d=[],f=[],p=[],g=[],v=pd(r,e,a),m=pd(o,t,s),y=0;y<l.length;y++){var x=l[y],_=!0;switch(x.cmd){case"=":var w=t.getItemLayout(x.idx),b=e.getItemLayout(x.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=b.slice()),u.push(w),h.push(b),c.push(n[x.idx]),d.push(i[x.idx1]),g.push(e.getRawIndex(x.idx1));break;case"+":var S=x.idx;u.push(r.dataToPoint([e.get(v.dataDimsForPoint[0],S),e.get(v.dataDimsForPoint[1],S)])),h.push(e.getItemLayout(S).slice()),c.push(vd(v,r,e,S)),d.push(i[S]),g.push(e.getRawIndex(S));break;case"-":var S=x.idx,M=t.getRawIndex(S);M!==S?(u.push(t.getItemLayout(S)),h.push(o.dataToPoint([t.get(m.dataDimsForPoint[0],S),t.get(m.dataDimsForPoint[1],S)])),c.push(n[S]),d.push(vd(m,o,t,S)),g.push(M)):_=!1}_&&(f.push(x),p.push(p.length))}p.sort(function(t,e){return g[t]-g[e]});for(var C=[],I=[],T=[],A=[],D=[],y=0;y<p.length;y++){var S=p[y];C[y]=u[S],I[y]=h[S],T[y]=c[S],A[y]=d[S],D[y]=f[S]}return{current:C,next:I,stackedOnCurrent:T,stackedOnNext:A,status:D}},EM=ae,BM=se,RM=Z,NM=G,FM=[],VM=[],HM=[],GM=Kr.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:vx(Kr.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,o=bd(n,e.smoothConstraint);if(e.connectNulls){for(;r>0&&yd(n[r-1]);r--);for(;r>i&&yd(n[i]);i++);}for(;r>i;)i+=xd(t,n,i,r,r,1,o.min,o.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),WM=Kr.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:vx(Kr.prototype.brush),buildPath:function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length,a=e.smoothMonotone,s=bd(n,e.smoothConstraint),l=bd(i,e.smoothConstraint);if(e.connectNulls){for(;o>0&&yd(n[o-1]);o--);for(;o>r&&yd(n[r]);r++);}for(;o>r;){var u=xd(t,n,r,o,o,1,s.min,s.max,e.smooth,a,e.connectNulls);xd(t,i,r+u-1,u,o,-1,l.min,l.max,e.stackedOnSmooth,a,e.connectNulls),r+=u+1,t.closePath()}}});ol.extend({type:"line",init:function(){var t=new Qv,e=new hd;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=o.mapArray(o.getItemLayout),h="polar"===i.type,c=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,v=t.get("animation"),m=!l.isEmpty(),y=l.get("origin"),x=pd(i,o,y),_=Cd(i,o,x),w=t.get("showSymbol"),b=w&&!h&&Ad(t,o,i),S=this._data;S&&S.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),S.setItemGraphicEl(e,null))}),w||d.remove(),r.add(g);var M,C=!h&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(M=i.getArea(),null!=M.width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r1+=.5)),this._clipShapeForSymbol=M,f&&c.type===i.type&&C===this._step?(m&&!p?p=this._newPolygon(u,_,i,v):p&&!m&&(g.remove(p),p=this._polygon=null),g.setClipPath(kd(i,!1,t)),w&&d.updateData(o,{isIgnore:b,clipShape:M}),o.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),Sd(this._stackedOnPoints,_)&&Sd(this._points,u)||(v?this._updateAnimation(o,_,i,n,C,y):(C&&(u=Id(u,i,C),_=Id(_,i,C)),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:_})))):(w&&d.updateData(o,{isIgnore:b,clipShape:M}),C&&(u=Id(u,i,C),_=Id(_,i,C)),f=this._newPolyline(u,i,v),m&&(p=this._newPolygon(u,_,i,v)),g.setClipPath(kd(i,!0,t)));var I=Td(o,i)||o.getVisual("color");f.useStyle(s(a.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"}));var T=t.get("smooth");if(T=Md(t.get("smooth")),f.setShape({smooth:T,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var A=o.getCalculationInfo("stackedOnSeries"),D=0;p.useStyle(s(l.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel"})),A&&(D=Md(A.get("smooth"))),p.setShape({smooth:T,stackedOnSmooth:D,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=i,this._stackedOnPoints=_,this._points=u,this._step=C,this._valueOrigin=y},dispose:function(){},highlight:function(t,e,n,i){var r=t.getData(),o=rr(r,i);if(!(o instanceof Array)&&null!=o&&o>=0){var a=r.getItemGraphicEl(o);if(!a){var s=r.getItemLayout(o);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;a=new ad(r,o),a.position=s,a.setZ(t.get("zlevel"),t.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,r.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else ol.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),o=rr(r,i);if(null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else ol.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new GM({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new WM({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=zM(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),h=u.current,c=u.stackedOnCurrent,d=u.next,f=u.stackedOnNext;r&&(h=Id(u.current,n,r),c=Id(u.stackedOnCurrent,n,r),d=Id(u.next,n,r),f=Id(u.stackedOnNext,n,r)),a.shape.__points=u.current,a.shape.points=h,Ko(a,{shape:{points:d}},l),s&&(s.setShape({points:h,stackedOnPoints:c}),Ko(s,{shape:{points:d,stackedOnPoints:f}},l));for(var p=[],g=u.status,v=0;v<g.length;v++){var m=g[v].cmd;if("="===m){var y=t.getItemGraphicEl(g[v].idx1);y&&p.push({el:y,ptIdx:v})}}a.animators&&a.animators.length&&a.animators[0].during(function(){for(var t=0;t<p.length;t++){var e=p[t].el;e.attr("position",a.shape.__points[p[t].ptIdx])}})},remove:function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(n,i){n.__temp&&(t.remove(n),e.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});var XM=function(t,e,n){return{seriesType:t,performRawSeries:!0,reset:function(t,i){function r(e,n){if(c){var i=t.getRawValue(n),r=t.getDataParams(n);u&&e.setItemVisual(n,"symbol",a(i,r)),h&&e.setItemVisual(n,"symbolSize",s(i,r))}if(e.hasItemOption){var o=e.getItemModel(n),l=o.getShallow("symbol",!0),d=o.getShallow("symbolSize",!0),f=o.getShallow("symbolKeepAspect",!0);null!=l&&e.setItemVisual(n,"symbol",l),null!=d&&e.setItemVisual(n,"symbolSize",d),null!=f&&e.setItemVisual(n,"symbolKeepAspect",f)}}var o=t.getData(),a=t.get("symbol"),s=t.get("symbolSize"),l=t.get("symbolKeepAspect"),u=w(a),h=w(s),c=u||h,d=!u&&a?a:e,f=h?null:s;return o.setVisual({legendSymbol:n||d,symbol:d,symbolSize:f,symbolKeepAspect:l}),i.isSeriesFiltered(t)?void 0:{dataEach:o.hasItemOption||c?r:null}}}},YM=function(t){return{seriesType:t,plan:dw(),reset:function(t){function e(t,e){for(var n=t.end-t.start,r=o&&new Float32Array(n*s),l=t.start,u=0,h=[],c=[];l<t.end;l++){var d;if(1===s){var f=e.get(a[0],l);d=!isNaN(f)&&i.dataToPoint(f,null,c)}else{var f=h[0]=e.get(a[0],l),p=h[1]=e.get(a[1],l);d=!isNaN(f)&&!isNaN(p)&&i.dataToPoint(h,null,c)}o?(r[u++]=d?d[0]:0/0,r[u++]=d?d[1]:0/0):e.setItemLayout(l,d&&d.slice()||[0/0,0/0])}o&&e.setLayout("symbolPoints",r)}var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=r.large;if(i){var a=p(i.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");return rh(n,a[0])&&(a[0]=l),rh(n,a[1])&&(a[1]=l),s&&{progress:e}}}}},ZM={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?0/0:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:0/0},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:0/0},nearest:function(t){return t[0]}},UM=function(t){return Math.round(t.length/2)},jM=function(t){return{seriesType:t,modifyOutputEnd:!0,reset:function(t){var e=t.getData(),n=t.get("sampling"),i=t.coordinateSystem;if("cartesian2d"===i.type&&n){var r=i.getBaseAxis(),o=i.getOtherAxis(r),a=r.getExtent(),s=a[1]-a[0],l=Math.round(e.count()/s);if(l>1){var u;"string"==typeof n?u=ZM[n]:"function"==typeof n&&(u=n),u&&t.setData(e.downSample(e.mapDimension(o.dim),1/l,u,UM))}}}}};_u(XM("line","circle","line")),xu(YM("line")),pu(fb.PROCESSOR.STATISTIC,jM("line")),uw.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(){return ah(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});var qM=3,$M=Ld.prototype;$M.stopEffectAnimation=function(){this.childAt(1).removeAll()},$M.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),r=0;qM>r;r++){var o=Hh(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var a=-r/qM*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(a).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(a).start(),i.add(o)}Od(i,t)},$M.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],r=0;r<i.length;r++){var o=i[r];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}Od(n,t)},$M.highlight=function(){this.trigger("emphasis")},$M.downplay=function(){this.trigger("normal")},$M.updateData=function(t,e){var n=t.hostModel;this.childAt(0).updateData(t,e);var i=this.childAt(1),r=t.getItemModel(e),o=t.getItemVisual(e,"symbol"),a=Pd(t.getItemVisual(e,"symbolSize")),s=t.getItemVisual(e,"color");i.attr("scale",a),i.traverse(function(t){t.attr({fill:s})});var l=r.getShallow("symbolOffset");if(l){var u=i.position;u[0]=ya(l[0],a[0]),u[1]=ya(l[1],a[1])}i.rotation=(r.getShallow("symbolRotate")||0)*Math.PI/180||0;var h={};if(h.showEffectOn=n.get("showEffectOn"),h.rippleScale=r.get("rippleEffect.scale"),h.brushType=r.get("rippleEffect.brushType"),h.period=1e3*r.get("rippleEffect.period"),h.effectOffset=e/t.count(),h.z=r.getShallow("z")||0,h.zlevel=r.getShallow("zlevel")||0,h.symbolType=o,h.color=s,h.rippleEffectColor=r.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===h.showEffectOn)this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h;else{this._effectCfg=null,this.stopEffectAnimation();var c=this.childAt(0),d=function(){c.highlight(),"render"!==h.showEffectOn&&this.startEffectAnimation(h)},f=function(){c.downplay(),"render"!==h.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",d,this).on("mouseout",f,this).on("emphasis",d,this).on("normal",f,this)}this._effectCfg=h},$M.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},h(Ld,Qv),Iu({type:"effectScatter",init:function(){this._symbolDraw=new hd(Ld)},render:function(t){var e=t.getData(),n=this._symbolDraw;n.updateData(e),this.group.add(n.group)},updateTransform:function(t){var e=t.getData();this.group.dirty();var n=YM().reset(t);n.progress&&n.progress({start:0,end:e.count()},e),this._symbolDraw.updateLayout(e)},_updateGroupTransform:function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=Re(e.getRoamTransform()),this.group.decomposeTransform())},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}}),_u(XM("effectScatter","circle")),xu(YM("effectScatter")),Su({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),Mu({type:"title",render:function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=D(t.get("textBaseline"),t.get("textVerticalAlign")),l=new fx({style:Ho({},r,{text:t.get("text"),textFill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get("subtext"),c=new fx({style:Ho({},o,{text:h,textFill:o.getTextColor(),y:u.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0); l.silent=!d&&!p,c.silent=!f&&!p,d&&l.on("click",function(){window.open(d,"_"+t.get("target"))}),f&&c.on("click",function(){window.open(f,"_"+t.get("subtarget"))}),l.eventData=c.eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=Za(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.attr("position",[m.x,m.y]);var y={textAlign:a,textVerticalAlign:s};l.setStyle(y),c.setStyle(y),g=i.getBoundingRect();var x=m.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var w=new Ix({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(w)}}});var KM=ww.legend.selector,QM={all:{type:"all",title:i(KM.all)},inverse:{type:"inverse",title:i(KM.inverse)}},JM=Su({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){JM.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var e=t.selector;e===!0&&(e=t.selector=["all","inverse"]),_(e)&&f(e,function(t,n){b(t)&&(t={type:t}),e[n]=r(t,QM[t.type])})},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var e=[],n=[];t.eachRawSeries(function(i){var r=i.name;n.push(r);var o;if(i.legendVisualProvider){var a=i.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(s)),s.length?e=e.concat(s):o=!0}else o=!0;o&&nr(i)&&e.push(i.name)}),this._availableNames=n;var i=this.get("data")||e,r=p(i,function(t){return("string"==typeof t||"number"==typeof t)&&(t={name:t}),new ha(t,this,this.ecModel)},this);this._data=r},getData:function(){return this._data},select:function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;f(i,function(t){e[t.get("name")]=!1})}e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,e=this.option.selected;f(t,function(t){e[t.get("name",!0)]=!0})},inverseSelect:function(){var t=this._data,e=this.option.selected;f(t,function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]})},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&u(this._availableNames,t)>=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}});vu("legendToggleSelect","legendselectchanged",x(zd,"toggleSelected")),vu("legendAllSelect","legendselectall",x(zd,"allSelect")),vu("legendInverseSelect","legendinverseselect",x(zd,"inverseSelect")),vu("legendSelect","legendselected",x(zd,"select")),vu("legendUnSelect","legendunselected",x(zd,"unSelect"));var tC=x,eC=f,nC=Qv,iC=Mu({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new nC),this._backgroundEl,this.group.add(this._selectorGroup=new nC),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),l=t.get("selectorPosition",!0);!a||l&&"auto"!==l||(l="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,l);var u=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),d=Za(u,h,c),f=this.layoutInner(t,r,d,i,a,l),p=Za(s({width:f.width,height:f.height},u),h,c);this.group.attr("position",[p.x-f.x,p.y-f.y]),this.group.add(this._backgroundEl=Bd(f,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=N(),u=e.get("selectedMode"),h=[];n.eachRawSeries(function(t){!t.get("legendHoverLink")&&h.push(t.id)}),eC(e.getData(),function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a))return void s.add(new nC({newline:!0}));var c=n.getSeriesByName(a)[0];if(!l.get(a))if(c){var d=c.getData(),f=d.getVisual("color"),p=d.getVisual("borderColor");"function"==typeof f&&(f=f(c.getDataParams(0))),"function"==typeof p&&(p=p(c.getDataParams(0)));var g=d.getVisual("legendSymbol")||"roundRect",v=d.getVisual("symbol"),m=this._createItem(a,o,r,e,g,v,t,f,p,u);m.on("click",tC(Nd,a,null,i,h)).on("mouseover",tC(Fd,c.name,null,i,h)).on("mouseout",tC(Vd,c.name,null,i,h)),l.set(a,!0)}else n.eachRawSeries(function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var c=s.indexOfName(a),d=s.getItemVisual(c,"color"),f=s.getItemVisual(c,"borderColor"),p="roundRect",g=this._createItem(a,o,r,e,p,null,t,d,f,u);g.on("click",tC(Nd,null,a,i,h)).on("mouseover",tC(Fd,null,a,i,h)).on("mouseout",tC(Vd,null,a,i,h)),l.set(a,!0)}},this)},this),r&&this._createSelector(r,e,i,o,a)},_createSelector:function(t,e,n){function i(t){var i=t.type,o=new fx({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});r.add(o);var a=e.getModel("selectorLabel"),s=e.getModel("emphasis.selectorLabel");Fo(o.style,o.hoverStyle={},a,s,{defaultText:t.title,isRectText:!1}),Eo(o)}var r=this.getSelectorGroup();eC(t,function(t){i(t)})},_createItem:function(t,e,n,i,r,o,s,l,u,h){var c=i.get("itemWidth"),d=i.get("itemHeight"),f=i.get("inactiveColor"),p=i.get("inactiveBorderColor"),g=i.get("symbolKeepAspect"),v=i.getModel("itemStyle"),m=i.isSelected(t),y=new nC,x=n.getModel("textStyle"),_=n.get("icon"),w=n.getModel("tooltip"),b=w.parentModel;r=_||r;var S=Hh(r,0,0,c,d,m?l:f,null==g?!0:g);if(y.add(Rd(S,r,v,u,p,m)),!_&&o&&(o!==r||"none"===o)){var M=.8*d;"none"===o&&(o="circle");var C=Hh(o,(c-M)/2,(d-M)/2,M,M,m?l:f,null==g?!0:g);y.add(Rd(C,o,v,u,p,m))}var I="left"===s?c+5:-5,T=s,A=i.get("formatter"),D=t;"string"==typeof A&&A?D=A.replace("{name}",null!=t?t:""):"function"==typeof A&&(D=A(t)),y.add(new fx({style:Ho({},x,{text:D,x:I,y:d/2,textFill:m?x.getTextColor():f,textAlign:T,textVerticalAlign:"middle"})}));var k=new Ix({shape:y.getBoundingRect(),invisible:!0,tooltip:w.get("show")?a({content:t,formatter:b.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]}},w.option):null});return y.add(k),y.eachChild(function(t){t.silent=!0}),k.silent=!h,this.getContentGroup().add(y),Eo(y),y.__legendDataIndex=e,y},layoutInner:function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();x_(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(r){x_("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),f=t.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",v=0===f?"y":"x";"end"===o?c[f]+=l[p]+d:u[f]+=h[p]+d,c[1-f]+=l[g]/2-h[g]/2,s.attr("position",c),a.attr("position",u);var m={x:0,y:0};return m[p]=l[p]+d+h[p],m[g]=Math.max(l[g],h[g]),m[v]=Math.min(0,h[v]+c[1-f]),m}return a.attr("position",u),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}}),rC=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})};pu(fb.PROCESSOR.SERIES_FILTER,rC),b_.registerSubTypeDefaulter("legend",function(){return"plain"});var oC=JM.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(t,e,n,i){var r=qa(t);oC.superCall(this,"init",t,e,n,i),Hd(this,t,r)},mergeOption:function(t,e){oC.superCall(this,"mergeOption",t,e),Hd(this,this.option,t)}}),aC=Qv,sC=["width","height"],lC=["x","y"],uC=iC.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){uC.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new aC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new aC),this._showController},resetInner:function(){uC.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,e,n,i,r,o,a){function s(t,n){var r=t+"DataIndex",o=oa(e.get("pageIcons",!0)[e.getOrient().name][n],{onclick:y(l._pageGo,l,r,e,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}var l=this;uC.superCall(this,"renderInner",t,e,n,i,r,o,a);var u=this._controllerGroup,h=e.get("pageIconSize",!0);_(h)||(h=[h,h]),s("pagePrev",0);var c=e.getModel("pageTextStyle");u.add(new fx({name:"pageText",style:{textFill:c.getTextColor(),font:c.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),s("pageNext",1)},layoutInner:function(t,e,n,r,o,a){var s=this.getSelectorGroup(),l=t.getOrient().index,u=sC[l],h=lC[l],c=sC[1-l],d=lC[1-l];o&&x_("horizontal",s,t.get("selectorItemGap",!0));var f=t.get("selectorButtonGap",!0),p=s.getBoundingRect(),g=[-p.x,-p.y],v=i(n);o&&(v[u]=n[u]-p[u]-f);var m=this._layoutContentAndController(t,r,v,l,u,c,d);if(o){if("end"===a)g[l]+=m[u]+f;else{var y=p[u]+f;g[l]-=y,m[h]-=y}m[u]+=p[u]+f,g[1-l]+=m[d]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[d]=Math.min(m[d],p[d]+g[1-l]),s.attr("position",g)}return m},_layoutContentAndController:function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;x_(t.get("orient"),s,t.get("itemGap"),i?n.width:null,i?null:n.height),x_("horizontal",u,t.get("pageButtonItemGap",!0));var h=s.getBoundingRect(),c=u.getBoundingRect(),d=this._showController=h[r]>n[r],f=[-h.x,-h.y];e||(f[i]=s.position[i]);var p=[0,0],g=[-c.x,-c.y],v=D(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var m=t.get("pageButtonPosition",!0);"end"===m?g[i]+=n[r]-c[r]:p[i]+=c[r]+v}g[1-i]+=h[o]/2-c[o]/2,s.attr("position",f),l.attr("position",p),u.attr("position",g);var y={x:0,y:0};if(y[r]=d?n[r]:h[r],y[o]=Math.max(h[o],c[o]),y[a]=Math.min(0,c[a]+g[1-i]),l.__rectSize=n[r],d){var x={x:0,y:0};x[r]=Math.max(n[r]-c[r]-v,0),x[o]=y[o],l.setClipPath(new Ix({shape:x})),l.__rectSize=x[r]}else u.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(t);return null!=_.pageIndex&&Ko(s,{position:_.contentPosition},d?t:!1),this._updatePageInfoView(t,_),y},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(t,e){var n=this._controllerGroup;f(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",b(r)?r.replace("{current}",a).replace("{total}",s):r({current:a,total:s}))},_getPageInfo:function(t){function e(t){if(t){var e=t.getBoundingRect(),n=e[l]+t.position[a];return{s:n,e:n+e[s],i:t.__legendDataIndex}}}function n(t,e){return t.e>=e&&t.s<=e+o}var i=t.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=t.getOrient().index,s=sC[a],l=lC[a],u=this._findTargetItemIndex(i),h=r.children(),c=h[u],d=h.length,f=d?1:0,p={contentPosition:r.position.slice(),pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var g=e(c);p.contentPosition[a]=-g.s;for(var v=u+1,m=g,y=g,x=null;d>=v;++v)x=e(h[v]),(!x&&y.e>m.s+o||x&&!n(x,m.s))&&(m=y.i>m.i?y:x,m&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=x;for(var v=u-1,m=g,y=g,x=null;v>=-1;--v)x=e(h[v]),x&&n(y,x.s)||!(m.i<y.i)||(y=m,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=x;return p},_findTargetItemIndex:function(t){var e,n,i=this.getContentGroup();return this._showController&&i.eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n}});vu("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})});var hC=function(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=rr(o,t);if(null==a||0>a||_(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)i=l.dataToPoint(o.getValues(p(l.dimensions,function(t){return o.mapDimension(t)}),a,!0))||[];else if(s){var u=s.getBoundingRect().clone();u.applyTransform(s.transform),i=[u.x+u.width/2,u.y+u.height/2]}return{point:i,el:s}},cC=f,dC=x,fC=or(),pC=function(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||y(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Kd(r)&&(r=hC({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Kd(r),u=o.axesInfo,h=s.axesInfo,c="leave"===i||Kd(r),d={},f={},p={list:[],map:{}},g={showPointer:dC(Xd,f),showTooltip:dC(Yd,p)};cC(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);cC(s.coordSysAxesInfo[e],function(t){var e=t.axis,i=qd(u,t);if(!c&&n&&(!u||i)){var o=i&&i.value;null!=o||l||(o=e.pointToData(r)),null!=o&&Gd(t,o,g,!1,d)}})});var v={};return cC(h,function(t,e){var n=t.linkGroup;n&&!f[e]&&cC(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,$d(e),$d(t)))),v[t.key]=o}})}),cC(v,function(t,e){Gd(h[e],t,g,!0,d)}),Zd(f,h,d),Ud(p,r,t,a),jd(h,a,n),d}},gC=(Su({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),or()),vC=f,mC=Mu({type:"axisPointer",render:function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Qd("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){of(e.getZr(),"axisPointer"),mC.superApply(this._model,"remove",arguments)},dispose:function(t,e){of("axisPointer",e),mC.superApply(this._model,"dispose",arguments)}}),yC=or(),xC=i,_C=y;af.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=x(sf,e,h);this.updatePointerEl(a,l,c,e),this.updateLabelEl(a,l,c,e)}else a=this._group=new Qv,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);cf(a,e,!0),this._renderHandle(r)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Jc(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return n===!0},makeElOption:function(){},createPointerEl:function(t,e){var n=e.pointer;if(n){var i=yC(t).pointerEl=new Kx[n.type](xC(e.pointer));t.add(i)}},createLabelEl:function(t,e,n,i){if(e.label){var r=yC(t).labelEl=new Ix(xC(e.label));t.add(r),uf(r,i)}},updatePointerEl:function(t,e,n){var i=yC(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=yC(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),uf(r,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=e.getModel("handle"),o=e.get("status");if(!r.get("show")||!o||"hide"===o)return i&&n.remove(i),void(this._handle=null);var a;this._handle||(a=!0,i=this._handle=oa(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){fv(t.event)},onmousedown:_C(this._onHandleDragMove,this,0,0),drift:_C(this._onHandleDragMove,this),ondragend:_C(this._onHandleDragEnd,this)}),n.add(i)),cf(i,e,!1);var s=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];i.setStyle(r.getItemStyle(null,s));var l=r.get("size");_(l)||(l=[l,l]),i.attr("scale",[l[0]/2,l[1]/2]),cl(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,a)}},_moveHandleToValue:function(t,e){sf(this._axisPointerModel,!e&&this._moveAnimation,this._handle,hf(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(hf(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(hf(i)),yC(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},_onHandleDragEnd:function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}},af.prototype.constructor=af,fr(af);var wC=af.extend({makeElOption:function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=_f(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=df(i),c=bC[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}var d=od(a.model,n);mf(e,t,d,n,i,r)},getHandleTransform:function(t,e,n){var i=od(e.axis.grid.model,e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:vf(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n){var i=n.axis,r=i.grid,o=i.getGlobalExtent(!0),a=_f(r,i).getOtherAxis(i).getGlobalExtent(),s="x"===i.dim?0:1,l=t.position;l[s]+=e[s],l[s]=Math.min(o[1],l[s]),l[s]=Math.max(o[0],l[s]);var u=(a[1]+a[0])/2,h=[u,u];h[s]=l[s];var c=[{verticalAlign:"middle"},{align:"center"}];return{position:l,rotation:t.rotation,cursorPoint:h,tooltipOption:c[s]}}}),bC={line:function(t,e,n){var i=yf([e,n[0]],[e,n[1]],wf(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:xf([e-i/2,n[0]],[i,r],wf(t))}}};bM.registerAxisPointerClass("CartesianAxisPointer",wC),fu(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!_(e)&&(t.axisPointer.link=[e])}}),pu(fb.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Zc(t,e)}),vu({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},pC),Su({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});var SC=f,MC=Ea,CC=["","-webkit-","-moz-","-o-"],IC="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";Cf.prototype={constructor:Cf,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==e.position&&(n.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText=IC+Mf(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n,i=this._zr;i&&i.painter&&(n=i.painter.getViewportRootOffset())&&(t+=n.offsetLeft,e+=n.offsetTop);var r=this.el.style;r.left=t+"px",r.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(y(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}},If.prototype={constructor:If,_enterable:!0,update:function(){},show:function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,n){this.el&&this._zr.remove(this.el);for(var i={},r=t,o="{marker",a="|}",s=r.indexOf(o);s>=0;){var l=r.indexOf(a),u=r.substr(s+o.length,l-s-o.length);i["marker"+u]=u.indexOf("sub")>-1?{textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[u],textOffset:[3,0]}:{textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[u]},r=r.substr(l+1),s=r.indexOf("{marker")}this.el=new fx({style:{rich:i,text:t,textLineHeight:20,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding")},z:n.get("z")}),this._zr.add(this.el);var h=this;this.el.on("mouseover",function(){h._enterable&&(clearTimeout(h._hideTimeout),h._show=!0),h._inContent=!0}),this.el.on("mouseout",function(){h._enterable&&h._show&&h.hideLater(h._hideDelay),h._inContent=!1})},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr("position",[t,e])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(y(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var TC=y,AC=f,DC=ya,kC=new Ix({shape:{x:-1,y:-1,width:2,height:2}});Mu({type:"tooltip",init:function(t,e){if(!Fg.node){var n=t.getComponent("tooltip"),i=n.get("renderMode");this._renderMode=hr(i);var r;"html"===this._renderMode?(r=new Cf(e.getDom(),e),this._newLine="<br/>"):(r=new If(e),this._newLine="\n"),this._tooltipContent=r}},render:function(t,e,n){if(!Fg.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");Qd("itemTooltip",this._api,TC(function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})})}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!Fg.node){var r=Af(i,n);this._ticket="";var o=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var a=kC;a.position=[i.x,i.y],a.update(),a.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:a},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,event:{},dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var s=hC(i,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:i.position,target:s.el,event:{}},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target,event:{}},r))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(Af(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),t=Tf([l.getItemModel(o),s,(s.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},_tryShow:function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get("showDelay");e=y(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},_showAxisTooltip:function(t,e){var n=this._ecModel,i=this._tooltipModel,o=[e.offsetX,e.offsetY],a=[],s=[],l=Tf([e.tooltipOption,i]),u=this._renderMode,h=this._newLine,c={};AC(t,function(t){AC(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value,o=[];if(e&&null!=i){var l=gf(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt);f(t.seriesDataIndices,function(a){var h=n.getSeriesByIndex(a.seriesIndex),d=a.dataIndexInside,f=h&&h.getDataParams(d);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Eh(e.axis,i),f.axisValueLabel=l,f){s.push(f);var p,g=h.formatTooltip(d,!0,null,u);if(S(g)){p=g.html;var v=g.markers;r(c,v)}else p=g;o.push(p)}});var d=l;a.push("html"!==u?o.join(h):(d?Ba(d)+h:"")+o.join(h))}})},this),a.reverse(),a=a.join(this._newLine+this._newLine);var d=e.position;this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(l,d,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(l,a,s,Math.random(),o[0],o[1],d,void 0,c)})},_showSeriesItemTooltip:function(t,e,n){var i=this._ecModel,r=e.seriesIndex,o=i.getSeriesByIndex(r),a=e.dataModel||o,s=e.dataIndex,l=e.dataType,u=a.getData(),h=Tf([u.getItemModel(s),a,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),c=h.get("trigger");if(null==c||"item"===c){var d,f,p=a.getDataParams(s,l),g=a.formatTooltip(s,!1,l,this._renderMode);S(g)?(d=g.html,f=g.markers):(d=g,f=null);var v="item_"+a.name+"_"+s;this._showOrMove(h,function(){this._showTooltipContent(h,d,p,v,t.offsetX,t.offsetY,t.position,t.target,f)}),n({type:"showTip",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;if("string"==typeof i){var r=i;i={content:r,formatter:r}}var o=new ha(i,this._tooltipModel,this._ecModel),a=o.get("content"),s=Math.random();this._showOrMove(o,function(){this._showTooltipContent(o,a,o.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,h=t.get("formatter");a=a||t.get("position");var c=e;if(h&&"string"==typeof h)c=Ra(h,n,!0);else if("function"==typeof h){var d=TC(function(e,i){e===this._ticket&&(u.setContent(i,l,t),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,d)}u.setContent(c,l,t),u.show(t),this._updatePosition(t,a,r,o,u,n,s)}},_updatePosition:function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),"function"==typeof e&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),_(e))n=DC(e[0],s),i=DC(e[1],l); else if(S(e)){e.width=u[0],e.height=u[1];var f=Za(e,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if("string"==typeof e&&a){var p=Pf(e,d,u);n=p[0],i=p[1]}else{var p=Df(n,i,r,s,l,h?null:20,c?null:20);n=p[0],i=p[1]}if(h&&(n-=Of(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=Of(c)?u[1]/2:"bottom"===c?u[1]:0),t.get("confine")){var p=kf(n,i,r,s,l);n=p[0],i=p[1]}r.moveTo(n,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&AC(e,function(e,i){var r=e.dataByAxis||{},o=t[i]||{},a=o.dataByAxis||[];n&=r.length===a.length,n&&AC(r,function(t,e){var i=a[e]||{},r=t.seriesDataIndices||[],o=i.seriesDataIndices||[];n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===o.length,n&&AC(r,function(t,e){var i=o[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){Fg.node||(this._tooltipContent.hide(),of("itemTooltip",e))}}),vu({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),vu({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){});var PC=za,OC=Ba,LC=Su({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},isAnimationEnabled:function(){if(Fg.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e){this._mergeOption(t,e,!1,!1)},_mergeOption:function(t,e,n,i){var r=this.constructor,o=this.mainType+"Model";n||e.eachSeries(function(t){var n=t.get(this.mainType,!0),s=t[o];return n&&n.data?(s?s._mergeOption(n,e,!0):(i&&Lf(n),f(n.data,function(t){t instanceof Array?(Lf(t[0]),Lf(t[1])):Lf(t)}),s=new r(n,this,e),a(s,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),s.__hostSeries=t),void(t[o]=s)):void(t[o]=null)},this)},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=_(n)?p(n,PC).join(", "):PC(n),r=e.getName(t),o=OC(this.name);return(null!=n||r)&&(o+="<br />"),r&&(o+=OC(r),null!=n&&(o+=" : ")),null!=n&&(o+=OC(i)),o},getData:function(){return this._data},setData:function(t){this._data=t}});c(LC,ow),LC.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});var zC=u,EC=x,BC={min:EC(Bf,"min"),max:EC(Bf,"max"),average:EC(Bf,"average")},RC=Mu({type:"marker",init:function(){this.markerGroupMap=N()},render:function(t,e,n){var i=this.markerGroupMap;i.each(function(t){t.__keep=!1});var r=this.type+"Model";e.eachSeries(function(t){var i=t[r];i&&this.renderSeries(t,i,e,n)},this),i.each(function(t){!t.__keep&&this.group.remove(t.group)},this)},renderSeries:function(){}}),NC=function(t,e,n,i){var r=Rf(t,i[0]),a=Rf(t,i[1]),s=A,l=r.coord,u=a.coord;l[0]=s(l[0],-1/0),l[1]=s(l[1],-1/0),u[0]=s(u[0],1/0),u[1]=s(u[1],1/0);var h=o([{},r,a]);return h.coord=[r.coord,a.coord],h.x0=r.x,h.y0=r.y,h.x1=a.x,h.y1=a.y,h},FC=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];RC.extend({type:"markArea",updateTransform:function(t,e,n){e.eachSeries(function(t){var e=t.markAreaModel;if(e){var i=e.getData();i.each(function(e){var r=p(FC,function(r){return Yf(i,e,r,t,n)});i.setItemLayout(e,r);var o=i.getItemGraphicEl(e);o.setShape("points",r)})}},this)},renderSeries:function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,{group:new Qv});this.group.add(u.group),u.__keep=!0;var h=Zf(r,t,e);e.setData(h),h.each(function(e){h.setItemLayout(e,p(FC,function(n){return Yf(h,e,n,t,i)})),h.setItemVisual(e,{color:a.getVisual("color")})}),h.diff(u.__data).add(function(t){var e=new bx({shape:{points:h.getItemLayout(t)}});h.setItemGraphicEl(t,e),u.group.add(e)}).update(function(t,n){var i=u.__data.getItemGraphicEl(n);Ko(i,{shape:{points:h.getItemLayout(t)}},e,t),u.group.add(i),h.setItemGraphicEl(t,i)}).remove(function(t){var e=u.__data.getItemGraphicEl(t);u.group.remove(e)}).execute(),h.eachItemGraphicEl(function(t,n){var i=h.getItemModel(n),r=i.getModel("label"),o=i.getModel("emphasis.label"),a=h.getItemVisual(n,"color");t.useStyle(s(i.getModel("itemStyle").getItemStyle(),{fill:on(a,.4),stroke:a})),t.hoverStyle=i.getModel("emphasis.itemStyle").getItemStyle(),Fo(t.style,t.hoverStyle,r,o,{labelFetcher:e,labelDataIndex:n,defaultText:h.getName(n)||"",isRectText:!0,autoColor:a}),Eo(t,{}),t.dataModel=e}),u.__data=h,u.group.silent=e.get("silent")||t.get("silent")}}),fu(function(t){t.markArea=t.markArea||{}});var VC=function(t){var e=t&&t.timeline;_(e)||(e=e?[e]:[]),f(e,function(t){t&&Uf(t)})};b_.registerSubTypeDefaulter("timeline",function(){return"slider"}),vu({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption("timeline"),s({currentIndex:n.option.currentIndex},t)}),vu({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)});var HC=b_.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(){HC.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),0>t&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],n=t.axisType,r=this._names=[];if("category"===n){var o=[];f(e,function(t,e){var n,a=Qi(t);S(t)?(n=i(t),n.value=e):n=e,o.push(n),b(a)||null!=a&&!isNaN(a)||(a=""),r.push(a+"")}),e=o}var a={category:"ordinal",time:"time"}[n]||"number",s=this._data=new Zb([{name:"value",type:a}],this);s.initData(e,r)},getData:function(){return this._data},getCategories:function(){return"category"===this.get("axisType")?this._names.slice():void 0}}),GC=HC.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});c(GC,ow);var WC=hw.extend({type:"timeline"}),XC=function(t,e,n,i){HS.call(this,t,e,n),this.type=i||"value",this.model=null};XC.prototype={constructor:XC,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},h(XC,HS);var YC=y,ZC=f,UC=Math.PI;WC.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("mainGroup"),o=this._createGroup("labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){return Ba(a.scale.getLabel(t))},ZC(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](i,r,a,t)},this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get("label.position"),i=t.get("orient"),r=$f(t,e);null==n||"auto"===n?n="horizontal"===i?r.y+r.height/2<e.getHeight()/2?"-":"+":r.x+r.width/2<e.getWidth()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]);var o={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},a={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},s={horizontal:0,vertical:UC/2},l="vertical"===i?r.height:r.width,u=t.getModel("controlStyle"),h=u.get("show",!0),c=h?u.get("itemSize"):0,d=h?u.get("itemGap"):0,f=c+d,p=t.get("label.rotate")||0;p=p*UC/180;var g,v,m,y,x=u.get("position",!0),_=h&&u.get("showPlayBtn",!0),w=h&&u.get("showPrevBtn",!0),b=h&&u.get("showNextBtn",!0),S=0,M=l;return"left"===x||"bottom"===x?(_&&(g=[0,0],S+=f),w&&(v=[S,0],S+=f),b&&(m=[M-c,0],M-=f)):(_&&(g=[M-c,0],M-=f),w&&(v=[0,0],S+=f),b&&(m=[M-c,0],M-=f)),y=[S,M],t.get("inverse")&&y.reverse(),{viewRect:r,mainLength:l,orient:i,rotation:s[i],labelRotation:p,labelPosOpt:n,labelAlign:t.get("label.align")||o[i],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||a[i],playPosition:g,prevBtnPosition:v,nextBtnPosition:m,axisExtent:y,controlSize:c,controlGap:d}},_position:function(t){function e(t){var e=t.position;t.origin=[h[0][0]-e[0],h[1][0]-e[1]]}function n(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function i(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}var r=this._mainGroup,o=this._labelGroup,a=t.viewRect;if("vertical"===t.orient){var s=De(),l=a.x,u=a.y+a.height;Le(s,s,[-l,-u]),ze(s,s,-UC/2),Le(s,s,[l,u]),a=a.clone(),a.applyTransform(s)}var h=n(a),c=n(r.getBoundingRect()),d=n(o.getBoundingRect()),f=r.position,p=o.position;p[0]=f[0]=h[0][0];var g=t.labelPosOpt;if(isNaN(g)){var v="+"===g?0:1;i(f,c,h,1,v),i(p,d,h,1,1-v)}else{var v=g>=0?0:1;i(f,c,h,1,v),p[1]=f[1]+g}r.attr("position",f),o.attr("position",p),r.rotation=o.rotation=t.rotation,e(r),e(o)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),r=Oh(e,i);r.getTicks=function(){return n.mapArray(["value"],function(t){return t})};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var a=new XC("value",r,t.axisExtent,i);return a.model=e,a},_createGroup:function(t){var e=this["_"+t]=new Qv;return this.group.add(e),e},_renderAxisLine:function(t,e,n,i){var r=n.getExtent();i.get("lineStyle.show")&&e.add(new Ax({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:a({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,i){var r=i.getData(),o=n.scale.getTicks();ZC(o,function(t){var o=n.dataToCoord(t),a=r.getItemModel(t),s=a.getModel("itemStyle"),l=a.getModel("emphasis.itemStyle"),u={position:[o,0],onclick:YC(this._changeTimeline,this,t)},h=Qf(a,s,e,u);Eo(h,l.getItemStyle()),a.get("tooltip")?(h.dataIndex=t,h.dataModel=i):h.dataIndex=h.dataModel=null},this)},_renderAxisLabel:function(t,e,n,i){var r=n.getLabelModel();if(r.get("show")){var o=i.getData(),a=n.getViewLabels();ZC(a,function(i){var r=i.tickValue,a=o.getItemModel(r),s=a.getModel("label"),l=a.getModel("emphasis.label"),u=n.dataToCoord(i.tickValue),h=new fx({position:[u,0],rotation:t.labelRotation-t.rotation,onclick:YC(this._changeTimeline,this,r),silent:!1});Ho(h.style,s,{text:i.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),Eo(h,Ho({},l))},this)}},_renderControl:function(t,e,n,i){function r(t,n,r,h){if(t){var c={position:t,origin:[o/2,0],rotation:h?-a:0,rectHover:!0,style:s,onclick:r},d=Kf(i,n,u,c);e.add(d),Eo(d,l)}}var o=t.controlSize,a=t.rotation,s=i.getModel("controlStyle").getItemStyle(),l=i.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-o/2,o,o],h=i.getPlayState(),c=i.get("inverse",!0);r(t.nextBtnPosition,"controlStyle.nextIcon",YC(this._changeTimeline,this,c?"-":"+")),r(t.prevBtnPosition,"controlStyle.prevIcon",YC(this._changeTimeline,this,c?"+":"-")),r(t.playPosition,"controlStyle."+(h?"stopIcon":"playIcon"),YC(this._handlePlayClick,this,!h),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=YC(s._handlePointerDrag,s),t.ondragend=YC(s._handlePointerDragend,s),Jf(t,o,n,i,!0)},onUpdate:function(t){Jf(t,o,n,i)}};this._currentPointer=Qf(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=_a(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.position[0]=n,this._currentPointer.dirty();var o=this._findNearestTick(n),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},_doPlayStop:function(){function t(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(YC(t,this),this.model.get("playInterval")))},_toAxisCoord:function(t){var e=this._mainGroup.getLocalTransform();return ta(t,e,!0)},_findNearestTick:function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-t);i>s&&(i=s,e=o)}),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})}}),fu(VC);var jC={},qC=Su({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){qC.superApply(this,"optionUpdated",arguments),f(this.option.feature,function(t,e){var n=ep(e);n&&r(t,n.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}});Mu({type:"toolbox",render:function(t,e,n,i){function r(r,a){var s,l=c[r],d=c[a],f=u[l],p=new ha(f,t,t.ecModel);if(i&&null!=i.newTitle&&(f.title=i.newTitle),l&&!d){if(np(l))s={model:p,onclick:p.option.onclick,featureName:l};else{var g=ep(l);if(!g)return;s=new g(p,e,n)}h[l]=s}else{if(s=h[d],!s)return;s.model=p,s.ecModel=e,s.api=n}return!l&&d?void(s.dispose&&s.dispose(e,n)):!p.get("show")||s.unusable?void(s.remove&&s.remove(e,n)):(o(p,s,l),p.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},void(s.render&&s.render(p,e,n,i)))}function o(i,r,o){var u=i.getModel("iconStyle"),h=i.getModel("emphasis.iconStyle"),c=r.getIcons?r.getIcons():i.get("icon"),d=i.get("title")||{};if("string"==typeof c){var p=c,g=d;c={},d={},c[o]=p,d[o]=g}var v=i.iconPaths={};f(c,function(o,c){var f=oa(o,{},{x:-l/2,y:-l/2,width:l,height:l});f.setStyle(u.getItemStyle()),f.hoverStyle=h.getItemStyle(),f.setStyle({text:d[c],textAlign:h.get("textAlign"),textBorderRadius:h.get("textBorderRadius"),textPadding:h.get("textPadding"),textFill:null});var p=t.getModel("tooltip");p&&p.get("show")&&f.attr("tooltip",a({content:d[c],formatter:p.get("formatter",!0)||function(){return d[c]},formatterParams:{componentType:"toolbox",name:c,title:d[c],$vars:["name","title"]},position:p.get("position",!0)||"bottom"},p.option)),Eo(f),t.get("showTitle")&&(f.__title=d[c],f.on("mouseover",function(){var e=h.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";f.setStyle({textFill:h.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:h.get("textBackgroundColor"),textPosition:h.get("textPosition")||n})}).on("mouseout",function(){f.setStyle({textFill:null,textBackgroundColor:null})})),f.trigger(i.get("iconStatus."+c)||"normal"),s.add(f),f.on("click",y(r.onclick,r,e,n,c)),v[c]=f})}var s=this.group;if(s.removeAll(),t.get("show")){var l=+t.get("itemSize"),u=t.get("feature")||{},h=this._features||(this._features={}),c=[];f(u,function(t,e){c.push(e)}),new Pu(this._featureNames||[],c).add(r).update(r).remove(x(r,null)).execute(),this._featureNames=c,Ed(s,t,n),s.add(Bd(s.getBoundingRect(),t)),s.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var r=Gn(e,ii(i)),o=t.position[0]+s.position[0],a=t.position[1]+s.position[1]+l,u=!1;a+r.height>n.getHeight()&&(i.textPosition="top",u=!0);var h=u?-5-r.height:l+8;o+r.width/2>n.getWidth()?(i.textPosition=["100%",h],i.textAlign="right"):o-r.width/2<0&&(i.textPosition=[0,h],i.textAlign="left")}})}},updateView:function(t,e,n,i){f(this._features,function(t){t.updateView&&t.updateView(t.model,e,n,i)})},remove:function(t,e){f(this._features,function(n){n.remove&&n.remove(t,e)}),this.group.removeAll()},dispose:function(t,e){f(this._features,function(n){n.dispose&&n.dispose(t,e)})}});var $C=ww.toolbox.saveAsImage;ip.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:$C.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:$C.lang.slice()},ip.prototype.unusable=!Fg.canvasSupported;var KC=ip.prototype;KC.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r=n.get("type",!0)||"png",o=e.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!=typeof MouseEvent||Fg.browser.ie||Fg.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var a=atob(o.split(",")[1]),s=a.length,l=new Uint8Array(s);s--;)l[s]=a.charCodeAt(s);var u=new Blob([l]);window.navigator.msSaveOrOpenBlob(u,i+"."+r)}else{var h=n.get("lang"),c='<body style="margin:0;"><img src="'+o+'" style="max-width:100%;" title="'+(h&&h[0]||"")+'" /></body>',d=window.open();d.document.write(c)}else{var f=document.createElement("a");f.download=i+"."+r,f.target="_blank",f.href=o;var p=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});f.dispatchEvent(p)}},tp("saveAsImage",ip);var QC=ww.toolbox.magicType,JC="__ec_magicType_stack__";rp.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:i(QC.title),option:{},seriesIndex:{}};var tI=rp.prototype;tI.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return f(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var eI={line:function(t,e,n,i){return"bar"===t?r({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0):void 0},bar:function(t,e,n,i){return"line"===t?r({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0):void 0},stack:function(t,e,n,i){var o=n.get("stack")===JC;return"line"===t||"bar"===t?(i.setIconStatus("stack",o?"normal":"emphasis"),r({id:e,stack:o?"":JC},i.get("option.stack")||{},!0)):void 0}},nI=[["line","bar"],["stack"]];tI.onclick=function(t,e,n){var o=this.model,a=o.get("seriesIndex."+n);if(eI[n]){var l={series:[]},h=function(e){var i=e.subType,r=e.id,a=eI[n](i,r,e,o);a&&(s(a,e.option),l.series.push(a));var u=e.coordinateSystem;if(u&&"cartesian2d"===u.type&&("line"===n||"bar"===n)){var h=u.getAxesByScale("ordinal")[0];if(h){var c=h.dim,d=c+"Axis",f=t.queryComponents({mainType:d,index:e.get(name+"Index"),id:e.get(name+"Id")})[0],p=f.componentIndex;l[d]=l[d]||[];for(var g=0;p>=g;g++)l[d][p]=l[d][p]||{};l[d][p].boundaryGap="bar"===n}}};f(nI,function(t){u(t,n)>=0&&f(t,function(t){o.setIconStatus(t,"normal")})}),o.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},h);var c;if("stack"===n){var d=l.series&&l.series[0]&&l.series[0].stack===JC;c=d?r({stack:QC.title.tiled},QC.title):i(QC.title)}e.dispatchAction({type:"changeMagicType",currentType:n,newOption:l,newTitle:c})}},vu({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),tp("magicType",rp);var iI=ww.toolbox.dataView,rI=new Array(60).join("-"),oI=" ",aI=new RegExp("["+oI+"]+","g");pp.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:i(iI.title),lang:i(iI.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},pp.prototype.onclick=function(t,e){function n(){i.removeChild(o),x._dom=null}var i=e.getDom(),r=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=r.get("backgroundColor")||"#fff";var a=document.createElement("h4"),s=r.get("lang")||[];a.innerHTML=s[0]||r.get("title"),a.style.cssText="margin: 10px 20px;",a.style.color=r.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="display:block;width:100%;overflow:auto;";var h=r.get("optionToContent"),c=r.get("contentToOption"),d=lp(t);if("function"==typeof h){var f=h(e.getOption());"string"==typeof f?l.innerHTML=f:I(f)&&l.appendChild(f)}else l.appendChild(u),u.readOnly=r.get("readOnly"),u.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",u.style.color=r.get("textColor"),u.style.borderColor=r.get("textareaBorderColor"),u.style.backgroundColor=r.get("textareaColor"),u.value=d.value;var p=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:0;left:0;right:0;";var v="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),y=document.createElement("div");v+=";background-color:"+r.get("buttonColor"),v+=";color:"+r.get("buttonTextColor");var x=this;_e(m,"click",n),_e(y,"click",function(){var t;try{t="function"==typeof c?c(l,e.getOption()):fp(u.value,p)}catch(i){throw n(),new Error("Data view format error "+i)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),n()}),m.innerHTML=s[1],y.innerHTML=s[2],y.style.cssText=v,m.style.cssText=v,!r.get("readOnly")&&g.appendChild(y),g.appendChild(m),o.appendChild(a),o.appendChild(l),o.appendChild(g),l.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},pp.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},pp.prototype.dispose=function(t,e){this.remove(t,e)},tp("dataView",pp),vu({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];f(t.newOption.series,function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get("data");n.push({name:t.name,data:gp(t.data,r)})}else n.push(a({type:"scatter"},t))}),e.mergeOption(s({series:n},t.newOption))});var sI="\x00_ec_interaction_mutex";vu({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var lI=x,uI=f,hI=p,cI=Math.min,dI=Math.max,fI=Math.pow,pI=1e4,gI=6,vI=6,mI="globalPan",yI={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},xI={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},_I={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},wI=0;xp.prototype={constructor:xp,enableBrush:function(t){return this._brushType&&wp(this),t.brushType&&_p(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};f(t,function(t){e[t.panelId]=i(t)})}else this._panels=null;return this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){uI(this._covers,t,e)},updateCovers:function(t){function e(t,e){return(null!=t.id?t.id:s+e)+"-"+t.brushType}function n(t,n){return e(t.__brushOption,n)}function o(e,n){var i=t[e];if(null!=n&&l[n]===c)u[e]=l[n];else{var r=u[e]=null!=n?(l[n].__brushOption=i,l[n]):Cp(h,Mp(h,i));Ap(h,r)}}function a(t){l[t]!==c&&h.group.remove(l[t])}t=p(t,function(t){return r(i(_I),t,!0)});var s="\x00-brush-index-",l=this._covers,u=this._covers=[],h=this,c=this._creatingCover;return new Pu(l,t,n,e).add(o).update(o).remove(a).execute(),this},unmount:function(){return this.enableBrush(!1),Op(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},c(xp,sv);var bI={mousedown:function(t){if(this._dragging)tg(this,t);else if(!t.target||!t.target.draggable){$p(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=kp(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(qp(this,t,i),this._dragging){$p(t);var r=Qp(this,t,i,!1);r&&Lp(this,r)}},mouseup:function(t){tg(this,t)}},SI={lineX:ng(0),lineY:ng(1),rect:{createCover:function(t,e){return Bp(lI(Xp,function(t){return t},function(t){return t}),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=Ep(t);return Hp(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){Rp(t,e,n,i)},updateCommon:Np,contain:Kp},polygon:{createCover:function(t,e){var n=new Qv;return n.add(new Sx({name:"main",style:Vp(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new bx({name:"main",draggable:!0,drift:lI(Yp,t,e),ondragend:lI(Lp,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n){e.childAt(0).setShape({points:Up(t,e,n)})},updateCommon:Np,contain:Kp}},MI={axisPointer:1,tooltip:1,brush:1},CI=f,II=u,TI=x,AI=["dataToPoint","pointToData"],DI=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],kI=lg.prototype;kI.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=zI[t.brushType](0,n,e);t.__rangeOffset={offset:EI[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})},kI.matchOutputRanges=function(t,e,n){CI(t,function(t){var i=this.findTargetInfo(t,e);i&&i!==!0&&f(i.coordSyses,function(i){var r=zI[t.brushType](1,i,t.range);n(t,r.values,i,e)})},this)},kI.setInputRanges=function(t,e){CI(t,function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&n!==!0){t.panelId=n.panelId;var i=zI[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?EI[t.brushType](i.values,r.offset,fg(i.xyMinMax,r.xyMinMax)):i.values}},this)},kI.makePanelOpts=function(t,e){return p(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e&&e(n),clipPath:rg(i),isTargetByCursor:ag(i,t,n.coordSysModel),getLinearBrushOtherExtent:og(i)}})},kI.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&II(i.coordSyses,e.coordinateSystem)>=0},kI.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=hg(e,t),r=0;r<n.length;r++){var o=n[r],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var r=0;r<OI.length;r++)if(OI[r](i,o))return o}return!0};var PI={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=N(),a={},s={};(n||i||r)&&(CI(n,function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0}),CI(i,function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0}),CI(r,function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),o.each(function(t){var r=t.coordinateSystem,o=[];CI(r.getCartesians(),function(t){(II(n,t.getAxis("x").model)>=0||II(i,t.getAxis("y").model)>=0)&&o.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:LI.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){CI(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:LI.geo})})}},OI=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],LI={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Jo(t)),e}},zI={lineX:TI(cg,0),lineY:TI(cg,1),rect:function(t,e,n){var i=e[AI[t]]([n[0][0],n[1][0]]),r=e[AI[t]]([n[0][1],n[1][1]]),o=[ug([i[0],r[0]]),ug([i[1],r[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],r=p(n,function(n){var r=e[AI[t]](n);return i[0][0]=Math.min(i[0][0],r[0]),i[1][0]=Math.min(i[1][0],r[1]),i[0][1]=Math.max(i[0][1],r[0]),i[1][1]=Math.max(i[1][1],r[1]),r});return{values:r,xyMinMax:i}}},EI={lineX:TI(dg,0),lineY:TI(dg,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return p(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]] })}},BI=f,RI="\x00_ec_hist_store",NI=function(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=wg(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=wg(s,[0,a]),r=o=wg(s,[r,o]),i=0}e[0]=wg(e[0],n),e[1]=wg(e[1],n);var l=_g(e,i);e[i]+=t;var u=r||0,h=n.slice();l.sign<0?h[0]+=u:h[1]-=u,e[i]=wg(e[i],h);var c=_g(e,i);null!=r&&(c.sign!==l.sign||c.span<r)&&(e[1-i]=e[i]+l.sign*r);var c=_g(e,i);return null!=o&&c.span>o&&(e[1-i]=e[i]+c.sign*o),e};b_.registerSubTypeDefaulter("dataZoom",function(){return"slider"});var FI=["x","y","z","radius","angle","single"],VI=["cartesian2d","polar","singleAxis"],HI=Sg(FI,["axisIndex","axis","index","id"]),GI=f,WI=_a,XI=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};XI.prototype={constructor:XI,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(n){if(bg(n.get("coordinateSystem"))){var i=this._dimName,r=e.queryComponents({mainType:i+"Axis",index:n.get(i+"AxisIndex"),id:n.get(i+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(n)}},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n=this._dimName,i=this.ecModel,r=this.getAxisModel(),o="x"===n||"y"===n;o?(e="gridIndex",t="x"===n?"y":"x"):(e="polarIndex",t="angle"===n?"radius":"angle");var a;return i.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(a=t)}),a},getMinMaxSpan:function(){return i(this._minMaxSpan)},calculateDataWindow:function(t){function e(t,e,n,i,r){var a=r?"Span":"ValueSpan";NI(0,t,n,"all",h["min"+a],h["max"+a]);for(var s=0;2>s;s++)e[s]=ma(t[s],n,i,!0),r&&(e[s]=o.parse(e[s]))}var n,i=this._dataExtent,r=this.getAxisModel(),o=r.axis.scale,a=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],u=[];GI(["start","end"],function(e,r){var h=t[e],c=t[e+"Value"];"percent"===a[r]?(null==h&&(h=s[r]),c=o.parse(ma(h,s,i))):(n=!0,c=null==c?i[r]:o.parse(c),h=ma(c,i,s)),u[r]=c,l[r]=h}),WI(u),WI(l);var h=this._minMaxSpan;return n?e(u,l,i,s,!1):e(l,u,s,i,!0),{valueWindow:u,percentWindow:l}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=Cg(this,this._dimName,e),Ag(this);var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,Tg(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,Tg(this,!0))},filterData:function(t){function e(t){return t>=o[0]&&t<=o[1]}if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&GI(i,function(t){var i=t.getData(),a=i.mapDimension(n,!0);a.length&&("weakFilter"===r?i.filterSelf(function(t){for(var e,n,r,s=0;s<a.length;s++){var l=i.get(a[s],t),u=!isNaN(l),h=l<o[0],c=l>o[1];if(u&&!h&&!c)return!0;u&&(r=!0),h&&(e=!0),c&&(n=!0)}return r&&e&&n}):GI(a,function(n){if("empty"===r)t.setData(i=i.map(n,function(t){return e(t)?t:0/0}));else{var a={};a[n]=o,i.selectRange(a)}}),GI(a,function(t){i.setApproximateExtent(o,t)}))})}}};var YI=f,ZI=HI,UI=Su({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=Dg(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var e=Dg(t);r(this.option,t,!0),r(this.settledOption,e,!0),this.doInit(e)},doInit:function(t){var e=this.option;Fg.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),kg(this,t);var n=this.settledOption;YI([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,n,i,r){var o=this.dependentModels[e.axis][n],a=o.__dzAxisProxy||(o.__dzAxisProxy=new XI(e.name,n,this,r));t[e.name+"_"+n]=a},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();ZI(function(e){var n=e.axisIndex;t[n]=$i(t[n])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;ZI(function(n){null!=t[n.axisIndex]&&(e=!0)},this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),n=this.option,i=this.dependentModels;if(t){var r="vertical"===e?"y":"x";i[r+"Axis"].length?(n[r+"AxisIndex"]=[0],t=!1):YI(i.singleAxis,function(i){t&&i.get("orient",!0)===e&&(n.singleAxisIndex=[i.componentIndex],t=!1)})}t&&ZI(function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r.length&&!i.length)for(var o=0,a=r.length;a>o;o++)"category"===r[o].get("type")&&i.push(o);n[e.axisIndex]=i,i.length&&(t=!1)}},this),t&&this.ecModel.eachSeries(function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&ZI(function(e){var i=n[e.axisIndex],r=t.get(e.axisIndex),o=t.get(e.axisId),a=t.ecModel.queryComponents({mainType:e.axis,index:r,id:o})[0];r=a.componentIndex,u(i,r)<0&&i.push(r)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var n=!0;return ZI(function(i){var r=t.get(i.axisIndex),o=this.dependentModels[i.axis][r];o&&o.get("type")===e||(n=!1)},this),n},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return ZI(function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}},this),t},eachTargetAxis:function(t,e){var n=this.ecModel;ZI(function(i){YI(this.get(i.axisIndex),function(r){t.call(e,i,r,this,n)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var n=this.getAxisProxy(t,e);return n&&n.getAxisModel()},setRawRange:function(t){var e=this.option,n=this.settledOption;YI([["start","startValue"],["end","endValue"]],function(i){(null!=t[i[0]]||null!=t[i[1]])&&(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),kg(this,t)},setCalculatedRange:function(t){var e=this.option;YI(["start","startValue","end","endValue"],function(n){e[n]=t[n]})},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var n in e)if(e.hasOwnProperty(n)&&e[n].hostedBy(this))return e[n];for(var n in e)if(e.hasOwnProperty(n)&&!e[n].hostedBy(this))return e[n]},getRangePropMode:function(){return this._rangePropMode.slice()}}),jI=hw.extend({type:"dataZoom",render:function(t,e,n){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){function t(t,e,n,i){for(var r,o=0;o<n.length;o++)if(n[o].model===t){r=n[o];break}r||n.push(r={model:t,axisModels:[],coordIndex:i}),r.axisModels.push(e)}var e=this.dataZoomModel,n=this.ecModel,i={};return e.eachTargetAxis(function(e,r){var o=n.getComponent(e.axis,r);if(o){var a=o.getCoordSysModel();a&&t(a,o,i[a.mainType]||(i[a.mainType]=[]),a.componentIndex)}},this),i}});UI.extend({type:"dataZoom.select"}),jI.extend({type:"dataZoom.select"}),pu({getTargetSeries:function(t){var e=N();return t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,n,i){var r=i.getAxisProxy(t.name,n);f(r.getTargetSeriesModels(),function(t){e.set(t.uid,t)})})}),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,n,i){i.getAxisProxy(t.name,n).reset(i,e)}),t.eachTargetAxis(function(t,n,i){i.getAxisProxy(t.name,n).filterData(i,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})})}}),vu("dataZoom",function(t,e){var n=Mg(y(e.eachComponent,e,"dataZoom"),HI,function(t,e){return t.get(e.axisIndex)}),i=[];e.eachComponent({mainType:"dataZoom",query:t},function(t){i.push.apply(i,n(t).nodes)}),f(i,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})});var qI=ww.toolbox.dataZoom,$I=f,KI="\x00_ec_\x00toolbox-dataZoom_";Pg.defaultOption={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:i(qI.title)};var QI=Pg.prototype;QI.render=function(t,e,n,i){this.model=t,this.ecModel=e,this.api=n,zg(t,e,this,i,n),Lg(t,e)},QI.onclick=function(t,e,n){JI[n].call(this)},QI.remove=function(){this._brushController.unmount()},QI.dispose=function(){this._brushController.dispose()};var JI={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(vg(this.ecModel))}};QI._onBrush=function(t,e){function n(t,e,n){var a=e.getAxis(t),s=a.model,l=i(t,s,o),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();(null!=u.minValueSpan||null!=u.maxValueSpan)&&(n=NI(0,n.slice(),a.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(r[l.id]={dataZoomId:l.id,startValue:n[0],endValue:n[1]})}function i(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){var r=n.getAxisModel(t,e.componentIndex);r&&(i=n)}),i}if(e.isEnd&&t.length){var r={},o=this.ecModel;this._brushController.updateCovers([]);var a=new lg(Og(this.model.option),o,{include:["grid"]});a.matchOutputRanges(t,o,function(t,e,i){if("cartesian2d"===i.type){var r=t.brushType;"rect"===r?(n("x",i,e[0]),n("y",i,e[1])):n({lineX:"x",lineY:"y"}[r],i,e)}}),gg(o,r),this._dispatchZoomAction(r)}},QI._dispatchZoomAction=function(t){var e=[];$I(t,function(t){e.push(i(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},tp("dataZoom",Pg),fu(function(t){function e(t,e){if(e){var r=t+"Index",o=e[r];null==o||"all"===o||_(o)||(o=o===!1||"none"===o?[]:[o]),n(t,function(n,a){if(null==o||"all"===o||-1!==u(o,a)){var s={type:"select",$fromToolbox:!0,filterMode:e.filterMode||"filter",id:KI+t+a};s[r]=a,i.push(s)}})}}function n(e,n){var i=t[e];_(i)||(i=i?[i]:[]),$I(i,n)}if(t){var i=t.dataZoom||(t.dataZoom=[]);_(i)||(t.dataZoom=i=[i]);var r=t.toolbox;if(r&&(_(r)&&(r=r[0]),r&&r.feature)){var o=r.feature.dataZoom;e("xAxis",o),e("yAxis",o)}}});var tT=ww.toolbox.restore;Eg.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:tT.title};var eT=Eg.prototype;eT.onclick=function(t,e){mg(t),e.dispatchAction({type:"restore",from:this.uid})},tp("restore",Eg),vu({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),t.version=Jw,t.dependencies=tb,t.PRIORITY=fb,t.init=au,t.connect=su,t.disConnect=lu,t.disconnect=Lb,t.dispose=uu,t.getInstanceByDom=hu,t.getInstanceById=cu,t.registerTheme=du,t.registerPreprocessor=fu,t.registerProcessor=pu,t.registerPostUpdate=gu,t.registerAction=vu,t.registerCoordinateSystem=mu,t.getCoordinateSystemDimensions=yu,t.registerLayout=xu,t.registerVisual=_u,t.registerLoading=bu,t.extendComponentModel=Su,t.extendComponentView=Mu,t.extendSeriesModel=Cu,t.extendChartView=Iu,t.setCanvasCreator=Tu,t.registerMap=Au,t.getMap=Du,t.dataTool=zb,t.zrender=$m,t.number=l_,t.format=g_,t.throttle=hl,t.helper=BS,t.matrix=_v,t.vector=ov,t.color=Fv,t.parseGeoJSON=NS,t.parseGeoJson=GS,t.util=WS,t.graphic=XS,t.List=Zb,t.Model=ha,t.Axis=HS,t.env=Fg});
30,727.857143
32,791
0.679686
68342f0b499a2f62f7f538e13062b03967059095
3,222
js
JavaScript
typo3/sysext/backend/Resources/Public/JavaScript/OnlineMedia.js
dennned/jesus
f4f8575f81f3b95ffab830037264b4c0f0ae6421
[ "PostgreSQL" ]
null
null
null
typo3/sysext/backend/Resources/Public/JavaScript/OnlineMedia.js
dennned/jesus
f4f8575f81f3b95ffab830037264b4c0f0ae6421
[ "PostgreSQL" ]
null
null
null
typo3/sysext/backend/Resources/Public/JavaScript/OnlineMedia.js
dennned/jesus
f4f8575f81f3b95ffab830037264b4c0f0ae6421
[ "PostgreSQL" ]
null
null
null
/* * This file is part of the TYPO3 CMS project. * * It is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, either version 2 * of the License, or any later version. * * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * * The TYPO3 project - inspiring people to share! */ /** * Module: TYPO3/CMS/Backend/OnlineMedia * Javascript for show the online media dialog */ define(['jquery', 'nprogress', 'TYPO3/CMS/Backend/Modal', 'TYPO3/CMS/Backend/Severity', 'TYPO3/CMS/Lang/Lang' ], function($, NProgress, Modal, Severity) { 'use strict'; /** * * @param element * @constructor * @exports TYPO3/CMS/Backend/OnlineMedia */ var OnlineMediaPlugin = function(element) { var me = this; me.$btn = $(element); me.target = me.$btn.data('target-folder'); me.irreObjectUid = me.$btn.data('file-irre-object'); me.allowed = me.$btn.data('online-media-allowed'); me.btnSubmit = me.$btn.data('data-btn-submit') || 'Add'; me.placeholder = me.$btn.data('placeholder') || 'Paste media url here...'; /** * * @param {String} url */ me.addOnlineMedia = function(url) { NProgress.start(); $.post(TYPO3.settings.ajaxUrls['online_media_create'], { url: url, targetFolder: me.target, allowed: me.allowed }, function(data) { if (data.file) { inline.delayedImportElement( me.irreObjectUid, 'sys_file', data.file, 'file' ); } else { var $confirm = Modal.confirm( 'ERROR', data.error, Severity.error, [{ text: TYPO3.lang['button.ok'] || 'OK', btnClass: 'btn-' + Modal.getSeverityClass(Severity.error), name: 'ok', active: true }] ).on('confirm.button.ok', function() { $confirm.modal('hide'); }); } NProgress.done(); } ); }; /** * Trigger the modal */ me.triggerModal = function() { var $modal = Modal.show( me.$btn.attr('title'), '<div class="form-control-wrap">' + '<input type="text" class="form-control online-media-url" placeholder="' + me.placeholder + '" />' + '</div>', Severity.notice, [{ text: me.btnSubmit, btnClass: 'btn', name: 'ok', trigger: function() { var url = $modal.find('input.online-media-url').val(); if (url) { $modal.modal('hide'); me.addOnlineMedia(url); } } }] ); $modal.on('shown.bs.modal', function() { // focus the input field $(this).find('input.online-media-url').first().focus().on('keydown', function(e) { if (e.keyCode === 13) { $modal.find('button[name="ok"]').trigger('click'); } }); }); }; return {triggerModal: me.triggerModal}; }; $(document).on('click', '.t3js-online-media-add-btn', function(evt) { evt.preventDefault(); var $this = $(this), onlineMediaPlugin = $this.data('OnlineMediaPlugin'); if (!onlineMediaPlugin) { $this.data('OnlineMediaPlugin', (onlineMediaPlugin = new OnlineMediaPlugin(this))); } onlineMediaPlugin.triggerModal(); }); });
24.976744
105
0.594662
6834e4bbfa8e4762cdbad9d37c3a316df5a6ae84
378
js
JavaScript
src/components/Sidebar/index.js
tgfischer/tomfischer-gatsby
17610ec776e091e49ddd09b317958fd6e2630fc3
[ "MIT" ]
null
null
null
src/components/Sidebar/index.js
tgfischer/tomfischer-gatsby
17610ec776e091e49ddd09b317958fd6e2630fc3
[ "MIT" ]
8
2020-04-04T21:40:20.000Z
2022-02-26T10:42:52.000Z
src/components/Sidebar/index.js
tgfischer/tomfischer-gatsby
17610ec776e091e49ddd09b317958fd6e2630fc3
[ "MIT" ]
null
null
null
import React from "react" import Sidebar from "./Sidebar" import useSidebar from "../../hooks/useSidebar" const SidebarContainer = props => { const [isOpen, openSidebar, closeSidebar] = useSidebar() return ( <Sidebar {...props} isOpen={isOpen} openSidebar={openSidebar} closeSidebar={closeSidebar} /> ) } export default SidebarContainer
19.894737
58
0.671958
6834e871d89f84f6d5614cde09a82a408bc5109d
5,172
js
JavaScript
packages/metro/src/ModuleGraph/node-haste/node-haste.js
hedgepigdaniel/metro
59c8b850a2ec1b25f0f6a994ef6701a44284e951
[ "MIT" ]
null
null
null
packages/metro/src/ModuleGraph/node-haste/node-haste.js
hedgepigdaniel/metro
59c8b850a2ec1b25f0f6a994ef6701a44284e951
[ "MIT" ]
null
null
null
packages/metro/src/ModuleGraph/node-haste/node-haste.js
hedgepigdaniel/metro
59c8b850a2ec1b25f0f6a994ef6701a44284e951
[ "MIT" ]
null
null
null
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ 'use strict'; const AssetResolutionCache = require('../../node-haste/AssetResolutionCache'); const DependencyGraphHelpers = require('../../node-haste/DependencyGraph/DependencyGraphHelpers'); const FilesByDirNameIndex = require('../../node-haste/FilesByDirNameIndex'); const HasteFS = require('./HasteFS'); const Module = require('./Module'); const ModuleCache = require('./ModuleCache'); const defaults = require('../../defaults'); const parsePlatformFilePath = require('../../node-haste/lib/parsePlatformFilePath'); const path = require('path'); const { ModuleResolver, } = require('../../node-haste/DependencyGraph/ModuleResolution'); const {ModuleMap} = require('jest-haste-map'); import type {Moduleish} from '../../node-haste/DependencyGraph/ResolutionRequest'; import type {ResolveFn, TransformedCodeFile} from '../types.flow'; import type {Extensions, Path} from './node-haste.flow'; import type {CustomResolver} from 'metro-resolver'; type ResolveOptions = {| assetExts: Extensions, extraNodeModules: {[id: string]: string}, mainFields: $ReadOnlyArray<string>, resolveRequest?: ?CustomResolver, +sourceExts: Extensions, transformedFiles: {[path: Path]: TransformedCodeFile}, |}; const platforms = new Set(defaults.platforms); const GENERIC_PLATFORM = 'g'; const PACKAGE_JSON = path.sep + 'package.json'; const NULL_MODULE: Moduleish = { path: '/', getPackage() {}, isHaste() { throw new Error('not implemented'); }, getName() { throw new Error('not implemented'); }, }; // This function maps the ModuleGraph data structure to jest-haste-map's ModuleMap const createModuleMap = ({files, helpers, moduleCache, sourceExts}) => { const map = Object.create(null); files.forEach(filePath => { if (helpers.isNodeModulesDir(filePath)) { return; } let id; let module; if (filePath.endsWith(PACKAGE_JSON)) { module = moduleCache.getPackage(filePath); id = module.data.name; } else if (sourceExts.indexOf(path.extname(filePath).substr(1)) !== -1) { module = moduleCache.getModule(filePath); id = module.name; } if (!(id && module && module.isHaste())) { return; } if (!map[id]) { map[id] = Object.create(null); } const platform = parsePlatformFilePath(filePath, platforms).platform || GENERIC_PLATFORM; const existingModule = map[id][platform]; // 0 = Module, 1 = Package in jest-haste-map map[id][platform] = [filePath, module.type === 'Package' ? 1 : 0]; if (existingModule && existingModule[0] !== filePath) { throw new Error( [ '@providesModule naming collision:', ` Duplicate module name: \`${id}\``, ` Paths: \`${filePath}\` collides with \`${existingModule[0]}\``, '', 'This error is caused by a @providesModule declaration ' + 'with the same name across two different files.', ].join('\n'), ); } }); return map; }; exports.createResolveFn = function(options: ResolveOptions): ResolveFn { const {assetExts, extraNodeModules, transformedFiles, sourceExts} = options; const files = Object.keys(transformedFiles); function getTransformedFile(path) { const result = transformedFiles[path]; if (!result) { throw new Error(`"${path} does not exist`); } return result; } const helpers = new DependencyGraphHelpers({ assetExts, providesModuleNodeModules: defaults.providesModuleNodeModules, }); const hasteFS = new HasteFS(files); const moduleCache = new ModuleCache( filePath => hasteFS.closest(filePath, 'package.json'), getTransformedFile, ); const filesByDirNameIndex = new FilesByDirNameIndex(files); const assetResolutionCache = new AssetResolutionCache({ assetExtensions: new Set(assetExts), getDirFiles: dirPath => filesByDirNameIndex.getAllFiles(dirPath), platforms, }); const moduleResolver = new ModuleResolver({ dirExists: filePath => hasteFS.dirExists(filePath), doesFileExist: filePath => hasteFS.exists(filePath), extraNodeModules, isAssetFile: filePath => helpers.isAssetFile(filePath), mainFields: options.mainFields, moduleCache, moduleMap: new ModuleMap({ duplicates: Object.create(null), map: createModuleMap({files, helpers, moduleCache, sourceExts}), mocks: Object.create(null), }), preferNativePlatform: true, resolveAsset: (dirPath, assetName, platform) => assetResolutionCache.resolve(dirPath, assetName, platform), resolveRequest: options.resolveRequest, sourceExts, }); return (id, sourcePath, platform, _, callback) => { const from = sourcePath != null ? new Module(sourcePath, moduleCache, getTransformedFile(sourcePath)) : NULL_MODULE; const allowHaste = !helpers.isNodeModulesDir(from.path); return moduleResolver.resolveDependency(from, id, allowHaste, platform) .path; }; };
32.124224
98
0.678461
6834ffefaff58d6b29cd1c4fe2e3c5bae251c4a8
5,700
js
JavaScript
packages/app/src/client/services/AdminLdapSecurityContainer.js
weseek/crowi
b2c5a30cc1c1993031aa7282a134c1685c13617a
[ "MIT" ]
164
2017-03-30T11:35:52.000Z
2018-04-02T05:31:01.000Z
packages/app/src/client/services/AdminLdapSecurityContainer.js
weseek/crowi
b2c5a30cc1c1993031aa7282a134c1685c13617a
[ "MIT" ]
159
2017-03-30T10:24:04.000Z
2018-04-05T07:06:50.000Z
packages/app/src/client/services/AdminLdapSecurityContainer.js
weseek/crowi
b2c5a30cc1c1993031aa7282a134c1685c13617a
[ "MIT" ]
56
2017-03-30T07:05:42.000Z
2018-04-05T05:28:02.000Z
import { Container } from 'unstated'; import loggerFactory from '~/utils/logger'; import { removeNullPropertyFromObject } from '~/utils/object-utils'; import { apiv3Get, apiv3Put } from '../util/apiv3-client'; const logger = loggerFactory('growi:services:AdminLdapSecurityContainer'); /** * Service container for admin security page (SecurityLdapSetting.jsx) * @extends {Container} unstated Container */ export default class AdminLdapSecurityContainer extends Container { constructor(appContainer) { super(); this.appContainer = appContainer; this.dummyServerUrl = 0; this.dummyServerUrlForError = 1; this.state = { retrieveError: null, // set dummy value tile for using suspense serverUrl: this.dummyServerUrl, isUserBind: false, ldapBindDN: '', ldapBindDNPassword: '', ldapSearchFilter: '', ldapAttrMapUsername: '', isSameUsernameTreatedAsIdenticalUser: false, ldapAttrMapMail: '', ldapAttrMapName: '', ldapGroupSearchBase: '', ldapGroupSearchFilter: '', ldapGroupDnProperty: '', }; } /** * retrieve security data */ async retrieveSecurityData() { try { const response = await apiv3Get('/security-setting/'); const { ldapAuth } = response.data.securityParams; this.setState({ serverUrl: ldapAuth.serverUrl, isUserBind: ldapAuth.isUserBind, ldapBindDN: ldapAuth.ldapBindDN, ldapBindDNPassword: ldapAuth.ldapBindDNPassword, ldapSearchFilter: ldapAuth.ldapSearchFilter, ldapAttrMapUsername: ldapAuth.ldapAttrMapUsername, isSameUsernameTreatedAsIdenticalUser: ldapAuth.isSameUsernameTreatedAsIdenticalUser, ldapAttrMapMail: ldapAuth.ldapAttrMapMail, ldapAttrMapName: ldapAuth.ldapAttrMapName, ldapGroupSearchBase: ldapAuth.ldapGroupSearchBase, ldapGroupSearchFilter: ldapAuth.ldapGroupSearchFilter, ldapGroupDnProperty: ldapAuth.ldapGroupDnProperty, }); } catch (err) { this.setState({ retrieveError: err }); logger.error(err); throw new Error('Failed to fetch data'); } } /** * Workaround for the mangling in production build to break constructor.name */ static getClassName() { return 'AdminLdapSecurityContainer'; } /** * Change serverUrl */ changeServerUrl(serverUrl) { this.setState({ serverUrl }); } /** * Change ldapBindMode */ changeLdapBindMode() { this.setState({ isUserBind: !this.state.isUserBind }); } /** * Change bindDN */ changeBindDN(ldapBindDN) { this.setState({ ldapBindDN }); } /** * Change bindDNPassword */ changeBindDNPassword(ldapBindDNPassword) { this.setState({ ldapBindDNPassword }); } /** * Change ldapSearchFilter */ changeSearchFilter(ldapSearchFilter) { this.setState({ ldapSearchFilter }); } /** * Change ldapAttrMapUsername */ changeAttrMapUsername(ldapAttrMapUsername) { this.setState({ ldapAttrMapUsername }); } /** * Switch is same username treated as identical user */ switchIsSameUsernameTreatedAsIdenticalUser() { this.setState({ isSameUsernameTreatedAsIdenticalUser: !this.state.isSameUsernameTreatedAsIdenticalUser }); } /** * Change ldapAttrMapMail */ changeAttrMapMail(ldapAttrMapMail) { this.setState({ ldapAttrMapMail }); } /** * Change ldapAttrMapName */ changeAttrMapName(ldapAttrMapName) { this.setState({ ldapAttrMapName }); } /** * Change ldapGroupSearchBase */ changeGroupSearchBase(ldapGroupSearchBase) { this.setState({ ldapGroupSearchBase }); } /** * Change ldapGroupSearchFilter */ changeGroupSearchFilter(ldapGroupSearchFilter) { this.setState({ ldapGroupSearchFilter }); } /** * Change ldapGroupDnProperty */ changeGroupDnProperty(ldapGroupDnProperty) { this.setState({ ldapGroupDnProperty }); } /** * Update ldap option */ async updateLdapSetting() { const { serverUrl, isUserBind, ldapBindDN, ldapBindDNPassword, ldapSearchFilter, ldapAttrMapUsername, isSameUsernameTreatedAsIdenticalUser, ldapAttrMapMail, ldapAttrMapName, ldapGroupSearchBase, ldapGroupSearchFilter, ldapGroupDnProperty, } = this.state; let requestParams = { serverUrl, isUserBind, ldapBindDN, ldapBindDNPassword, ldapSearchFilter, ldapAttrMapUsername, isSameUsernameTreatedAsIdenticalUser, ldapAttrMapMail, ldapAttrMapName, ldapGroupSearchBase, ldapGroupSearchFilter, ldapGroupDnProperty, }; requestParams = await removeNullPropertyFromObject(requestParams); const response = await apiv3Put('/security-setting/ldap', requestParams); const { securitySettingParams } = response.data; this.setState({ serverUrl: securitySettingParams.serverUrl, isUserBind: securitySettingParams.isUserBind, ldapBindDN: securitySettingParams.ldapBindDN, ldapBindDNPassword: securitySettingParams.ldapBindDNPassword, ldapSearchFilter: securitySettingParams.ldapSearchFilter, ldapAttrMapUsername: securitySettingParams.ldapAttrMapUsername, isSameUsernameTreatedAsIdenticalUser: securitySettingParams.isSameUsernameTreatedAsIdenticalUser, ldapAttrMapMail: securitySettingParams.ldapAttrMapMail, ldapAttrMapName: securitySettingParams.ldapAttrMapName, ldapGroupSearchBase: securitySettingParams.ldapGroupSearchBase, ldapGroupSearchFilter: securitySettingParams.ldapGroupSearchFilter, ldapGroupDnProperty: securitySettingParams.ldapGroupDnProperty, }); return response; } }
27.272727
137
0.707368
68350d679a19c6f54e219642e56e8110ae94e92e
2,487
js
JavaScript
src/store/migrations/16_enable_terra_chain.js
michaeltout/wallet
c3bca0b9887de31579f7143eb62303d805309a98
[ "MIT" ]
1
2022-01-23T17:45:16.000Z
2022-01-23T17:45:16.000Z
src/store/migrations/16_enable_terra_chain.js
rootial/wallet
4660c7e0e30cf6497e180189abb8957f92883c44
[ "MIT" ]
null
null
null
src/store/migrations/16_enable_terra_chain.js
rootial/wallet
4660c7e0e30cf6497e180189abb8957f92883c44
[ "MIT" ]
null
null
null
import { accountCreator, getNextAccountColor } from '@/utils/accounts' import { Networks } from '@/utils/networks' import { getDerivationPath } from '@/utils/derivationPath' import { chains, ChainId } from '@liquality/cryptoassets' export const enableTerraChain = { version: 16, migrate: async (state) => { const accounts = {} const enabledChains = {} for (const walletId in state.accounts) { accounts[walletId] = {} enabledChains[walletId] = {} for (const network of Networks) { const accountExists = state.accounts[walletId][network].find( (account) => account.chain === ChainId.Terra ) if (accountExists) { accounts[walletId][network] = [...state.accounts[walletId][network]] } else { const chain = chains[ChainId.Terra] const derivationPath = getDerivationPath(ChainId.Terra, network, 0, 'default') const terraAccount = accountCreator({ walletId, network, account: { name: `${chain.name} 1`, alias: '', chain: ChainId.Terra, addresses: [], assets: ['LUNA', 'UST'], balances: {}, type: 'default', index: 0, derivationPath, color: getNextAccountColor(ChainId.Terra, 0) } }) accounts[walletId][network] = [...state.accounts[walletId][network], terraAccount] } const chainEnabled = state.enabledChains[walletId][network].includes(ChainId.Terra) if (chainEnabled) { enabledChains[walletId][network] = [...state.enabledChains[walletId][network]] } else { enabledChains[walletId][network] = [ ...state.enabledChains[walletId][network], ChainId.Terra ] } } } const enabledAssets = {} for (const network of Networks) { enabledAssets[network] = {} for (const walletId in state.enabledAssets[network]) { enabledAssets[network][walletId] = [...state.enabledAssets[network][walletId]] if (!enabledAssets[network][walletId].includes('LUNA')) enabledAssets[network][walletId].push('LUNA') if (!enabledAssets[network][walletId].includes('UST')) enabledAssets[network][walletId].push('UST') } } return { ...state, enabledChains, enabledAssets, accounts } } }
33.16
92
0.576598
6835e0c03e16e674495bd192efc054f13f7e5c8c
16,366
js
JavaScript
_nuxt/vendors.app.ad41f5cf.cb669b3.js
tokenchain/TronOraclePrice
d4b5f431325304003e814bdc7bfe3e4786859c64
[ "MIT" ]
null
null
null
_nuxt/vendors.app.ad41f5cf.cb669b3.js
tokenchain/TronOraclePrice
d4b5f431325304003e814bdc7bfe3e4786859c64
[ "MIT" ]
null
null
null
_nuxt/vendors.app.ad41f5cf.cb669b3.js
tokenchain/TronOraclePrice
d4b5f431325304003e814bdc7bfe3e4786859c64
[ "MIT" ]
null
null
null
(window.webpackJsonp=window.webpackJsonp||[]).push([[127],{1392:function(t,e,n){var o=n(1393),r=n(1394),c=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new o,this._angleAxis=new r,this._radiusAxis.polar=this._angleAxis.polar=this};c.prototype={type:"polar",axisPointerEnabled:!0,constructor:c,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(data){return this._radiusAxis.containData(data[0])&&this._angleAxis.containData(data[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],n=this._angleAxis,o=this._radiusAxis;return n.scale.type===t&&e.push(n),o.scale.type===t&&e.push(o),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(data,t){return this.coordToPoint([this._radiusAxis.dataToRadius(data[0],t),this._angleAxis.dataToAngle(data[1],t)])},pointToData:function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,n=t[1]-this.cy,o=this.getAngleAxis(),r=o.getExtent(),c=Math.min(r[0],r[1]),l=Math.max(r[0],r[1]);o.inverse?c=l-360:l=c+360;var h=Math.sqrt(e*e+n*n);e/=h,n/=h;for(var d=Math.atan2(-n,e)/Math.PI*180,x=d<c?1:-1;d<c||d>l;)d+=360*x;return[h,d]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},getArea:function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*o,endAngle:-n[1]*o,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,o=e-this.cy,r=n*n+o*o,c=this.r,l=this.r0;return r<=c*c&&r>=l*l}}}};var l=c;t.exports=l},1393:function(t,e,n){var o=n(1),r=n(195);function c(t,e){r.call(this,"radius",t,e),this.type="category"}c.prototype={constructor:c,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:r.prototype.dataToCoord,radiusToData:r.prototype.coordToData},o.inherits(c,r);var l=c;t.exports=l},1394:function(t,e,n){var o=n(1),r=n(138),c=n(195),l=(0,n(42).makeInner)();function h(t,e){e=e||[0,360],c.call(this,"angle",t,e),this.type="category"}h.prototype={constructor:h,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:c.prototype.dataToCoord,angleToData:c.prototype.coordToData,calculateCategoryInterval:function(){var t=this,e=t.getLabelModel(),n=t.scale,o=n.getExtent(),c=n.count();if(o[1]-o[0]<1)return 0;var h=o[0],d=t.dataToCoord(h+1)-t.dataToCoord(h),x=Math.abs(d),rect=r.getBoundingRect(h,e.getFont(),"center","top"),f=Math.max(rect.height,7)/x;isNaN(f)&&(f=1/0);var y=Math.max(0,Math.floor(f)),m=l(t.model),v=m.lastAutoInterval,A=m.lastTickCount;return null!=v&&null!=A&&Math.abs(v-y)<=1&&Math.abs(A-c)<=1&&v>y?y=v:(m.lastTickCount=c,m.lastAutoInterval=y),y}},o.inherits(h,c);var d=h;t.exports=d},1395:function(t,e,n){var o=n(12);n(1396);var r=o.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});t.exports=r},1396:function(t,e,n){var o=n(1),r=n(86),c=n(350),l=n(242),h=r.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});o.merge(h.prototype,l);var d={splitNumber:5};function x(t,option){return option.type||(option.data?"category":"value")}c("angle",h,x,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),c("radius",h,x,d)},1415:function(t,e,n){var o=n(1),r=n(1416),c=n(348),l=n(34),h=n(156),d=h.getScaleExtent,x=h.niceScaleExtent,f=n(155),y=n(718);function m(t,e,n){this._model=t,this.dimensions=[],this._indicatorAxes=o.map(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,o=new r(n,"log"===t.get("axisType")?new y:new c);return o.name=t.get("name"),o.model=t,t.axis=o,this.dimensions.push(n),o}),this),this.resize(t,n),this.cx,this.cy,this.r,this.r0,this.startAngle}m.prototype.getIndicatorAxes=function(){return this._indicatorAxes},m.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},m.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},m.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,o=Math.sqrt(e*e+n*n);e/=o,n/=o;for(var r,c=Math.atan2(-n,e),l=1/0,h=-1,i=0;i<this._indicatorAxes.length;i++){var d=this._indicatorAxes[i],x=Math.abs(c-d.angle);x<l&&(r=d,h=i,l=x)}return[h,+(r&&r.coordToData(o))]},m.prototype.resize=function(t,e){var n=t.get("center"),r=e.getWidth(),c=e.getHeight(),h=Math.min(r,c)/2;this.cx=l.parsePercent(n[0],r),this.cy=l.parsePercent(n[1],c),this.startAngle=t.get("startAngle")*Math.PI/180;var d=t.get("radius");"string"!=typeof d&&"number"!=typeof d||(d=[0,d]),this.r0=l.parsePercent(d[0],h),this.r=l.parsePercent(d[1],h),o.each(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},m.prototype.update=function(t,e){var n=this._indicatorAxes,r=this._model;o.each(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,c){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===r){var data=e.getData();o.each(n,(function(t){t.scale.unionExtentFromData(data,data.mapDimension(t.dim))}))}}),this);var c=r.get("splitNumber");function h(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),n=t/e;return 2===n?n=5:n*=2,n*e}o.each(n,(function(t,e){var n=d(t.scale,t.model).extent;x(t.scale,t.model);var o=t.model,r=t.scale,f=o.getMin(),y=o.getMax(),m=r.getInterval();if(null!=f&&null!=y)r.setExtent(+f,+y),r.setInterval((y-f)/c);else if(null!=f){do{v=f+m*c,r.setExtent(+f,v),r.setInterval(m),m=h(m)}while(v<n[1]&&isFinite(v)&&isFinite(n[1]))}else if(null!=y){do{A=y-m*c,r.setExtent(A,+y),r.setInterval(m),m=h(m)}while(A>n[0]&&isFinite(A)&&isFinite(n[0]))}else{r.getTicks().length-1>c&&(m=h(m));var v=Math.ceil(n[1]/m)*m,A=l.round(v-m*c);r.setExtent(A,v),r.setInterval(m)}}))},m.dimensions=[],m.create=function(t,e){var n=[];return t.eachComponent("radar",(function(o){var r=new m(o,t,e);n.push(r),o.coordinateSystem=r})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])})),n},f.register("radar",m);var v=m;t.exports=v},1416:function(t,e,n){var o=n(1),r=n(195);function c(t,e,n){r.call(this,t,e,n),this.type="value",this.angle=0,this.name="",this.model}o.inherits(c,r);var l=c;t.exports=l},1417:function(t,e,n){var o=n(12),r=n(1),c=n(728),l=n(81),h=n(242),d=c.valueAxis;function x(t,e){return r.defaults({show:e},t)}var f=o.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),o=this.get("axisLine"),c=this.get("axisTick"),d=this.get("axisType"),x=this.get("axisLabel"),f=this.get("name"),y=this.get("name.show"),m=this.get("name.formatter"),v=this.get("nameGap"),A=this.get("triggerEvent"),T=r.map(this.get("indicator")||[],(function(T){null!=T.max&&T.max>0&&!T.min?T.min=0:null!=T.min&&T.min<0&&!T.max&&(T.max=0);var _=f;if(null!=T.color&&(_=r.defaults({color:T.color},f)),T=r.merge(r.clone(T),{boundaryGap:t,splitNumber:e,scale:n,axisLine:o,axisTick:c,axisType:d,axisLabel:x,name:T.text,nameLocation:"end",nameGap:v,nameTextStyle:_,triggerEvent:A},!1),y||(T.name=""),"string"==typeof m){var M=T.name;T.name=m.replace("{value}",null!=M?M:"")}else"function"==typeof m&&(T.name=m(T.name,T));var S=r.extend(new l(T,null,this.ecModel),h);return S.mainType="radar",S.componentIndex=this.componentIndex,S}),this);this.getIndicatorModels=function(){return T}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:r.merge({lineStyle:{color:"#bbb"}},d.axisLine),axisLabel:x(d.axisLabel,!1),axisTick:x(d.axisTick,!1),axisType:"interval",splitLine:x(d.splitLine,!0),splitArea:x(d.splitArea,!0),indicator:[]}});t.exports=f},1521:function(t,e,n){var o=n(1522);n(155).register("single",{create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(r,c){var l=new o(r,t,e);l.name="single_"+c,l.resize(r,e),r.coordinateSystem=l,n.push(l)})),t.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=n&&n.coordinateSystem}})),n},dimensions:o.prototype.dimensions})},1522:function(t,e,n){var o=n(1523),r=n(156),c=n(59).getLayoutRect,l=n(1).each;function h(t,e,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}h.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:h,_init:function(t,e,n){var c=this.dimension,l=new o(c,r.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),h="category"===l.type;l.onBand=h&&t.get("boundaryGap"),l.inverse=t.get("inverse"),l.orient=t.get("orient"),t.axis=l,l.model=t,l.coordinateSystem=this,this._axis=l},update:function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var data=t.getData();l(data.mapDimension(this.dimension,!0),(function(t){this._axis.scale.unionExtentFromData(data,t)}),this),r.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(t,e){this._rect=c({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var rect=this._rect,t=this._axis,e=t.isHorizontal(),n=e?[0,rect.width]:[0,rect.height],o=t.reverse?1:0;t.setExtent(n[o],n[1-o]),this._updateAxisTransform(t,e?rect.x:rect.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),o=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return o-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return o-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var rect=this.getRect(),e=this.getAxis();return"horizontal"===e.orient?e.contain(e.toLocalCoord(t[0]))&&t[1]>=rect.y&&t[1]<=rect.y+rect.height:e.contain(e.toLocalCoord(t[1]))&&t[0]>=rect.y&&t[0]<=rect.y+rect.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),rect=this.getRect(),n=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[o]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-o]=0===o?rect.y+rect.height/2:rect.x+rect.width/2,n}};var d=h;t.exports=d},1523:function(t,e,n){var o=n(1),r=n(195),c=function(t,e,n,o,c){r.call(this,t,e,n),this.type=o||"value",this.position=c||"bottom",this.orient=null};c.prototype={constructor:c,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},o.inherits(c,r);var l=c;t.exports=l},1525:function(t,e,n){var o=n(1),r=n(86),c=n(350),l=n(242),h=r.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}});o.merge(h.prototype,l),c("single",h,(function(t,option){return option.type||(option.data?"category":"value")}),{left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}});var d=h;t.exports=d},1540:function(t,e,n){var o=n(1);function r(t,e){var n=this.getAxis(),o=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(o-r)-n.dataToCoord(o+r))}t.exports=function(t){var rect=t.getRect();return{coordSys:{type:"singleAxis",x:rect.x,y:rect.y,width:rect.width,height:rect.height},api:{coord:function(e){return t.dataToPoint(e)},size:o.bind(r,t)}}}},1541:function(t,e,n){var o=n(1);function r(t,e){return o.map(["Radius","Angle"],(function(n,o){var r=this["get"+n+"Axis"](),c=e[o],l=t[o]/2,h="dataTo"+n,d="category"===r.type?r.getBandWidth():Math.abs(r[h](c-l)-r[h](c+l));return"Angle"===n&&(d=d*Math.PI/180),d}),this)}t.exports=function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),c=e.getExtent();return c[0]>c[1]&&c.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:c[1],r0:c[0]},api:{coord:o.bind((function(data){var o=e.dataToRadius(data[0]),r=n.dataToAngle(data[1]),c=t.coordToPoint([o,r]);return c.push(o,r*Math.PI/180),c})),size:o.bind(r,t)}}}},489:function(t,e,n){n(49).__DEV__;var o=n(1),r=n(1392),c=n(34).parsePercent,l=n(156),h=l.createScaleByModel,d=l.niceScaleExtent,x=n(155),f=n(169).getStackedDimension;function y(t,e){var n=this,r=n.getAngleAxis(),c=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),c.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var data=t.getData();o.each(data.mapDimension("radius",!0),(function(t){c.scale.unionExtentFromData(data,f(data,t))})),o.each(data.mapDimension("angle",!0),(function(t){r.scale.unionExtentFromData(data,f(data,t))}))}})),d(r.scale,r.model),d(c.scale,c.model),"category"===r.type&&!r.onBand){var l=r.getExtent(),h=360/r.scale.count();r.inverse?l[1]+=h:l[1]-=h,r.setExtent(l[0],l[1])}}function m(t,e){if(t.type=e.get("type"),t.scale=h(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}n(1395);var v={dimensions:r.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,l){var h=new r(l);h.update=y;var d=h.getRadiusAxis(),x=h.getAngleAxis(),f=t.findAxisModel("radiusAxis"),v=t.findAxisModel("angleAxis");m(d,f),m(x,v),function(t,e,n){var r=e.get("center"),l=n.getWidth(),h=n.getHeight();t.cx=c(r[0],l),t.cy=c(r[1],h);var d=t.getRadiusAxis(),x=Math.min(l,h)/2,f=e.get("radius");null==f?f=[0,"100%"]:o.isArray(f)||(f=[0,f]),f=[c(f[0],x),c(f[1],x)],d.inverse?d.setExtent(f[1],f[0]):d.setExtent(f[0],f[1])}(h,t,e),n.push(h),t.coordinateSystem=h,h.model=t})),t.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=n.coordinateSystem}})),n}};x.register("polar",v)},760:function(t,e,n){var o=n(1);e.layout=function(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,c={},l=r.position,h=r.orient,rect=n.getRect(),d=[rect.x,rect.x+rect.width,rect.y,rect.y+rect.height],x={horizontal:{top:d[2],bottom:d[3]},vertical:{left:d[0],right:d[1]}};c.position=["vertical"===h?x.vertical[l]:d[0],"horizontal"===h?x.horizontal[l]:d[3]],c.rotation=Math.PI/2*{horizontal:0,vertical:1}[h],c.labelDirection=c.tickDirection=c.nameDirection={top:-1,bottom:1,right:1,left:-1}[l],t.get("axisTick.inside")&&(c.tickDirection=-c.tickDirection),o.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(c.labelDirection=-c.labelDirection);var f=e.rotate;return null==f&&(f=t.get("axisLabel.rotate")),c.labelRotation="top"===l?-f:f,c.z2=1,c}}}]);
16,366
16,366
0.71062
6835fa92974eed34dce23de015dc2717b1684a5e
292
js
JavaScript
src/components/button/button.component.js
Nodenkey/koffee
bc3d85d1c09e5eb290f02c8f3fc735957cac194e
[ "RSA-MD" ]
null
null
null
src/components/button/button.component.js
Nodenkey/koffee
bc3d85d1c09e5eb290f02c8f3fc735957cac194e
[ "RSA-MD" ]
null
null
null
src/components/button/button.component.js
Nodenkey/koffee
bc3d85d1c09e5eb290f02c8f3fc735957cac194e
[ "RSA-MD" ]
null
null
null
import React from 'react'; import {StyledButton} from "./button.style"; import Link from "gatsby-link"; const Button = ({children}) => { return ( <Link to='#location'><StyledButton> {children} </StyledButton> </Link> ); }; export default Button;
19.466667
44
0.585616
683677164d2472af109cdbd4721eb96a66d66e13
1,908
js
JavaScript
src/index.test.js
nanxiaobei/flooks
4504efc1e02f1fb4e8fdf65b10fdb7d30cd469f0
[ "MIT" ]
315
2019-07-31T03:34:10.000Z
2022-03-27T05:27:02.000Z
src/index.test.js
nanxiaobei/flooks
4504efc1e02f1fb4e8fdf65b10fdb7d30cd469f0
[ "MIT" ]
29
2019-08-01T03:05:27.000Z
2022-03-24T04:00:26.000Z
src/index.test.js
nanxiaobei/flooks
4504efc1e02f1fb4e8fdf65b10fdb7d30cd469f0
[ "MIT" ]
49
2019-07-31T14:39:15.000Z
2022-03-30T15:58:18.000Z
import 'jsdom-global/register'; import React from 'react'; import { configure, mount } from 'enzyme'; import Adapter from '@wojtekmaj/enzyme-adapter-react-17'; import useModel from './index.ts'; configure({ adapter: new Adapter() }); console.error = jest.fn((msg) => { if (!msg.includes('test was not wrapped in act(...)')) throw new Error(msg); }); test('useModel', (done) => { const counter = ({ get, set }) => ({ count: 0, open: false, add() { const { count } = get(); set({ count: count + 1 }); }, async addAsync() { await new Promise((resolve) => setTimeout(resolve, 0)); const { add } = get(); add(); }, toggle() { set((state) => ({ open: !state.open })); }, }); const error = ({ get, set }) => ({ errPayload() { set([]); }, errOutModel() { const { add } = get(counter); add(); const { notExist } = get(1); }, }); const Counter = () => { const { count, add, addAsync } = useModel(counter); const { open, toggle } = useModel(counter); const { errPayload, errOutModel } = useModel(error); return ( <> <p>{count}</p> <p>{open}</p> <button id="add" onClick={add} /> <button id="addAsync" onClick={addAsync} data-loading={addAsync.loading} /> <button id="toggle" onClick={toggle} /> <button id="errPayload" onClick={errPayload} /> <button id="errOutModel" onClick={errOutModel} /> </> ); }; const wrapper = mount(<Counter />); const click = (el) => wrapper.find(el).simulate('click'); const threw = (fn) => expect(fn).toThrow(); click('#add'); click('#addAsync'); click('#addAsync'); click('#toggle'); threw(() => useModel()); threw(() => click('#errPayload')); threw(() => click('#errOutModel')); setTimeout(() => { wrapper.unmount(); done(); }, 0); });
24.461538
83
0.537212
6836eb62002b945c3e16a607b86ae2f03ebc16e5
1,964
js
JavaScript
lib/endpoint/ComponentInteractionsEndpoint.js
ICO2S/sbolstack-api
fdde6c9c0cd46c81b7d254abf69e9f8cf0d1c145
[ "BSD-2-Clause" ]
null
null
null
lib/endpoint/ComponentInteractionsEndpoint.js
ICO2S/sbolstack-api
fdde6c9c0cd46c81b7d254abf69e9f8cf0d1c145
[ "BSD-2-Clause" ]
5
2016-12-14T18:50:58.000Z
2017-01-20T13:57:41.000Z
lib/endpoint/ComponentInteractionsEndpoint.js
ICO2S/sbolstack-api
fdde6c9c0cd46c81b7d254abf69e9f8cf0d1c145
[ "BSD-2-Clause" ]
null
null
null
var SBOLDocument = require('sboljs') var getSBOL = require('../getSBOL') var sbolRdfToXml = require('../sbolRdfToXml') var sparql = require('../sparql') var config = require('config') var federate = require('../federate') var collateSBOL = require('../collateSBOL') var loadTemplate = require('../loadTemplate') const getRdfSerializeAttribs = require('../getRdfSerializeAttribs') function ComponentInteractionsEndpoint(type) { return federate(endpoint, collateSBOL) function endpoint(req, callback) { console.log('endpoint: ComponentInteractionsEndpoint') var uri if(req.params.prefix) { var prefixes = config.get('prefixes') var baseUri = prefixes[req.params.prefix] if(!baseUri) { return callback(new Error('unknown prefix: ' + req.params.prefix)) } uri = baseUri + req.params.uri } else { uri = req.params.uri } var sbol = new SBOLDocument() var query = loadTemplate('./sparql/ComponentInteractions.sparql', { uri: uri }); console.log(query) sparql.queryJson(query, req.params.store, function(err, type, results) { if(err) return callback(err); console.log(results) var interactionURIs = [] results.forEach((result) => { interactionURIs.push(result.module) interactionURIs.push(result.interaction) }) getSBOL(sbol, req.params.store, interactionURIs, (err, sbol) => { if(err) return callback(err) callback(null, 200, { mimeType: 'application/rdf+xml', body: sbol.serializeXML(getRdfSerializeAttribs()) }) }) }) } } module.exports = ComponentInteractionsEndpoint
22.067416
86
0.559572
68373e1d58662a4cacb173bc334e1401bb96f8ef
2,444
js
JavaScript
examples/material-ui-dashboard/dashboard-app/src/components/UserSearch.js
rsbh/cube.js
89a2e28c3c6aea29fdf7b628174b3e03071515f6
[ "Cube", "Apache-2.0", "MIT" ]
10,008
2019-07-03T14:32:07.000Z
2022-03-31T20:51:41.000Z
examples/material-ui-dashboard/dashboard-app/src/components/UserSearch.js
rsbh/cube.js
89a2e28c3c6aea29fdf7b628174b3e03071515f6
[ "Cube", "Apache-2.0", "MIT" ]
2,847
2019-07-03T05:41:38.000Z
2022-03-31T19:46:18.000Z
examples/material-ui-dashboard/dashboard-app/src/components/UserSearch.js
rsbh/cube.js
89a2e28c3c6aea29fdf7b628174b3e03071515f6
[ "Cube", "Apache-2.0", "MIT" ]
1,227
2019-07-05T12:34:22.000Z
2022-03-29T17:05:52.000Z
import React from 'react'; import { useHistory } from 'react-router-dom'; import { makeStyles } from '@material-ui/styles'; import SearchIcon from '@material-ui/icons/Search'; import { useCubeQuery } from '@cubejs-client/react'; import FormControl from '@material-ui/core/FormControl'; import palette from '../theme/palette'; import Autocomplete from '@material-ui/lab/Autocomplete'; import TextField from '@material-ui/core/TextField'; import InputAdornment from '@material-ui/core/InputAdornment'; const useStyles = makeStyles((theme) => ({ root: { marginBottom: 32, width: '100%', color: palette.text.secondary, textClasses: {}, }, text: { color: palette.text.secondary, fontSize: 16, }, icon: { color: palette.text.secondary, }, })); const UserSearch = (props) => { const history = useHistory(); const classes = useStyles(); const { resultSet, error, isLoading } = useCubeQuery({ measures: ['Users.count'], timeDimensions: [ { dimension: 'Users.createdAt', }, ], order: { 'Users.id': 'asc', }, dimensions: ['Users.id', 'Users.firstName', 'Users.lastName'], filters: [], }); const handleChange = (value) => { history.push(`/user/${value.id}`); }; if (isLoading) { return null; } if (error) { return <pre>{error.toString()}</pre>; } if (!resultSet) { return null; } const options = resultSet.tablePivot().map((item) => { return { id: item['Users.id'], text: `${item['Users.id']} - ${item['Users.firstName']} ${item['Users.lastName']}`, }; }); return ( <FormControl className={classes.root}> <Autocomplete disableClearable onChange={(event, value) => { handleChange(value); }} forcePopupIcon={false} options={options} getOptionLabel={(option) => option.text} renderInput={(params) => ( <TextField {...params} label="Search" fullWidth InputProps={{ ...params.InputProps, endAdornment: ( <InputAdornment position="end"> <SearchIcon className={classes.icon} /> </InputAdornment> ), }} InputLabelProps={{ classes: { root: classes.text } }} /> )} /> </FormControl> ); }; export default UserSearch;
24.19802
89
0.567512
68376fd0d1ce43aaedd9e0f9130326af3eac5cc1
824
js
JavaScript
resources/js/store.js
DEV-ASHANAUR/laravel-vue-blog
1ef1979abfc3bf88ae1fa40957ddcdd3981dad83
[ "MIT" ]
2
2021-06-15T17:57:19.000Z
2021-06-15T18:45:41.000Z
resources/js/store.js
DEV-ASHANAUR/laravel-vue-blog
1ef1979abfc3bf88ae1fa40957ddcdd3981dad83
[ "MIT" ]
null
null
null
resources/js/store.js
DEV-ASHANAUR/laravel-vue-blog
1ef1979abfc3bf88ae1fa40957ddcdd3981dad83
[ "MIT" ]
null
null
null
import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) export default new Vuex.Store({ state : { counter : 1000, user : false, userPermission:null }, getters : { getCounter(state){ return state.counter }, getUser(state){ return state.user }, getUserPermission(state){ return state.userPermission } }, mutations: { changethecounter(state,data){ state.counter += data }, updateUser(state,data){ state.user = data }, setUserPermission(state,data){ state.userPermission = data } }, actions : { changeCouterAction({commit},data){ commit('changethecounter',data) }, } })
21.128205
43
0.507282
68377c013fac9558b5faa33a3a823a15721b8248
142,876
js
JavaScript
perf/old-versions/0.5.7/ractive-legacy.runtime.min.js
bensinober/ractive
db7a5d61730ad72857ae355597838b3d77f5bc28
[ "MIT" ]
8
2015-10-08T21:03:24.000Z
2021-04-01T14:20:07.000Z
perf/old-versions/0.5.7/ractive-legacy.runtime.min.js
bensinober/ractive
db7a5d61730ad72857ae355597838b3d77f5bc28
[ "MIT" ]
null
null
null
perf/old-versions/0.5.7/ractive-legacy.runtime.min.js
bensinober/ractive
db7a5d61730ad72857ae355597838b3d77f5bc28
[ "MIT" ]
4
2015-06-29T05:27:16.000Z
2021-04-01T14:20:12.000Z
/* ractive-legacy.runtime.min.js v0.5.7 2014-09-11 - commit 8d64b14a http://ractivejs.org http://twitter.com/RactiveJS Released under the MIT License. */ !function(a){"use strict";var b=a.Ractive,c=function(){var a={el:void 0,append:!1,template:{v:1,t:[]},"yield":null,preserveWhitespace:!1,sanitize:!1,stripComments:!0,data:{},computed:{},magic:!1,modifyArrays:!0,adapt:[],isolated:!1,twoway:!0,lazy:!1,noIntro:!1,transitionsEnabled:!0,complete:void 0,noCssTransform:!1,debug:!1};return a}(),d={linear:function(a){return a},easeIn:function(a){return Math.pow(a,3)},easeOut:function(a){return Math.pow(a-1,3)+1},easeInOut:function(a){return(a/=.5)<1?.5*Math.pow(a,3):.5*(Math.pow(a-2,3)+2)}},e=[],f=Object.prototype.hasOwnProperty,g=function(){var a=Object.prototype.toString;return function(b){return"[object Array]"===a.call(b)}}(),h=function(){var a=Object.prototype.toString;return function(b){return b&&"[object Object]"===a.call(b)}}(),i=function(a){return!isNaN(parseFloat(a))&&isFinite(a)},j=function(a,b,c,d,e){var f,g,h;return a.push(function(){g=a.interpolate}),h=/^([+-]?[0-9]+\.?(?:[0-9]+)?)(px|em|ex|%|in|cm|mm|pt|pc)$/,f={number:function(a,b){var c;return e(a)&&e(b)?(a=+a,b=+b,c=b-a,c?function(b){return a+b*c}:function(){return a}):null},array:function(a,b){var d,e,f,h;if(!c(a)||!c(b))return null;for(d=[],e=[],h=f=Math.min(a.length,b.length);h--;)e[h]=g(a[h],b[h]);for(h=f;h<a.length;h+=1)d[h]=a[h];for(h=f;h<b.length;h+=1)d[h]=b[h];return function(a){for(var b=f;b--;)d[b]=e[b](a);return d}},object:function(a,c){var e,f,h,i,j;if(!d(a)||!d(c))return null;e=[],i={},h={};for(j in a)b.call(a,j)&&(b.call(c,j)?(e.push(j),h[j]=g(a[j],c[j])):i[j]=a[j]);for(j in c)b.call(c,j)&&!b.call(a,j)&&(i[j]=c[j]);return f=e.length,function(a){for(var b,c=f;c--;)b=e[c],i[b]=h[b](a);return i}}}}(e,f,g,h,i),k=function(){var a;return a="undefined"==typeof document?!1:document&&document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}(),l=function(){function a(a){var b,d,e,f,g,h="";if(!c[a]){for(e=[];h.length<a;)h+=1;for(b=parseInt(h,2),f=function(a){return"1"===a},g=0;b>=g;g+=1){for(d=g.toString(2);d.length<a;)d="0"+d;e[g]=Array.prototype.map.call(d,f)}c[a]=e}return c[a]}var b,c={};return b=function(b){var d,e,f,g,h,i;for(d=b.split("."),(e=c[d.length])||(e=a(d.length)),h=[],f=function(a,b){return a?"*":d[b]},g=e.length;g--;)i=e[g].map(f).join("."),h.hasOwnProperty(i)||(h.push(i),h[i]=!0);return h}}(),m=function(a){function b(d,e,f,g){var h=arguments[4];void 0===h&&(h=!1);var i,j,k=!0;for(j=e.length;j>=0;j--)i=d._subs[e[j]],i&&(k=c(d,i,f,g)&&k);if(d._parent&&k){if(h&&d.component){var l=d.component.name+"."+e[e.length-1];e=a(l),f&&(f.component=d)}b(d._parent,e,f,g)}}function c(a,b,c,d){var e=null,f=!1;c&&(d=[c].concat(d));for(var g=0,h=b.length;h>g;g+=1)b[g].apply(a,d)===!1&&(f=!0);return c&&f&&(e=c.original)&&(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()),!f}var d;return d=function(c,d){var e=arguments[2];if(void 0===e&&(e={}),d){var f=a(d);b(c,f,e.event,e.args,!0)}}}(l),n=function(a,b){var c=a.indexOf(b);-1!==c&&a.splice(c,1)},o=function(){function a(a){setTimeout(a,0)}function b(a,b){return function(){for(var c;c=a.shift();)c(b)}}function c(a,b,d,f){var g;if(b===a)throw new TypeError("A promise's fulfillment handler cannot return the same promise");if(b instanceof e)b.then(d,f);else if(!b||"object"!=typeof b&&"function"!=typeof b)d(b);else{try{g=b.then}catch(h){return void f(h)}if("function"==typeof g){var i,j,k;j=function(b){i||(i=!0,c(a,b,d,f))},k=function(a){i||(i=!0,f(a))};try{g.call(b,j,k)}catch(h){if(!i)return f(h),void(i=!0)}}else d(b)}}var d,e,f={},g={},h={};return"function"==typeof o?e=o:(e=function(d){var i,j,k,l,m,n,o=[],p=[],q=f;k=function(c){return function(d){q===f&&(i=d,q=c,j=b(q===g?o:p,i),a(j))}},l=k(g),m=k(h);try{d(l,m)}catch(r){m(r)}return n={then:function(b,d){var g=new e(function(e,h){var i=function(a,b,d){b.push("function"==typeof a?function(b){var d;try{d=a(b),c(g,d,e,h)}catch(f){h(f)}}:d)};i(b,o,e),i(d,p,h),q!==f&&a(j)});return g}},n["catch"]=function(a){return this.then(null,a)},n},e.all=function(a){return new e(function(b,c){var d,e,f,g=[];if(!a.length)return void b(g);for(f=function(e){a[e].then(function(a){g[e]=a,--d||b(g)},c)},d=e=a.length;e--;)f(e)})},e.resolve=function(a){return new e(function(b){b(a)})},e.reject=function(a){return new e(function(b,c){c(a)})}),d=e}(),p=function(){var a=/\[\s*(\*|[0-9]|[1-9][0-9]+)\s*\]/g;return function(b){return(b||"").replace(a,".$1")}}(),q=function(a){do if(void 0!==a.context)return a.context;while(a=a.parent);return""},r=function(a,b){return null===a&&null===b?!0:"object"==typeof a||"object"==typeof b?!1:a===b},s=function(a,b,c){var d;a.push(function(){return d=a.runloop});var e=function(a,b,c,d,e){this.root=a,this.keypath=b,this.priority=e,this.otherInstance=c,this.otherKeypath=d,this.bind(),this.value=this.root.viewmodel.get(this.keypath)};return e.prototype={setValue:function(a){var e=this;return this.updating||this.counterpart&&this.counterpart.updating?void(this.value=a):void(b(a)&&a._ractive&&a._ractive.setting||c(a,this.value)||(this.updating=!0,d.addViewmodel(this.otherInstance.viewmodel),this.otherInstance.viewmodel.set(this.otherKeypath,a),this.value=a,d.scheduleTask(function(){return e.updating=!1})))},bind:function(){this.root.viewmodel.register(this.keypath,this)},rebind:function(a){this.unbind(),this.keypath=a,this.counterpart.otherKeypath=a,this.bind()},unbind:function(){this.root.viewmodel.unregister(this.keypath,this)}},function(a,b,c,d){var f,g,h,i,j,k;f=c+"="+d,h=a.bindings,h[f]||(g=a.instance,i=a.parentFragment.priority,j=new e(b,c,g,d,i),h.push(j),g.twoway&&(k=new e(g,d,b,c,1),h.push(k),j.counterpart=k,k.counterpart=j),h[f]=j)}}(e,g,r),t=function(a,b,c){function d(a,b){var c;if("."===b)return a;if(c=a?a.split("."):[],"../"===b.substr(0,3)){for(;"../"===b.substr(0,3);){if(!c.length)throw new Error(f);c.pop(),b=b.substring(3)}return c.push(b),c.join(".")}return a?a+b.replace(/^\.\//,"."):b.replace(/^\.\/?/,"")}var e,f,g;return f='Could not resolve reference - too many "../" prefixes',g={evaluateWrapped:!0},e=function h(e,f,i){var j,k,l,m,n,o,p,q,r,s;if(f=a(f),"~/"===f.substr(0,2))return f.substring(2);if("."===f.charAt(0))return d(b(i),f);k=f.split(".")[0];do if(j=i.context,j&&(o=!0,n=e.viewmodel.get(j,g),n&&("object"==typeof n||"function"==typeof n)&&k in n))return j+"."+f;while(i=i.parent);if(k in e.data||k in e.viewmodel.computations)return f;if(e._parent&&!e.isolated){if(i=e.component.parentFragment,i.indexRefs&&void 0!==(l=i.indexRefs[f]))return e.component.indexRefBindings[f]=f,void e.viewmodel.set(f,l,!0);if(m=h(e._parent,f,i)){for(p=m.split("."),q=f.split(".");p.length>1&&q.length>1&&p[p.length-1]===q[q.length-1];)p.pop(),q.pop();return r=p.join("."),s=q.join("."),e.viewmodel.set(s,e._parent.viewmodel.get(r),!0),c(e.component,e._parent,r,s),f}}return o?void 0!==e.viewmodel.get(f)?f:void 0:f}}(p,q,s),u=function(a){function b(a){a.detach()}function c(a){a.detachNodes()}function d(a){!a.ready||a.outros.length||a.outroChildren||(a.outrosComplete||(a.parent?a.parent.decrementOutros(a):a.detachNodes(),a.outrosComplete=!0),a.intros.length||a.totalChildren||("function"==typeof a.callback&&a.callback(),a.parent&&a.parent.decrementTotal()))}var e=function(a,b){this.callback=a,this.parent=b,this.intros=[],this.outros=[],this.children=[],this.totalChildren=this.outroChildren=0,this.detachQueue=[],this.outrosComplete=!1,b&&b.addChild(this)};return e.prototype={addChild:function(a){this.children.push(a),this.totalChildren+=1,this.outroChildren+=1},decrementOutros:function(){this.outroChildren-=1,d(this)},decrementTotal:function(){this.totalChildren-=1,d(this)},add:function(a){var b=a.isIntro?this.intros:this.outros;b.push(a)},remove:function(b){var c=b.isIntro?this.intros:this.outros;a(c,b),d(this)},init:function(){this.ready=!0,d(this)},detachNodes:function(){this.detachQueue.forEach(b),this.children.forEach(c)}},e}(n),v=function(a,b,c,d,e,f){function g(){var a,c,d;for(a=0;a<k.viewmodels.length;a+=1)c=k.viewmodels[a],d=c.applyChanges(),d&&b(c.ractive,"change",{args:[d]});for(k.viewmodels.length=0,h(),a=0;a<k.views.length;a+=1)k.views[a].update();for(k.views.length=0,a=0;a<k.tasks.length;a+=1)k.tasks[a]();return k.tasks.length=0,k.viewmodels.length?g():void 0}function h(){var a,b,c,d;for(a=m.length;a--;)b=m[a],b.keypath&&m.splice(a,1),(c=e(b.root,b.ref,b.parentFragment))&&((d||(d=[])).push({item:b,keypath:c}),m.splice(a,1));d&&d.forEach(i)}function i(a){a.item.resolve(a.keypath)}var j,k,l,m=[];return l={start:function(a,b){var c,e;return b&&(c=new d(function(a){return e=a})),k={previousBatch:k,transitionManager:new f(e,k&&k.transitionManager),views:[],tasks:[],viewmodels:[]},a&&k.viewmodels.push(a.viewmodel),c},end:function(){g(),k.transitionManager.init(),k=k.previousBatch},addViewmodel:function(a){k?-1===k.viewmodels.indexOf(a)&&k.viewmodels.push(a):a.applyChanges()},registerTransition:function(a){a._manager=k.transitionManager,k.transitionManager.add(a)},addView:function(a){k.views.push(a)},addUnresolved:function(a){m.push(a)},removeUnresolved:function(a){c(m,a)},detachWhenReady:function(a){k.transitionManager.detachQueue.push(a)},scheduleTask:function(a){k?k.tasks.push(a):a()}},a.runloop=l,j=l}(e,m,n,o,t,u),w=function(){var a=/^\s*[0-9]+\s*$/;return function(b){return a.test(b)?[]:{}}}(),x=function(a,b,c){function d(b,c,d){function e(b){var d,e;b.value=c,b.updating||(e=b.ractive,d=b.keypath,b.updating=!0,a.start(e),e.viewmodel.mark(d),a.end(),b.updating=!1)}var f,g,h,i,j,k;if(f=b.obj,g=b.prop,d&&!d.configurable){if("length"===g)return;throw new Error('Cannot use magic mode with property "'+g+'" - object is not configurable')}d&&(h=d.get,i=d.set),j=h||function(){return c},k=function(a){i&&i(a),c=h?h():a,k._ractiveWrappers.forEach(e)},k._ractiveWrappers=[b],Object.defineProperty(f,g,{get:j,set:k,enumerable:!0,configurable:!0})}var e,f,g;try{Object.defineProperty({},"test",{value:0}),f={filter:function(a,b,d){var e,f,g,h,i;return b?(e=b.split("."),f=e.pop(),g=e.join("."),(h=d.viewmodel.wrapped[g])&&!h.magic?!1:(i=d.get(g),c(i)&&/^[0-9]+$/.test(f)?!1:i&&("object"==typeof i||"function"==typeof i))):!1},wrap:function(a,b,c){return new g(a,b,c)}},g=function(a,b,c){var e,f,g,h;return this.magic=!0,this.ractive=a,this.keypath=c,this.value=b,e=c.split("."),this.prop=e.pop(),f=e.join("."),this.obj=f?a.get(f):a.data,g=this.originalDescriptor=Object.getOwnPropertyDescriptor(this.obj,this.prop),g&&g.set&&(h=g.set._ractiveWrappers)?void(-1===h.indexOf(this)&&h.push(this)):void d(this,b,g)},g.prototype={get:function(){return this.value},reset:function(b){this.updating||(this.updating=!0,this.obj[this.prop]=b,a.addViewmodel(this.ractive.viewmodel),this.ractive.viewmodel.mark(this.keypath),this.updating=!1)},set:function(a,c){this.updating||(this.obj[this.prop]||(this.updating=!0,this.obj[this.prop]=b(a),this.updating=!1),this.obj[this.prop][a]=c)},teardown:function(){var a,b,c,d,e;return this.updating?!1:(a=Object.getOwnPropertyDescriptor(this.obj,this.prop),b=a&&a.set,void(b&&(d=b._ractiveWrappers,e=d.indexOf(this),-1!==e&&d.splice(e,1),d.length||(c=this.obj[this.prop],Object.defineProperty(this.obj,this.prop,this.originalDescriptor||{writable:!0,enumerable:!0,configurable:!0}),this.obj[this.prop]=c))))}}}catch(h){f=!1}return e=f}(v,w,g),y=function(a){return!!a}(x),z={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},A=function(a,b){var c;return c=a?function(a,c){return c&&c!==b.html?document.createElementNS(c,a):document.createElement(a)}:function(a,c){if(c&&c!==b.html)throw"This browser does not support namespaces other than http://www.w3.org/1999/xhtml. The most likely cause of this error is that you're trying to render SVG in an older browser. See http://docs.ractivejs.org/latest/svg-and-older-browsers for more information";return document.createElement(a)}}(k,z),B=function(){var a="object"==typeof document;return a}(),C=function(a){var b;try{Object.defineProperty({},"test",{value:0}),a&&Object.defineProperty(document.createElement("div"),"test",{value:0}),b=Object.defineProperty}catch(c){b=function(a,b,c){a[b]=c.value}}return b}(B),D=function(a,b,c){var d;try{try{Object.defineProperties({},{test:{value:0}})}catch(e){throw e}c&&Object.defineProperties(a("div"),{test:{value:0}}),d=Object.defineProperties}catch(e){d=function(a,c){var d;for(d in c)c.hasOwnProperty(d)&&b(a,d,c[d])}}return d}(A,C,B),E=function(a){return function(b,c,d){var e;if("string"!=typeof c||!a(d))throw new Error("Bad arguments");if(e=+b.get(c)||0,!a(e))throw new Error("Cannot add to a non-numeric value");return b.set(c,e+d)}}(i),F=function(a){return function(b,c){return a(this,b,void 0===c?1:+c)}}(E),G=function(a){var b=/^\.+/;return function(c){return a(c).replace(b,"")}}(p),H=["o","ms","moz","webkit"],I=function(a){var b;return"undefined"==typeof window?b=null:(!function(a,b,c){var d,e;if(!c.requestAnimationFrame){for(d=0;d<a.length&&!c.requestAnimationFrame;++d)c.requestAnimationFrame=c[a[d]+"RequestAnimationFrame"];c.requestAnimationFrame||(e=c.setTimeout,c.requestAnimationFrame=function(a){var c,d,f;return c=Date.now(),d=Math.max(0,16-(c-b)),f=e(function(){a(c+d)},d),b=c+d,f})}}(a,0,window),b=window.requestAnimationFrame),b}(H),J=function(){var a;return a="undefined"!=typeof window&&window.performance&&"function"==typeof window.performance.now?function(){return window.performance.now()}:function(){return Date.now()}}(),K=function(a,b,c){var d=[],e={tick:function(){var f,g,h;for(h=b(),c.start(),f=0;f<d.length;f+=1)g=d[f],g.tick(h)||d.splice(f--,1);c.end(),d.length?a(e.tick):e.running=!1},add:function(b){d.push(b),e.running||(e.running=!0,a(e.tick))},abort:function(a,b){for(var c,e=d.length;e--;)c=d[e],c.root===b&&c.keypath===a&&c.stop()}};return e}(I,J,v),L=function(){var a,b={};return a="undefined"!=typeof console&&"function"==typeof console.warn&&"function"==typeof console.warn.apply?function(a,c){if(!c){if(b[a])return;b[a]=!0}console.warn(a)}:function(){}}(),M=function(){function a(a){return a.trim?a.trim():a.replace(/^\s+/,"").replace(/\s+$/,"")}function b(a){return a.str}var c,d=/(?:^|\})?\s*([^\{\}]+)\s*\{/g,e=/\/\*.*?\*\//g,f=/((?:(?:\[[^\]+]\])|(?:[^\s\+\>\~:]))+)((?::[^\s\+\>\~]+)?\s*[\s\+\>\~]?)\s*/g,g=/^@media/,h=/\[data-rvcguid="[a-z0-9-]+"]/g;return c=function(c,i){var j,k;return k=function(a){var c,d,e,g,h,j,k,l,m=[];for(c=[];d=f.exec(a);)c.push({str:d[0],base:d[1],modifiers:d[2]});for(g='[data-rvcguid="'+i+'"]',h=c.map(b),l=c.length;l--;)k=h.slice(),e=c[l],k[l]=e.base+g+e.modifiers||"",j=h.slice(),j[l]=g+" "+j[l],m.push(k.join(" "),j.join(" "));return m.join(", ")},j=h.test(c)?c.replace(h,'[data-rvcguid="'+i+'"]'):c.replace(e,"").replace(d,function(b,c){var d,e;return g.test(c)?b:(d=c.split(",").map(a),e=d.map(k).join(", ")+" ",b.replace(c,e))})}}(),N=function(a){function b(a,b,d){var e,f=b.constructor._guid;(e=c(d.css,d,f)||c(a.css,a,f))&&(b.constructor.css=e)}function c(b,c,d){return b?c.noCssTransform?b:a(b,d):void 0}var d={name:"css",extend:b,init:function(){}};return d}(M),O=function(){function a(a,b){return"function"==typeof b&&/_super/.test(a)}var b;return b=function(b,c,d){return d||a(b,c)?function(){var a,d="_super"in this,e=this._super;return this._super=c,a=b.apply(this,arguments),d&&(this._super=e),a}:b}}(),P=function(a){function b(a,b,c){var d=c.data||{},e=f(a.prototype.data);return g(e,d)}function c(a,c,d){c.data=b(a,c,d)}function d(a,c,d){var e=d.data,f=b(a,c,d);return"function"==typeof f&&(f=f.call(c,e)||e),c.data=f||{}}function e(a){var b=this.init(a.constructor,a,a);return b?(a.data=b,!0):void 0}function f(a){if("function"!=typeof a||!Object.keys(a).length)return a;var b={};return h(a,b),g(a,b)}function g(a,b){return"function"==typeof b?k(b,a):"function"==typeof a?j(b,a):i(b,a)}function h(a,b,c){for(var d in a)c&&d in b||(b[d]=a[d])}function i(a,b){return a=a||{},b?(h(b,a,!0),a):a}function j(a,b){return function(c){var d;if(a){d=[];for(var e in a)c&&e in c||d.push(e)}return c=b.call(this,c)||c,d&&d.length&&(c=c||{},d.forEach(function(b){c[b]=a[b]})),c}}function k(b,c){var d;return d="function"!=typeof c?function(a){i(a,c)}:function(b){return c=a(c,function(){},!0),c.call(this,b)||b},a(b,d)}var l,m={name:"data",extend:c,init:d,reset:e};return l=m}(O),Q={missingParser:"Missing Ractive.parse - cannot parse template. Either preparse or use the version that includes the parser",mergeComparisonFail:"Merge operation: comparison failed. Falling back to identity checking",noComponentEventArguments:"Components currently only support simple events - you cannot include arguments. Sorry!",noTemplateForPartial:'Could not find template for partial "{name}"',noNestedPartials:"Partials ({{>{name}}}) cannot contain nested inline partials",evaluationError:'Error evaluating "{uniqueString}": {err}',badArguments:"Bad arguments \"{arguments}\". I'm not allowed to argue unless you've paid.",failedComputation:'Failed to compute "{key}": {err}',missingPlugin:'Missing "{name}" {plugin} plugin. You may need to download a {plugin} via http://docs.ractivejs.org/latest/plugins#{plugin}s',badRadioInputBinding:"A radio input can have two-way binding on its name attribute, or its checked attribute - not both",noRegistryFunctionReturn:'A function was specified for "{name}" {registry}, but no {registry} was returned',defaultElSpecified:"The <{name}/> component has a default `el` property; it has been disregarded",noElementProxyEventWildcards:'Only component proxy-events may contain "*" wildcards, <{element} on-{event}/> is not valid.'},R=null,S=function(){var a;try{Object.create(null),a=Object.create}catch(b){a=function(){var a=function(){};return function(b,c){var d;return null===b?{}:(a.prototype=b,d=new a,c&&Object.defineProperties(d,c),d)}}()}return a}(),T=function(){var a,b,c;return"undefined"==typeof window?c=null:(a=window,b=a.document,c={},b||(c=null),Date.now||(Date.now=function(){return+new Date}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}),Object.keys||(Object.keys=function(){var a=Object.prototype.hasOwnProperty,b=!{toString:null}.propertyIsEnumerable("toString"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=c.length;return function(e){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on non-object");var f=[];for(var g in e)a.call(e,g)&&f.push(g);if(b)for(var h=0;d>h;h++)a.call(e,c[h])&&f.push(c[h]);return f}}()),Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c;for(void 0===b&&(b=0),0>b&&(b+=this.length),0>b&&(b=0),c=this.length;c>b;b++)if(this.hasOwnProperty(b)&&this[b]===a)return b;return-1}),Array.prototype.forEach||(Array.prototype.forEach=function(a,b){var c,d;for(c=0,d=this.length;d>c;c+=1)this.hasOwnProperty(c)&&a.call(b,this[c],c,this)}),Array.prototype.map||(Array.prototype.map=function(a,b){var c,d,e,f=this,g=[];for(f instanceof String&&(f=f.toString(),e=!0),c=0,d=f.length;d>c;c+=1)(f.hasOwnProperty(c)||e)&&(g[c]=a.call(b,f[c],c,f));return g}),"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(a,b){var c,d,e,f;if("function"!=typeof a)throw new TypeError(a+" is not a function");for(e=this.length,f=!1,arguments.length>1&&(d=b,f=!0),c=0;e>c;c+=1)this.hasOwnProperty(c)?f&&(d=a(d,this[c],c,this)):(d=this[c],f=!0);if(!f)throw new TypeError("Reduce of empty array with no initial value");return d}),Array.prototype.filter||(Array.prototype.filter=function(a,b){var c,d,e=[];for(c=0,d=this.length;d>c;c+=1)this.hasOwnProperty(c)&&a.call(b,this[c],c,this)&&(e[e.length]=this[c]);return e}),Array.prototype.every||(Array.prototype.every=function(a,b){var c,d,e;if(null==this)throw new TypeError;if(c=Object(this),d=c.length>>>0,"function"!=typeof a)throw new TypeError;for(e=0;d>e;e+=1)if(e in c&&!a.call(b,c[e],e,c))return!1;return!0}),"function"!=typeof Function.prototype.bind&&(Function.prototype.bind=function(a){var b,c,d,e,f=[].slice;if("function"!=typeof this)throw new TypeError("Function.prototype.bind called on non-function");return b=f.call(arguments,1),c=this,d=function(){},e=function(){var e=this instanceof d&&a?this:a;return c.apply(e,b.concat(f.call(arguments)))},d.prototype=this.prototype,e.prototype=new d,e}),a.addEventListener||!function(a,b){var c,d,e,f,g,h;c=function(a,b){var c,d=this;for(c in a)d[c]=a[c];d.currentTarget=b,d.target=a.srcElement||b,d.timeStamp=+new Date,d.preventDefault=function(){a.returnValue=!1},d.stopPropagation=function(){a.cancelBubble=!0}},d=function(a,b){var d,e,f=this;d=f.listeners||(f.listeners=[]),e=d.length,d[e]=[b,function(a){b.call(f,new c(a,f))}],f.attachEvent("on"+a,d[e][1])},e=function(a,b){var c,d,e=this;if(e.listeners)for(c=e.listeners,d=c.length;d--;)c[d][0]===b&&e.detachEvent("on"+a,c[d][1])},a.addEventListener=b.addEventListener=d,a.removeEventListener=b.removeEventListener=e,"Element"in a?(a.Element.prototype.addEventListener=d,a.Element.prototype.removeEventListener=e):(h=b.createElement,b.createElement=function(a){var b=h(a);return b.addEventListener=d,b.removeEventListener=e,b},f=b.getElementsByTagName("head")[0],g=b.createElement("style"),f.insertBefore(g,f.firstChild))}(a,b),a.getComputedStyle||(c.getComputedStyle=function(){function a(c,d,e,f){var g,h=d[e],i=parseFloat(h),j=h.split(/\d/)[0];return isNaN(i)&&/^thin|medium|thick$/.test(h)&&(i=b(h),j=""),f=null!=f?f:/%|em/.test(j)&&c.parentElement?a(c.parentElement,c.parentElement.currentStyle,"fontSize",null):16,g="fontSize"==e?f:/width/i.test(e)?c.clientWidth:c.clientHeight,"em"==j?i*f:"in"==j?96*i:"pt"==j?96*i/72:"%"==j?i/100*g:i}function b(a){var b,c;return f[a]||(b=document.createElement("div"),b.style.display="block",b.style.position="fixed",b.style.width=b.style.height="0",b.style.borderRight=a+" solid black",document.getElementsByTagName("body")[0].appendChild(b),c=b.getBoundingClientRect(),f[a]=c.right-c.left),f[a]}function c(a,b){var c="border"==b?"Width":"",d=b+"Top"+c,e=b+"Right"+c,f=b+"Bottom"+c,g=b+"Left"+c;a[b]=(a[d]==a[e]==a[f]==a[g]?[a[d]]:a[d]==a[f]&&a[g]==a[e]?[a[d],a[e]]:a[g]==a[e]?[a[d],a[e],a[f]]:[a[d],a[e],a[f],a[g]]).join(" ")}function d(b){var d,e,f,g;d=b.currentStyle,e=this,f=a(b,d,"fontSize",null);for(g in d)/width|height|margin.|padding.|border.+W/.test(g)?"auto"===d[g]?/^width|height/.test(g)?e[g]=("width"===g?b.clientWidth:b.clientHeight)+"px":/(?:padding)?Top|Bottom$/.test(g)&&(e[g]="0px"):e[g]=a(b,d,g,f)+"px":"styleFloat"===g?e.float=d[g]:e[g]=d[g];return c(e,"margin"),c(e,"padding"),c(e,"border"),e.fontSize=f+"px",e}function e(a){return new d(a)}var f={};return d.prototype={constructor:d,getPropertyPriority:function(){},getPropertyValue:function(a){return this[a]||""},item:function(){},removeProperty:function(){},setProperty:function(){},getPropertyCSSValue:function(){}},e}())),c}(),U=function(){return function(a,b){var c=a.map(b);return a.forEach(function(a,b){c[a]=c[b]}),c}}(T),V=function(a){var b,c;return b=["preserveWhitespace","sanitize","stripComments","delimiters","tripleDelimiters","interpolate"],c=a(b,function(a){return a})}(U),W=function(a,b,c,d,e){function f(a){var b=d(l);return b.parse=function(b,c){return g(b,c||a)},b}function g(b,d){if(!c)throw new Error(a.missingParser);return c(b,d||this.options)}function h(a,c){var d;if(!b){if(c&&c.noThrow)return;throw new Error("Cannot retrieve template #"+a+" as Ractive is not running in a browser.")}if(i(a)&&(a=a.substring(1)),!(d=document.getElementById(a))){if(c&&c.noThrow)return;throw new Error("Could not find template element with id #"+a)}if("SCRIPT"!==d.tagName.toUpperCase()){if(c&&c.noThrow)return;throw new Error("Template element with id #"+a+", must be a <script> element")}return d.innerHTML}function i(a){return"#"===a.charAt(0)}function j(a){return!("string"==typeof a)}function k(a){return a.defaults&&(a=a.defaults),e.reduce(function(b,c){return b[c]=a[c],b},{})}var l={parse:g,fromId:h,isHashedId:i,isParsed:j,getParseOptions:k,createHelper:f};return l}(Q,B,R,S,V),X=function(a,b){function c(a){var b,c=a._config.template;if(c&&c.fn)return b=d(a,c.fn),b!==c.result?(c.result=b,b=e(b,a)):void 0}function d(b,c){var d=a.createHelper(a.getParseOptions(b));return c.call(b,b.data,d)}function e(c,d){if("string"==typeof c)"#"===c[0]&&(c=a.fromId(c)),c=b(c,a.getParseOptions(d));else if(1!==c.v)throw new Error("Mismatched template version! Please ensure you are using the latest version of Ractive.js in your build process as well as in your app");return c}function f(a,b,c){if(b)for(var d in b)(c||!a.hasOwnProperty(d))&&(a[d]=b[d])}var g={name:"template",extend:function(a,b,c){var d;"template"in c&&(d=c.template,b.template="function"==typeof d?d:e(d,b))},init:function(a,b,c){var g,h;g="template"in c?c.template:a.prototype.template,"function"==typeof g&&(h=g,g=d(b,h),b._config.template={fn:h,result:g}),g=e(g,b),b.template=g.t,g.p&&f(b.partials,g.p)},reset:function(a){var b,d=c(a);return d?(b=e(d,a),a.template=b.t,f(a.partials,b.p,!0),!0):void 0}};return g}(W,R),Y=function(a){function b(a,b){this.name=a,this.useDefaults=b}function c(a,b){var d,e;return(d=b(a))?d:!a.isolated&&(e=a._parent)?c(e,b):void 0}return b.prototype={constructor:b,extend:function(a,b,c){this.configure(this.useDefaults?a.defaults:a,this.useDefaults?b:b.constructor,c)},init:function(a,b,c){this.configure(this.useDefaults?a.defaults:a,b,c)},configure:function(b,c,d){var e,f=this.name,g=d[f];e=a(b[f]);for(var h in g)e[h]=g[h];c[f]=e},reset:function(a){var b=a[this.name],c=!1;return Object.keys(b).forEach(function(a){var d=b[a];d._fn&&(d._fn.isOwner?b[a]=d._fn:delete b[a],c=!0)}),c},findOwner:function(a,b){return a[this.name].hasOwnProperty(b)?a:this.findConstructor(a.constructor,b)},findConstructor:function(a,b){return a?a[this.name].hasOwnProperty(b)?a:this.findConstructor(a._parent,b):void 0},find:function(a,b){var d=this;return c(a,function(a){return a[d.name][b]})},findInstance:function(a,b){var d=this;return c(a,function(a){return a[d.name][b]?a:void 0})}},b}(S,T),Z=function(a,b){var c=["adaptors","components","computed","decorators","easing","events","interpolators","partials","transitions"],d=a(c,function(a){return new b(a,"computed"===a)});return d}(U,Y),$=function(){},_=function(a){function b(b,c){var d;if(c in b){var e=b[c];d="function"==typeof e?e:function(){return e}}else d=a;return d}var c;return c=function(a,c,d){if(!/_super/.test(d))return d;var e=function(){var a,f=b(e._parent,c),g="_super"in this,h=this._super;return this._super=f,a=d.apply(this,arguments),g?this._super=h:delete this._super,a};return e._parent=a,e._method=d,e}}($),ab=function(a,b){function c(b,c,e){if(c in b){if(e in b)throw new Error(d(c,e,!0));a(d(c,e)),b[e]=b[c]}}function d(a,b,c){return"options."+a+" has been deprecated in favour of options."+b+"."+(c?" You cannot specify both options, please use options."+b+".":"")}function e(a){c(a,"eventDefinitions","events")}function f(a){b(a.adaptors)&&c(a,"adaptors","adapt")}return function(a){e(a),f(a)}}(L,g),bb=function(a,b,c,d,e,f,g,h){function i(a,b,c,d,e){k[b][a](c,d,e)}function j(a,b,d,e){h(e),i(a,"data",b,d,e),m.parseOptions.forEach(function(a){a in e&&(d[a]=e[a])});for(var f in e)if(f in c&&!(f in m.parseOptions)&&!(f in k)){var j=e[f];d[f]="function"==typeof j?g(b.prototype,f,j):j}m.registries.forEach(function(c){c[a](b,d,e)}),i(a,"template",b,d,e),i(a,"css",b,d,e)}var k,l,m;k={data:b,template:d,css:a},l=Object.keys(c).filter(function(a){return!f[a]&&!k[a]&&!e[a]}),m=[].concat(k.data,e,l,f,k.template,k.css);for(var n in k)m[n]=k[n];return m.keys=Object.keys(c).concat(f.map(function(a){return a.name})).concat(["css"]),m.parseOptions=e,m.registries=f,m.extend=function(a,b,c){j("extend",a,b,c)},m.init=function(a,b,c){j("init",a,b,c),b._config&&(b._config.options=c)},m.reset=function(a){return m.filter(function(b){return b.reset&&b.reset(a)}).map(function(a){return a.name})},m}(N,P,c,X,V,Z,_,ab),cb=function(a,b,c,d){function e(a){return function(){return a}}var f,g=function(a,f,g,h){if(a===f)return e(f);if(h){var i=d.registries.interpolators.find(g,h);if(i)return i(a,f)||e(f);b('Missing "'+h+'" interpolator. You may need to download a plugin from [TODO]')}return c.number(a,f)||c.array(a,f)||c.object(a,f)||e(f)};return a.interpolate=g,f=g}(e,L,j,bb),db=function(a,b,c){var d=function(a){var b;this.startTime=Date.now();for(b in a)a.hasOwnProperty(b)&&(this[b]=a[b]);this.interpolator=c(this.from,this.to,this.root,this.interpolator),this.running=!0,this.tick()};return d.prototype={tick:function(){var c,d,e,f,g,h;return h=this.keypath,this.running?(f=Date.now(),c=f-this.startTime,c>=this.duration?(null!==h&&(b.start(this.root),this.root.viewmodel.set(h,this.to),b.end()),this.step&&this.step(1,this.to),this.complete(this.to),g=this.root._animations.indexOf(this),-1===g&&a("Animation was not found"),this.root._animations.splice(g,1),this.running=!1,!1):(d=this.easing?this.easing(c/this.duration):c/this.duration,null!==h&&(e=this.interpolator(d),b.start(this.root),this.root.viewmodel.set(h,e),b.end()),this.step&&this.step(d,e),!0)):!1},stop:function(){var b;this.running=!1,b=this.root._animations.indexOf(this),-1===b&&a("Animation was not found"),this.root._animations.splice(b,1)}},d}(L,v,cb),eb=function(a,b,c,d,e){function f(b,f,g,h){var j,k,l,m;return f&&(f=c(f)),null!==f&&(m=b.viewmodel.get(f)),d.abort(f,b),a(m,g)?(h.complete&&h.complete(h.to),i):(h.easing&&(j="function"==typeof h.easing?h.easing:b.easing[h.easing],"function"!=typeof j&&(j=null)),k=void 0===h.duration?400:h.duration,l=new e({keypath:f,from:m,to:g,root:b,duration:k,easing:j,interpolator:h.interpolator,step:h.step,complete:h.complete}),d.add(l),b._animations.push(l),l)}var g,h=function(){},i={stop:h};return g=function(a,c,d){var e,g,i,j,k,l,m,n,o,p,q,r,s,t;if(e=new b(function(a){g=a}),"object"==typeof a){d=c||{},l=d.easing,m=d.duration,k=[],n=d.step,o=d.complete,(n||o)&&(q={},d.step=null,d.complete=null,p=function(a){return function(b,c){q[a]=c}});for(i in a)a.hasOwnProperty(i)&&((n||o)&&(r=p(i),d={easing:l,duration:m},n&&(d.step=r)),d.complete=o?r:h,k.push(f(this,i,a[i],d)));return t={easing:l,duration:m},n&&(t.step=function(a){n(a,q)}),o&&e.then(function(a){o(a,q)}),t.complete=g,s=f(this,null,null,t),k.push(s),e.stop=function(){for(var a;a=k.pop();)a.stop();s&&s.stop()},e}return d=d||{},d.complete&&e.then(d.complete),d.complete=g,j=f(this,a,c,d),e.stop=function(){j.stop()},e}}(r,o,G,K,db),fb=function(a){return function(){return this.detached?this.detached:(this.el&&a(this.el.__ractive_instances__,this),this.detached=this.fragment.detach(),this.detached)}}(n),gb=function(a){return this.el?this.fragment.find(a):null},hb=function(a,b,c){var d,e,f,g,h,i,j,k;if(a){for(e=c("div"),f=["matches","matchesSelector"],k=function(a){return function(b,c){return b[a](c)}},i=f.length;i--&&!d;)if(g=f[i],e[g])d=k(g);else for(j=b.length;j--;)if(h=b[i]+g.substr(0,1).toUpperCase()+g.substring(1),e[h]){d=k(h);break}d||(d=function(a,b){var c,d,f;for(d=a.parentNode,d||(e.innerHTML="",d=e,a=a.cloneNode(),e.appendChild(a)),c=d.querySelectorAll(b),f=c.length;f--;)if(c[f]===a)return!0;return!1})}else d=null;return d}(B,H,A),ib=function(a){return function(b,c){var d=this._isComponentQuery?!this.selector||b.name===this.selector:a(b.node,this.selector);return d?(this.push(b.node||b.instance),c||this._makeDirty(),!0):void 0}}(hb),jb=function(){var a,b,c;a=this._root[this._isComponentQuery?"liveComponentQueries":"liveQueries"],b=this.selector,c=a.indexOf(b),-1!==c&&(a.splice(c,1),a[b]=null)},kb=function(){function a(a){var b;return(b=a.parentFragment)?b.owner:a.component&&(b=a.component.parentFragment)?b.owner:void 0}function b(b){var c,d;for(c=[b],d=a(b);d;)c.push(d),d=a(d);return c}var c;return c=function(a,c){var d,e,f,g,h,i,j,k,l,m;for(d=b(a.component||a._ractive.proxy),e=b(c.component||c._ractive.proxy),f=d[d.length-1],g=e[e.length-1];f&&f===g;)d.pop(),e.pop(),h=f,f=d[d.length-1],g=e[e.length-1];if(f=f.component||f,g=g.component||g,l=f.parentFragment,m=g.parentFragment,l===m)return i=l.items.indexOf(f),j=m.items.indexOf(g),i-j||d.length-e.length; if(k=h.fragments)return i=k.indexOf(l),j=k.indexOf(m),i-j||d.length-e.length;throw new Error("An unexpected condition was met while comparing the position of two components. Please file an issue at https://github.com/RactiveJS/Ractive/issues - thanks!")}}(),lb=function(a){return function(b,c){var d;return b.compareDocumentPosition?(d=b.compareDocumentPosition(c),2&d?1:-1):a(b,c)}}(kb),mb=function(a,b){return function(){this.sort(this._isComponentQuery?b:a),this._dirty=!1}}(lb,kb),nb=function(a){return function(){var b=this;this._dirty||(this._dirty=!0,a.scheduleTask(function(){b._sort()}))}}(v),ob=function(a){var b=this.indexOf(this._isComponentQuery?a.instance:a);-1!==b&&this.splice(b,1)},pb=function(a,b,c,d,e,f){return function(g,h,i,j){var k=[];return a(k,{selector:{value:h},live:{value:i},_isComponentQuery:{value:j},_test:{value:b}}),i?(a(k,{cancel:{value:c},_root:{value:g},_sort:{value:d},_makeDirty:{value:e},_remove:{value:f},_dirty:{value:!1,writable:!0}}),k):k}}(D,ib,jb,mb,nb,ob),qb=function(a){return function(b,c){var d,e;return this.el?(c=c||{},d=this._liveQueries,(e=d[b])?c&&c.live?e:e.slice():(e=a(this,b,!!c.live,!1),e.live&&(d.push(b),d["_"+b]=e),this.fragment.findAll(b,e),e)):[]}}(pb),rb=function(a){return function(b,c){var d,e;return c=c||{},d=this._liveComponentQueries,(e=d[b])?c&&c.live?e:e.slice():(e=a(this,b,!!c.live,!0),e.live&&(d.push(b),d["_"+b]=e),this.fragment.findAllComponents(b,e),e)}}(pb),sb=function(a){return this.fragment.findComponent(a)},tb=function(a){return function(b){var c={args:Array.prototype.slice.call(arguments,1)};a(this,b,c)}}(m),ub=function(a){var b={capture:!0};return function(c){return c=a(c),this.viewmodel.get(c,b)}}(G),vb=function(a){var b;if(a&&"boolean"!=typeof a)return"undefined"!=typeof window&&document&&a?a.nodeType?a:"string"==typeof a&&(b=document.getElementById(a),!b&&document.querySelector&&(b=document.querySelector(a)),b&&b.nodeType)?b:a[0]&&a[0].nodeType?a[0]:null:null},wb=function(a){return function(b,c){if(!this.rendered)throw new Error("The API has changed - you must call `ractive.render(target[, anchor])` to render your Ractive instance. Once rendered you can use `ractive.insert()`.");if(b=a(b),c=a(c)||null,!b)throw new Error("You must specify a valid target to insert into");b.insertBefore(this.detach(),c),this.el=b,(b.__ractive_instances__||(b.__ractive_instances__=[])).push(this),this.detached=null}}(vb),xb=function(a,b,c){return function(d,e,f){var g,h;return d=c(d),g=this.viewmodel.get(d),b(g)&&b(e)?(h=a.start(this,!0),this.viewmodel.merge(d,g,e,f),a.end(),f&&f.complete&&h.then(f.complete),h):this.set(d,e,f&&f.complete)}}(v,g,G),yb=function(a,b){var c=function(a,b,c,d){this.root=a,this.keypath=b,this.callback=c,this.defer=d.defer,this.priority=0,this.context=d&&d.context?d.context:a};return c.prototype={init:function(a){this.value=this.root.viewmodel.get(this.keypath),a!==!1?this.update():this.oldValue=this.value},setValue:function(c){var d=this;b(c,this.value)||(this.value=c,this.defer&&this.ready?a.scheduleTask(function(){return d.update()}):this.update())},update:function(){this.updating||(this.updating=!0,this.callback.call(this.context,this.value,this.oldValue,this.keypath),this.oldValue=this.value,this.updating=!1)}},c}(v,r),zb=function(a){return function(b,c){function d(c,d){var e,f,g;e=b.viewmodel.wrapped[d]?b.viewmodel.wrapped[d].get():b.get(d);for(f in e)!e.hasOwnProperty(f)||"_ractive"===f&&a(e)||(g=d?d+"."+f:f,c.push(g));return c}function e(a){return function(b){return b?b+"."+a:a}}var f,g,h;for(f=c.split("."),h=[""];g=f.shift();)"*"===g?h=h.reduce(d,[]):""===h[0]?h[0]=g:h=h.map(e(g));return h}}(g),Ab=function(a){return function(b,c){var d,e;return d=a(b,c),e={},d.forEach(function(a){e[a]=b.get(a)}),e}}(zb),Bb=function(a,b,c){var d,e=/\*/,f=Array.prototype.slice;return d=function(a,b,c,d){this.root=a,this.callback=c,this.defer=d.defer,this.keypath=b,this.regex=new RegExp("^"+b.replace(/\./g,"\\.").replace(/\*/g,"([^\\.]+)")+"$"),this.values={},this.defer&&(this.proxies=[]),this.priority="pattern",this.context=d&&d.context?d.context:a},d.prototype={init:function(a){var b,d;if(b=c(this.root,this.keypath),a!==!1)for(d in b)b.hasOwnProperty(d)&&this.update(d);else this.values=b},update:function(b){var d,f=this;if(e.test(b)){d=c(this.root,b);for(b in d)d.hasOwnProperty(b)&&this.update(b)}else if(!this.root.viewmodel.implicitChanges[b])return this.defer&&this.ready?void a.scheduleTask(function(){return f.getProxy(b).update()}):void this.reallyUpdate(b)},reallyUpdate:function(a){var c,d,e;return c=this.root.viewmodel.get(a),this.updating?void(this.values[a]=c):(this.updating=!0,b(c,this.values[a])&&this.ready||(d=f.call(this.regex.exec(a),1),e=[c,this.values[a],a].concat(d),this.callback.apply(this.context,e),this.values[a]=c),void(this.updating=!1))},getProxy:function(a){var b=this;return this.proxies[a]||(this.proxies[a]={update:function(){b.reallyUpdate(a)}}),this.proxies[a]}},d}(v,r,Ab),Cb=function(a,b,c){var d=/\*/,e={};return function(f,g,h,i){var j,k,l;return g=a(g),i=i||e,d.test(g)?(j=new c(f,g,h,i),f.viewmodel.patternObservers.push(j),k=!0):j=new b(f,g,h,i),f.viewmodel.register(g,j,k?"patternObservers":"observers"),j.init(i.init),j.ready=!0,{cancel:function(){var a;l||(k?(a=f.viewmodel.patternObservers.indexOf(j),f.viewmodel.patternObservers.splice(a,1),f.viewmodel.unregister(g,j,"patternObservers")):f.viewmodel.unregister(g,j,"observers"),l=!0)}}}}(G,yb,Bb),Db=function(a,b){return function(c,d,e){var f,g,h,i;if(a(c)){e=d,g=c,f=[];for(c in g)g.hasOwnProperty(c)&&(d=g[c],f.push(this.observe(c,d,e)));return{cancel:function(){for(;f.length;)f.pop().cancel()}}}if("function"==typeof c)return e=d,d=c,c="",b(this,c,d,e);if(h=c.split(" "),1===h.length)return b(this,c,d,e);for(f=[],i=h.length;i--;)c=h[i],c&&f.push(b(this,c,d,e));return{cancel:function(){for(;f.length;)f.pop().cancel()}}}}(h,Cb),Eb=function(a){return a.trim()},Fb=function(a){return""!==a},Gb=function(a,b){return function(c,d){var e,f=this;if(c)e=c.split(" ").map(a).filter(b),e.forEach(function(a){var b,c;(b=f._subs[a])&&(d?(c=b.indexOf(d),-1!==c&&b.splice(c,1)):f._subs[a]=[])});else for(c in this._subs)delete this._subs[c];return this}}(Eb,Fb),Hb=function(a,b){return function(c,d){var e,f,g,h=this,i=this;if("object"==typeof c){e=[];for(f in c)c.hasOwnProperty(f)&&e.push(this.on(f,c[f]));return{cancel:function(){for(var a;a=e.pop();)a.cancel()}}}return g=c.split(" ").map(a).filter(b),g.forEach(function(a){(h._subs[a]||(h._subs[a]=[])).push(d)}),{cancel:function(){i.off(c,d)}}}}(Eb,Fb),Ib=function(a,b,c){switch(b){case"splice":return c;case"sort":case"reverse":return null;case"pop":return a.length?[-1]:null;case"push":return[a.length,0].concat(c);case"shift":return[0,1];case"unshift":return[0,0].concat(c)}},Jb=function(a,b){var c,d,e,f,g,h;return b?(c=+(b[0]<0?a.length+b[0]:b[0]),0>c?c=0:c>a.length&&(c=a.length),f=Math.max(0,b.length-2),g=void 0!==b[1]?b[1]:a.length-c,g=Math.min(g,a.length-c),h=f-g,e=a.length+h,d=h?Math.max(a.length,e):c+f,{rangeStart:c,rangeEnd:d,balance:h,added:f,removed:g}):null},Kb=function(a,b,c,d){var e=Array.prototype;return function(f){return function(g){var h,i,j,k,l,m=Array.prototype.slice,n=m.call(arguments,1);if(h=this.get(g),!a(h))throw new Error("Called ractive."+f+"('"+g+"'), but '"+g+"' does not refer to an array");return i=c(h,f,n),j=d(h,i),l=j?e.splice.apply(h,i):e[f].apply(h,n),k=b.start(this,!0),j?this.viewmodel.splice(g,j):this.viewmodel.mark(g),b.end(),("splice"===f||"pop"===f||"shift"===f)&&(k=k.then(function(){return l})),k}}}(g,v,Ib,Jb),Lb=function(a){return a("pop")}(Kb),Mb=function(a){return a("push")}(Kb),Nb=function(a,b,c){var d,e,f,g,h,i,j,k="/* Ractive.js component styles */\n",l={},m=[];return b?(a.push(function(){f=a.runloop}),g=document.createElement("style"),g.type="text/css",h=document.getElementsByTagName("head")[0],j=!1,i=g.styleSheet,e=function(){var a;m.length?(a=k+m.join(" "),i?i.cssText=a:g.innerHTML=a,j||(h.appendChild(g),j=!0)):j&&(h.removeChild(g),j=!1)},d={add:function(a){a.css&&(l[a._guid]||(l[a._guid]=0,m.push(a.css),f.scheduleTask(e)),l[a._guid]+=1)},remove:function(a){a.css&&(l[a._guid]-=1,l[a._guid]||(c(m,a.css),f.scheduleTask(e)))}}):d=null,d}(e,B,n),Ob=function(a,b,c){function d(a){var b=e(a);for(a.init&&a.init(a._config.options);b.length;)d(b.shift());g[a._guid]=null}function e(a){return g[a._guid]||(g[a._guid]=[])}var f,g={},h={};return f=function(f,g){var i,j,k,l=this;if(h[this._guid]=!0,k=this.transitionsEnabled,this.noIntro&&(this.transitionsEnabled=!1),i=a.start(this,!0),this.rendered)throw new Error("You cannot call ractive.render() on an already rendered instance! Call ractive.unrender() first");return f=c(f)||this.el,g=c(g)||this.anchor,this.el=f,this.anchor=g,this.constructor.css&&b.add(this.constructor),f&&((j=f.__ractive_instances__)?j.push(this):f.__ractive_instances__=[this],g?f.insertBefore(this.fragment.render(),g):f.appendChild(this.fragment.render())),this._hasInited||(this._hasInited=!0,this._parent&&h[this._parent._guid]?e(this._parent).push(this):d(this)),h[this._guid]=!1,a.end(),this.rendered=!0,this.transitionsEnabled=k,this.complete&&i.then(function(){return l.complete()}),i}}(v,Nb,vb),Pb=function(){this.dirtyValue=this.dirtyArgs=!0,this.inited&&"function"==typeof this.owner.bubble&&this.owner.bubble()},Qb=function(){var a;return 1===this.items.length?this.items[0].detach():(a=document.createDocumentFragment(),this.items.forEach(function(b){a.appendChild(b.detach())}),a)},Rb=function(a){var b,c,d,e;if(this.items){for(c=this.items.length,b=0;c>b;b+=1)if(d=this.items[b],d.find&&(e=d.find(a)))return e;return null}},Sb=function(a,b){var c,d,e;if(this.items)for(d=this.items.length,c=0;d>c;c+=1)e=this.items[c],e.findAll&&e.findAll(a,b);return b},Tb=function(a,b){var c,d,e;if(this.items)for(d=this.items.length,c=0;d>c;c+=1)e=this.items[c],e.findAllComponents&&e.findAllComponents(a,b);return b},Ub=function(a){var b,c,d,e;if(this.items){for(b=this.items.length,c=0;b>c;c+=1)if(d=this.items[c],d.findComponent&&(e=d.findComponent(a)))return e;return null}},Vb=function(a){var b,c=a.index;return b=this.items[c+1]?this.items[c+1].firstNode():this.owner===this.root?this.owner.component?this.owner.component.findNextNode():null:this.owner.findNextNode(this)},Wb=function(){return this.items&&this.items[0]?this.items[0].firstNode():null},Xb=function(){var a=this;do if(a.pElement)return a.pElement.node;while(a=a.parent);return this.root.detached||this.root.el},Yb={TEXT:1,INTERPOLATOR:2,TRIPLE:3,SECTION:4,INVERTED:5,CLOSING:6,ELEMENT:7,PARTIAL:8,COMMENT:9,DELIMCHANGE:10,MUSTACHE:11,TAG:12,ATTRIBUTE:13,CLOSING_TAG:14,COMPONENT:15,NUMBER_LITERAL:20,STRING_LITERAL:21,ARRAY_LITERAL:22,OBJECT_LITERAL:23,BOOLEAN_LITERAL:24,GLOBAL:26,KEY_VALUE_PAIR:27,REFERENCE:30,REFINEMENT:31,MEMBER:32,PREFIX_OPERATOR:33,BRACKETED:34,CONDITIONAL:35,INFIX_OPERATOR:36,INVOCATION:40,SECTION_IF:50,SECTION_UNLESS:51,SECTION_EACH:52,SECTION_WITH:53},Zb={expectedExpression:"Expected a JavaScript expression",expectedParen:"Expected closing paren"},$b=function(a){var b=/^(?:[+-]?)(?:(?:(?:0|[1-9]\d*)?\.\d+)|(?:(?:0|[1-9]\d*)\.)|(?:0|[1-9]\d*))(?:[eE][+-]?\d+)?/;return function(c){var d;return(d=c.matchPattern(b))?{t:a.NUMBER_LITERAL,v:d}:null}}(Yb),_b=function(a){return function(b){var c=b.remaining();return"true"===c.substr(0,4)?(b.pos+=4,{t:a.BOOLEAN_LITERAL,v:"true"}):"false"===c.substr(0,5)?(b.pos+=5,{t:a.BOOLEAN_LITERAL,v:"false"}):null}}(Yb),ac=function(){var a,b,c;return a=/^(?=.)[^"'\\]+?(?:(?!.)|(?=["'\\]))/,b=/^\\(?:['"\\bfnrt]|0(?![0-9])|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|(?=.)[^ux0-9])/,c=/^\\(?:\r\n|[\u000A\u000D\u2028\u2029])/,function(d){return function(e){var f,g,h,i;for(f=e.pos,g='"',h=!1;!h;)i=e.matchPattern(a)||e.matchPattern(b)||e.matchString(d),i?g+='"'===i?'\\"':"\\'"===i?"'":i:(i=e.matchPattern(c),i?g+="\\u"+("000"+i.charCodeAt(1).toString(16)).slice(-4):h=!0);return g+='"',JSON.parse(g)}}}(),bc=function(a){return a('"')}(ac),cc=function(a){return a("'")}(ac),dc=function(a,b,c){return function(d){var e,f;return e=d.pos,d.matchString('"')?(f=c(d),d.matchString('"')?{t:a.STRING_LITERAL,v:f}:(d.pos=e,null)):d.matchString("'")?(f=b(d),d.matchString("'")?{t:a.STRING_LITERAL,v:f}:(d.pos=e,null)):null}}(Yb,bc,cc),ec={name:/^[a-zA-Z_$][a-zA-Z_$0-9]*/},fc=function(a,b,c){var d=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;return function(e){var f;return(f=a(e))?d.test(f.v)?f.v:'"'+f.v.replace(/"/g,'\\"')+'"':(f=b(e))?f.v:(f=e.matchPattern(c.name))?f:void 0}}(dc,$b,ec),gc=function(a,b){return function(c){var d,e,f;return d=c.pos,c.allowWhitespace(),e=b(c),null===e?(c.pos=d,null):(c.allowWhitespace(),c.matchString(":")?(c.allowWhitespace(),f=c.readExpression(),null===f?(c.pos=d,null):{t:a.KEY_VALUE_PAIR,k:e,v:f}):(c.pos=d,null))}}(Yb,fc),hc=function(a){return function b(c){var d,e,f,g;return d=c.pos,f=a(c),null===f?null:(e=[f],c.matchString(",")?(g=b(c),g?e.concat(g):(c.pos=d,null)):e)}}(gc),ic=function(a,b){return function(c){var d,e;return d=c.pos,c.allowWhitespace(),c.matchString("{")?(e=b(c),c.allowWhitespace(),c.matchString("}")?{t:a.OBJECT_LITERAL,m:e}:(c.pos=d,null)):(c.pos=d,null)}}(Yb,hc),jc=function(a){return function b(c){function d(a){f.push(a)}var e,f,g,h;return e=c.pos,c.allowWhitespace(),g=c.readExpression(),null===g?null:(f=[g],c.allowWhitespace(),c.matchString(",")&&(h=b(c),null===h&&c.error(a.expectedExpression),h.forEach(d)),f)}}(Zb),kc=function(a,b){return function(c){var d,e;return d=c.pos,c.allowWhitespace(),c.matchString("[")?(e=b(c),c.matchString("]")?{t:a.ARRAY_LITERAL,m:e}:(c.pos=d,null)):(c.pos=d,null)}}(Yb,jc),lc=function(a,b,c,d,e){return function(f){var g=a(f)||b(f)||c(f)||d(f)||e(f);return g}}($b,_b,dc,ic,kc),mc=function(a,b){var c,d,e,f,g;return c=/^\.[a-zA-Z_$0-9]+/,e=function(a){var b=a.matchPattern(d);return b?"."+b:null},d=/^\[(0|[1-9][0-9]*)\]/,f=/^(?:Array|Date|RegExp|decodeURIComponent|decodeURI|encodeURIComponent|encodeURI|isFinite|isNaN|parseFloat|parseInt|JSON|Math|NaN|undefined|null)$/,g=/^(?:break|case|catch|continue|debugger|default|delete|do|else|finally|for|function|if|in|instanceof|new|return|switch|throw|try|typeof|var|void|while|with)$/,function(d){var h,i,j,k,l,m,n;if(h=d.pos,d.matchString("~/"))i="~/";else for(i="";d.matchString("../");)i+="../";if(i||(k=d.matchString(".")||""),j=d.matchPattern(/^@(?:index|key)/)||d.matchPattern(b.name)||"",g.test(j))return d.pos=h,null;if(!i&&!k&&f.test(j))return{t:a.GLOBAL,v:j};if(l=(i||k)+j,!l)return null;for(;m=d.matchPattern(c)||e(d);)l+=m;return d.matchString("(")&&(n=l.lastIndexOf("."),-1!==n?(l=l.substr(0,n),d.pos=h+l.length):d.pos-=1),{t:a.REFERENCE,n:l.replace(/^this\./,"./").replace(/^this$/,".")}}}(Yb,ec),nc=function(a,b){return function(c){var d,e;return d=c.pos,c.matchString("(")?(c.allowWhitespace(),e=c.readExpression(),e||c.error(b.expectedExpression),c.allowWhitespace(),c.matchString(")")||c.error(b.expectedParen),{t:a.BRACKETED,x:e}):null}}(Yb,Zb),oc=function(a,b,c){return function(d){return a(d)||b(d)||c(d)}}(lc,mc,nc),pc=function(a,b,c){return function(d){var e,f,g;if(e=d.pos,d.allowWhitespace(),d.matchString(".")){if(d.allowWhitespace(),f=d.matchPattern(c.name))return{t:a.REFINEMENT,n:f};d.error("Expected a property name")}return d.matchString("[")?(d.allowWhitespace(),g=d.readExpression(),g||d.error(b.expectedExpression),d.allowWhitespace(),d.matchString("]")||d.error("Expected ']'"),{t:a.REFINEMENT,x:g}):null}}(Yb,Zb,ec),qc=function(a,b,c,d,e){return function(f){var g,h,i,j;if(h=b(f),!h)return null;for(;h;)if(g=f.pos,i=d(f))h={t:a.MEMBER,x:h,r:i};else{if(!f.matchString("("))break;f.allowWhitespace(),j=c(f),f.allowWhitespace(),f.matchString(")")||f.error(e.expectedParen),h={t:a.INVOCATION,x:h},j&&(h.o=j)}return h}}(Yb,oc,jc,pc,Zb),rc=function(a,b,c){var d,e;return e=function(c,d){return function(e){var f;return(f=d(e))?f:e.matchString(c)?(e.allowWhitespace(),f=e.readExpression(),f||e.error(b.expectedExpression),{s:c,o:f,t:a.PREFIX_OPERATOR}):null}},function(){var a,b,f,g,h;for(g="! ~ + - typeof".split(" "),h=c,a=0,b=g.length;b>a;a+=1)f=e(g[a],h),h=f;d=h}(),d}(Yb,Zb,qc),sc=function(a,b){var c,d;return d=function(b,c){return function(d){var e,f,g;if(f=c(d),!f)return null;for(;;){if(e=d.pos,d.allowWhitespace(),!d.matchString(b))return d.pos=e,f;if("in"===b&&/[a-zA-Z_$0-9]/.test(d.remaining().charAt(0)))return d.pos=e,f;if(d.allowWhitespace(),g=c(d),!g)return d.pos=e,f;f={t:a.INFIX_OPERATOR,s:b,o:[f,g]}}}},function(){var a,e,f,g,h;for(g="* / % + - << >> >>> < <= > >= in instanceof == != === !== & ^ | && ||".split(" "),h=b,a=0,e=g.length;e>a;a+=1)f=d(g[a],h),h=f;c=h}(),c}(Yb,rc),tc=function(a,b,c){return function(d){var e,f,g,h;return(f=b(d))?(e=d.pos,d.allowWhitespace(),d.matchString("?")?(d.allowWhitespace(),g=d.readExpression(),g||d.error(c.expectedExpression),d.allowWhitespace(),d.matchString(":")||d.error('Expected ":"'),d.allowWhitespace(),h=d.readExpression(),h||d.error(c.expectedExpression),{t:a.CONDITIONAL,o:[f,g,h]}):(d.pos=e,f)):null}}(Yb,sc,Zb),uc=function(a,b){function c(a){return JSON.stringify(String(a))}function d(c,e){var f,g;if(c.t===a.REFERENCE&&-1===e.indexOf(c.n)&&e.unshift(c.n),g=c.o||c.m)if(b(g))d(g,e);else for(f=g.length;f--;)d(g[f],e);c.x&&d(c.x,e),c.r&&d(c.r,e),c.v&&d(c.v,e)}function e(b,d,f){var g=function(a){return e(b,a,f)};switch(d.t){case a.BOOLEAN_LITERAL:case a.GLOBAL:case a.NUMBER_LITERAL:return d.v;case a.STRING_LITERAL:return c(d.v);case a.ARRAY_LITERAL:return"["+(d.m?d.m.map(g).join(","):"")+"]";case a.OBJECT_LITERAL:return"{"+(d.m?d.m.map(g).join(","):"")+"}";case a.KEY_VALUE_PAIR:return d.k+":"+e(b,d.v,f);case a.PREFIX_OPERATOR:return("typeof"===d.s?"typeof ":d.s)+e(b,d.o,f);case a.INFIX_OPERATOR:return e(b,d.o[0],f)+("in"===d.s.substr(0,2)?" "+d.s+" ":d.s)+e(b,d.o[1],f);case a.INVOCATION:return e(b,d.x,f)+"("+(d.o?d.o.map(g).join(","):"")+")";case a.BRACKETED:return"("+e(b,d.x,f)+")";case a.MEMBER:return e(b,d.x,f)+e(b,d.r,f);case a.REFINEMENT:return d.n?"."+d.n:"["+e(b,d.x,f)+"]";case a.CONDITIONAL:return e(b,d.o[0],f)+"?"+e(b,d.o[1],f)+":"+e(b,d.o[2],f);case a.REFERENCE:return"_"+f.indexOf(d.n);default:b.error("Expected legal JavaScript")}}var f;return f=function(a){var b,c=[];return d(a,c),b={r:c,s:e(this,a,c)}}}(Yb,h),vc=function(a,b,c,d,e){var f,g,h=/^\s+/;return g=function(a){this.name="ParseError",this.message=a;try{throw new Error(a)}catch(b){this.stack=b.stack}},g.prototype=Error.prototype,f=function(a,b){var c,d;for(this.str=a,this.options=b||{},this.pos=0,this.init&&this.init(a,b),c=[];this.pos<this.str.length&&(d=this.read());)c.push(d);this.leftover=this.remaining(),this.result=this.postProcess?this.postProcess(c,b):c},f.prototype={read:function(a){var b,c,d,e;for(a||(a=this.converters),b=this.pos,d=a.length,c=0;d>c;c+=1)if(this.pos=b,e=a[c](this))return e;return null},readExpression:function(){return d(this)},flattenExpression:e,getLinePos:function(){var a,b,c,d,e,f,g;a=this.str.split("\n"),e=0,d=0;do c=d,e++,b=a[e-1],d+=b.length+1;while(d<=this.pos);return f=this.pos-c+1,g=b+"\n"+new Array(f).join(" ")+"^----",{line:e,ch:f,text:b,annotation:g,toJSON:function(){return[e,f]},toString:function(){return"line "+e+(" character "+f)}}},error:function(a){var b,c;throw b=this.getLinePos(),c=new g(a+" at "+b+":\n"+b.annotation),c.line=b.line,c.character=b.ch,c.shortMessage=a,c},matchString:function(a){return this.str.substr(this.pos,a.length)===a?(this.pos+=a.length,a):void 0},matchPattern:function(a){var b;return(b=a.exec(this.remaining()))?(this.pos+=b[0].length,b[1]||b[0]):void 0},allowWhitespace:function(){this.matchPattern(h)},remaining:function(){return this.str.substring(this.pos)},nextChar:function(){return this.str.charAt(this.pos)}},f.extend=function(a){var d,e,g=this;d=function(a,b){f.call(this,a,b)},d.prototype=b(g.prototype);for(e in a)c.call(a,e)&&(d.prototype[e]=a[e]);return d.extend=f.extend,d},a.Parser=f,f}(e,S,f,tc,uc),wc=function(a,b,c){function d(a){var b,d,e;return a.allowWhitespace(),(b=c(a))?(e={key:b},a.allowWhitespace(),a.matchString(":")?(a.allowWhitespace(),(d=a.read())?(e.value=d.v,e):null):null):null}var e,f,g,h,i,j,k;return f={"true":!0,"false":!1,undefined:void 0,"null":null},g=new RegExp("^(?:"+Object.keys(f).join("|")+")"),h=/^(?:[+-]?)(?:(?:(?:0|[1-9]\d*)?\.\d+)|(?:(?:0|[1-9]\d*)\.)|(?:0|[1-9]\d*))(?:[eE][+-]?\d+)?/,i=/\$\{([^\}]+)\}/g,j=/^\$\{([^\}]+)\}/,k=/^\s*$/,e=a.extend({init:function(a,b){this.values=b.values,this.allowWhitespace()},postProcess:function(a){return 1===a.length&&k.test(this.leftover)?{value:a[0].v}:null},converters:[function(a){var b;return a.values?(b=a.matchPattern(j),b&&a.values.hasOwnProperty(b)?{v:a.values[b]}:void 0):null},function(a){var b;return(b=a.matchPattern(g))?{v:f[b]}:void 0},function(a){var b;return(b=a.matchPattern(h))?{v:+b}:void 0},function(a){var c,d=b(a);return d&&(c=a.values)?{v:d.v.replace(i,function(a,b){return b in c?c[b]:b})}:d},function(a){var b,c;if(!a.matchString("{"))return null;if(b={},a.allowWhitespace(),a.matchString("}"))return{v:b};for(;c=d(a);){if(b[c.key]=c.value,a.allowWhitespace(),a.matchString("}"))return{v:b};if(!a.matchString(","))return null}return null},function(a){var b,c;if(!a.matchString("["))return null;if(b=[],a.allowWhitespace(),a.matchString("]"))return{v:b};for(;c=a.read();){if(b.push(c.v),a.allowWhitespace(),a.matchString("]"))return{v:b};if(!a.matchString(","))return null;a.allowWhitespace()}return null}]}),function(a,b){var c=new e(a,{values:b});return c.result}}(vc,dc,fc),xc=function(a){function b(a,c,d,e){return e=e||0,a.map(function(a){var f,g,h;return a.text?a.text:a.fragments?a.fragments.map(function(a){return b(a.items,c,d,e)}).join(""):(f=d+"-"+e++,h=(g=a.root.viewmodel.wrapped[a.keypath])?g.value:a.getValue(),c[f]=h,"${"+f+"}")}).join("")}var c,d={};return c=function(){var c=arguments[0];void 0===c&&(c=d);var e,f,g,h,i,j,k;return e=c.args,i=e?"argsList":"value",j=e?"dirtyArgs":"dirtyValue",this[j]&&(g=b(this.items,f={},this.root._guid),h=a(e?"["+g+"]":g,f),k=h?h.value:e?[this.toString()]:this.toString(),this[i]=k,this[j]=!1),this[i]}}(wc),yc=function(){var a=/</g,b=/>/g;return function(c){return c.replace(a,"&lt;").replace(b,"&gt;")}}(),zc=function(a){return a&&a.parentNode&&a.parentNode.removeChild(a),a},Ac=function(a){return function(){return a(this.node)}}(zc),Bc=function(a,b,c){var d=function(b){this.type=a.TEXT,this.text=b.template};return d.prototype={detach:c,firstNode:function(){return this.node},render:function(){return this.node||(this.node=document.createTextNode(this.text)),this.node},toString:function(a){return a?b(this.text):this.text},unrender:function(a){return a?this.detach():void 0}},d}(Yb,yc,Ac),Cc=function(a){return function(){this.keypath?this.root.viewmodel.unregister(this.keypath,this):a.removeUnresolved(this),this.resolver&&this.resolver.unbind()}}(v),Dc=function(){return this.value},Ec=function(a){var b=function(b,c,d,e){this.root=b,this.ref=c,this.parentFragment=d,this.resolve=e,a.addUnresolved(this)};return b.prototype={unbind:function(){a.removeUnresolved(this)}},b}(v),Fc=function(a,b){return a&&b&&a.substr(0,b.length+1)===b+"."},Gc=function(a){return function(b,c,d){return b===c?void 0!==d?d:null:a(b,c)?null===d?d:b.replace(c+".",d+"."):void 0}}(Fc),Hc=function(a,b){function c(a){var c=b[a.message]||a.message||"";return d(c,a.args)}function d(a,b){return a.replace(/{([^{}]*)}/g,function(a,c){return b[c]})}var e={warn:function(a,b){(a.debug||b)&&this.logger(c(a),a.allowDuplicates)},error:function(a){this.errorOnly(a),a.debug||this.warn(a,!0)},errorOnly:function(a){a.debug&&this.critical(a)},critical:function(a){var b=a.err||new Error(c(a));this.thrower(b)},logger:a,thrower:function(a){throw a}};return e}(L,Q),Ic=function(){var a={};return function(b,c){var d,e;if(a[b])return a[b];for(e=[];c--;)e[c]="_"+c;return d=new Function(e.join(","),"return("+b+")"),a[b]=d,d}}(),Jc=function(a,b,c){var d,e;for(d=b.length;d--;)e=b[d],-1===c.indexOf(e)&&a.viewmodel.unregister(e,a,"computed");for(d=c.length;d--;)e=c[d],-1===b.indexOf(e)&&a.viewmodel.register(e,a,"computed");a.dependencies=c.slice()},Kc=function(a,b,c,d,e){function f(a,b){var d,e,f;if(a._noWrap)return a;if(e="__ractive_"+b._guid,d=a[e])return d;if(/this/.test(a.toString())){c(a,e,{value:j.call(a,b)});for(f in a)a.hasOwnProperty(f)&&(a[e][f]=a[f]);return a[e]}return c(a,"__ractive_nowrap",{value:a}),a.__ractive_nowrap}function g(a){return"function"==typeof a?a():a}var h,i,j=Function.prototype.bind;return i=function(a,b,c,e,g,h){var i=this,j=a.viewmodel;i.root=a,i.viewmodel=j,i.uniqueString=c,i.keypath=b,i.priority=h,i.fn=d(e,g.length),i.explicitDependencies=[],i.dependencies=[],i.argumentGetters=g.map(function(b){var c,d;return b?b.indexRef?d=b.value:(c=b.keypath,i.explicitDependencies.push(c),j.register(c,i,"computed"),function(){var b=j.get(c);return"function"==typeof b?f(b,a):b}):void 0})},i.prototype={wake:function(){this.awake=!0},sleep:function(){this.awake=!1},getValue:function(){var b,c,d;if(b=this.argumentGetters.map(g),!this.updating){this.updating=!0,this.viewmodel.capture();try{c=this.fn.apply(null,b)}catch(f){this.root.debug&&a.warn({debug:this.root.debug,message:"evaluationError",args:{uniqueString:this.uniqueString,err:f.message||f}}),c=void 0}return d=this.viewmodel.release(),e(this,this.dependencies,d),this.updating=!1,c}},update:function(){var a=this.getValue();return b(a,this.value)||(this.value=a,this.root.viewmodel.mark(this.keypath)),this},teardown:function(){var a=this;this.explicitDependencies.concat(this.dependencies).forEach(function(b){return a.viewmodel.unregister(b,a,"computed")}),this.root.viewmodel.evaluators[this.keypath]=null}},h=i}(Hc,r,C,Ic,Jc,T),Lc=function(a,b,c,d,e){function f(a,b){return a.replace(/_([0-9]+)/g,function(a,c){var d=b[c];return d?d.indexRef?d.value:d.keypath:"undefined"})}function g(a){return"${"+a.replace(/[\.\[\]]/g,"-")+"}"}var h,i=function(d,e,f,g){var h,i,j,k=this;return h=d.root,this.root=h,this.callback=g,this.owner=d,this.str=f.s,this.args=j=[],this.unresolved=[],this.pending=0,i=e.indexRefs,f.r&&f.r.length?(f.r.forEach(function(d,f){var g,l,m;return i&&void 0!==(g=i[d])?void(j[f]={indexRef:d,value:g}):(l=b(h,d,e))?void(j[f]={keypath:l}):(j[f]=null,k.pending+=1,m=new c(h,d,e,function(b){k.resolve(f,b),a(k.unresolved,m)}),void k.unresolved.push(m))}),this.ready=!0,void this.bubble()):(this.resolved=this.ready=!0,void this.bubble())};return i.prototype={bubble:function(){this.ready&&(this.uniqueString=f(this.str,this.args),this.keypath=g(this.uniqueString),this.createEvaluator(),this.callback(this.keypath))},unbind:function(){for(var a;a=this.unresolved.pop();)a.unbind()},resolve:function(a,b){this.args[a]={keypath:b},this.bubble(),this.resolved=!--this.pending},createEvaluator:function(){var a=this.root.viewmodel.evaluators[this.keypath];a||(a=new d(this.root,this.keypath,this.uniqueString,this.str,this.args,this.owner.priority),this.root.viewmodel.evaluators[this.keypath]=a),a.update()},rebind:function(a,b,c,d){var f;this.args.forEach(function(g){var h;g&&(g.keypath&&(h=e(g.keypath,c,d))?(g.keypath=h,f=!0):g.indexRef&&g.indexRef===a&&(g.value=b,f=!0))}),f&&this.bubble()}},h=i}(n,t,Ec,Kc,Gc),Mc=function(a,b,c,d,e){var f=function(d,f,g){var h,i,j,k,l,m=this;m.resolver=f,m.root=f.root,m.viewmodel=f.root.viewmodel,"string"==typeof d?m.value=d:d.t===a.REFERENCE?(h=m.ref=d.n,(i=g.indexRefs)&&void 0!==(j=i[h])?(m.indexRef=h,m.value=j):(k=f.root,(l=b(k,h,g))?m.resolve(l):m.unresolved=new c(k,h,g,function(a){m.unresolved=null,m.resolve(a)}))):new e(f,g,d,function(a){m.resolve(a)})};return f.prototype={resolve:function(a){this.keypath=a,this.value=this.viewmodel.get(a),this.bind(),this.resolver.bubble()},bind:function(){this.viewmodel.register(this.keypath,this)},rebind:function(a,b,c,e){var f;if(a&&this.indexRef===a){if(b!==this.value)return this.value=b,!0}else if(this.keypath&&(f=d(this.keypath,c,e)))return this.unbind(),this.keypath=f,this.value=this.root.viewmodel.get(f),this.bind(),!0},setValue:function(a){this.value=a,this.resolver.bubble()},unbind:function(){this.keypath&&this.root.viewmodel.unregister(this.keypath,this),this.unresolved&&this.unresolved.unbind()},forceResolution:function(){this.unresolved&&(this.unresolved.unbind(),this.unresolved=null,this.keypath=this.ref,this.value=this.viewmodel.get(this.ref),this.bind())}},f}(Yb,t,Ec,Gc,Lc),Nc=function(a,b,c){function d(a){return a.value}function e(a){return void 0!=a}function f(a){a.unbind()}var g=function(d,e,f){var g,h,i,j,k=this,l=this;j=d.parentFragment,l.root=g=d.root,l.mustache=d,l.priority=d.priority,l.ref=h=e.r,l.callback=f,l.unresolved=[],(i=a(g,h,j))?l.base=i:l.baseResolver=new b(g,h,j,function(a){l.base=a,l.baseResolver=null,l.bubble()}),l.members=e.m.map(function(a){return new c(a,k,j)}),l.ready=!0,l.bubble()};return g.prototype={getKeypath:function(){var a=this.members.map(d);return!a.every(e)||this.baseResolver?null:this.base+"."+a.join(".")},bubble:function(){this.ready&&!this.baseResolver&&this.callback(this.getKeypath())},unbind:function(){this.members.forEach(f)},rebind:function(a,b,c,d){var e;this.members.forEach(function(f){f.rebind(a,b,c,d)&&(e=!0)}),e&&this.bubble()},forceResolution:function(){this.baseResolver&&(this.base=this.ref,this.baseResolver.unbind(),this.baseResolver=null),this.members.forEach(function(a){return a.forceResolution()}),this.bubble()}},g}(t,Ec,Mc),Oc=function(a,b,c,d,e){return function(f,g){function h(a){var b=f.keypath;a!==b&&(f.resolve(a),void 0!==b&&f.fragments&&f.fragments.forEach(function(c){c.rebind(null,null,b,a)}))}var i,j,k,l,m,n;if(m=g.parentFragment,n=g.template,f.root=m.root,f.parentFragment=m,f.pElement=m.pElement,f.template=g.template,f.index=g.index||0,f.priority=m.priority,f.isStatic=g.template.s,f.type=g.template.t,i=n.r){if(k=m.indexRefs,k&&void 0!==(l=k[i]))return f.indexRef=i,void f.setValue(l);j=c(f.root,i,f.parentFragment),void 0!==j?f.resolve(j):(f.ref=i,b.addUnresolved(f))}g.template.x&&(f.resolver=new e(f,m,g.template.x,h)),g.template.rx&&(f.resolver=new d(f,g.template.rx,h)),f.template.n!==a.SECTION_UNLESS||f.hasOwnProperty("value")||f.setValue(void 0)}}(Yb,v,t,Nc,Lc),Pc=function(a){var b,c,d;void 0!=this.keypath&&(this.root.viewmodel.unregister(this.keypath,this),b=!0),this.keypath=a,void 0!=a&&(c=this.root.viewmodel.get(a),this.root.viewmodel.register(a,this)),this.setValue(c),b&&(d=this.twowayBinding)&&d.rebound()},Qc=function(a){return function(b,c,d,e){var f;this.fragments&&this.fragments.forEach(function(a){return a.rebind(b,c,d,e)}),this.resolver&&this.resolver.rebind(b,c,d,e),void 0!==this.keypath?(f=a(this.keypath,d,e),void 0!==f&&this.resolve(f)):void 0!==b&&this.indexRef===b&&this.setValue(c)}}(Gc),Rc=function(a,b,c,d){return{getValue:a,init:b,resolve:c,rebind:d}}(Dc,Oc,Pc,Qc),Sc=function(a,b,c,d,e,f,g,h){var i=function(b){this.type=a.INTERPOLATOR,g.init(this,b)};return i.prototype={update:function(){this.node.data=void 0==this.value?"":this.value},resolve:g.resolve,rebind:g.rebind,detach:h,unbind:f,render:function(){return this.node||(this.node=document.createTextNode(void 0!=this.value?this.value:"")),this.node},unrender:function(a){a&&d(this.node)},getValue:g.getValue,setValue:function(a){var c;(c=this.root.viewmodel.wrapped[this.keypath])&&(a=c.get()),e(a,this.value)||(this.value=a,this.parentFragment.bubble(),this.node&&b.addView(this))},firstNode:function(){return this.node},toString:function(a){var b=void 0!=this.value?""+this.value:"";return a?c(b):b}},i}(Yb,v,yc,zc,r,Cc,Rc,Ac),Tc=function(){this.parentFragment.bubble()},Uc=function(){var a;return 1===this.fragments.length?this.fragments[0].detach():(a=document.createDocumentFragment(),this.fragments.forEach(function(b){a.appendChild(b.detach())}),a)},Vc=function(a){var b,c,d;for(c=this.fragments.length,b=0;c>b;b+=1)if(d=this.fragments[b].find(a))return d;return null},Wc=function(a,b){var c,d;for(d=this.fragments.length,c=0;d>c;c+=1)this.fragments[c].findAll(a,b)},Xc=function(a,b){var c,d;for(d=this.fragments.length,c=0;d>c;c+=1)this.fragments[c].findAllComponents(a,b)},Yc=function(a){var b,c,d;for(c=this.fragments.length,b=0;c>b;b+=1)if(d=this.fragments[b].findComponent(a))return d; return null},Zc=function(a){return this.fragments[a.index+1]?this.fragments[a.index+1].firstNode():this.parentFragment.findNextNode(this)},$c=function(){var a,b,c;if(a=this.fragments.length)for(b=0;a>b;b+=1)if(c=this.fragments[b].firstNode())return c;return this.parentFragment.findNextNode(this)},_c=function(a,b){var c;return b.push(function(){c=b.Fragment}),function(b){var c,d,e,f,g,h,i,j,k=this;if(!this.unbound){if(c=this.parentFragment,g=[],b.forEach(function(a,b){var c,e,f,h;return a===b?void(g[a]=k.fragments[b]):(c=k.fragments[b],void 0===d&&(d=b),-1===a?(k.fragmentsToUnrender.push(c),void c.unbind()):(e=a-b,f=k.keypath+"."+b,h=k.keypath+"."+a,c.rebind(k.template.i,a,f,h),void(g[a]=c)))}),f=this.root.get(this.keypath).length,void 0===d){if(this.length===f)return;d=this.length}for(this.length=this.fragments.length=f,a.addView(this),h={template:this.template.f,root:this.root,owner:this},this.template.i&&(h.indexRef=this.template.i),e=d;f>e;e+=1)(i=g[e])?this.docFrag.appendChild(i.detach(!1)):this.fragmentsToCreate.push(e),this.fragments[e]=i;j=c.findNextNode(this),this.parentFragment.getNode().insertBefore(this.docFrag,j)}}}(v,e),ad=function(){var a;return a=this.docFrag=document.createDocumentFragment(),this.update(),this.rendered=!0,a},bd=function(a,b,c,d,e){function f(d,e){var f={template:d.template.f,root:d.root,pElement:d.parentFragment.pElement,owner:d};if(d.subtype)switch(d.subtype){case a.SECTION_IF:return j(d,e,!1,f);case a.SECTION_UNLESS:return j(d,e,!0,f);case a.SECTION_WITH:return i(d,f);case a.SECTION_EACH:if(c(e))return h(d,e,f)}return d.ordered=!!b(e),d.ordered?g(d,e,f):c(e)||"function"==typeof e?d.template.i?h(d,e,f):i(d,f):j(d,e,!1,f)}function g(a,b,c){var d,e,f;if(e=b.length,e===a.length)return!1;if(e<a.length)a.fragmentsToUnrender=a.fragments.splice(e,a.length-e),a.fragmentsToUnrender.forEach(k);else if(e>a.length)for(d=a.length;e>d;d+=1)c.context=a.keypath+"."+d,c.index=d,a.template.i&&(c.indexRef=a.template.i),f=new n(c),a.fragmentsToRender.push(a.fragments[d]=f);return a.length=e,!0}function h(a,b,c){var d,e,f,g,h;for(f=a.hasKey||(a.hasKey={}),e=a.fragments.length;e--;)g=a.fragments[e],g.index in b||(h=!0,g.unbind(),a.fragmentsToUnrender.push(g),a.fragments.splice(e,1),f[g.index]=!1);for(d in b)f[d]||(h=!0,c.context=a.keypath+"."+d,c.index=d,a.template.i&&(c.indexRef=a.template.i),g=new n(c),a.fragmentsToRender.push(g),a.fragments.push(g),f[d]=!0);return a.length=a.fragments.length,h}function i(a,b){var c;return a.length?void 0:(b.context=a.keypath,b.index=0,c=new n(b),a.fragmentsToRender.push(a.fragments[0]=c),a.length=1,!0)}function j(a,c,d,e){var f,g,h;if(g=b(c)&&0===c.length,f=d?g||!c:c&&!g){if(!a.length)return e.index=0,h=new n(e),a.fragmentsToRender.push(a.fragments[0]=h),a.length=1,!0;if(a.length>1)return a.fragmentsToUnrender=a.fragments.splice(1),a.fragmentsToUnrender.forEach(k),!0}else if(a.length)return a.fragmentsToUnrender=a.fragments.splice(0,a.fragments.length).filter(l),a.fragmentsToUnrender.forEach(k),a.length=a.fragmentsToRender.length=0,!0}function k(a){a.unbind()}function l(a){return a.rendered}var m,n;return e.push(function(){n=e.Fragment}),m=function(a){var b,c,e=this;this.updating||(this.updating=!0,(b=this.root.viewmodel.wrapped[this.keypath])&&(a=b.get()),this.fragmentsToCreate.length?(c={template:this.template.f,root:this.root,pElement:this.pElement,owner:this,indexRef:this.template.i},this.fragmentsToCreate.forEach(function(a){var b;c.context=e.keypath+"."+a,c.index=a,b=new n(c),e.fragmentsToRender.push(e.fragments[a]=b)}),this.fragmentsToCreate.length=0):f(this,a)&&(this.bubble(),this.rendered&&d.addView(this)),this.value=a,this.updating=!1)}}(Yb,g,h,v,e),cd=function(a,b){function c(a){a.unbind()}function d(a,b){var c,d=[];for(c=a;b>c;c+=1)d.push(c);return d}function e(a,b,c,d){var e,f,g,h,i;for(g=a.template.i,e=b;c>e;e+=1)f=a.fragments[e],h=a.keypath+"."+(e-d),i=a.keypath+"."+e,f.index=e,f.rebind(g,e,h,i)}var f,g;return b.push(function(){g=b.Fragment}),f=function(b){var f,g,h,i,j,k=this;if(!this.unbound&&(f=b.balance)){if(a.addView(k),g=b.rangeStart,k.length+=f,0>f)return k.fragmentsToUnrender=k.fragments.splice(g,-f),k.fragmentsToUnrender.forEach(c),void e(k,g,k.length,f);h=g+b.removed,i=g+b.added,j=[h,0],j.length+=f,k.fragments.splice.apply(k.fragments,j),e(k,i,k.length,f),k.fragmentsToCreate=d(h,i)}}}(v,e),dd=function(a){var b,c,d;for(b="",c=0,d=this.length,c=0;d>c;c+=1)b+=this.fragments[c].toString(a);return b},ed=function(a){function b(a){a.unbind()}var c;return c=function(){this.fragments.forEach(b),a.call(this),this.length=0,this.unbound=!0}}(Cc),fd=function(){function a(a){a.unrender(!0)}function b(a){a.unrender(!1)}var c;return c=function(c){this.fragments.forEach(c?a:b)}}(),gd=function(){for(var a,b,c,d,e;a=this.fragmentsToUnrender.pop();)a.unrender(!0);if(this.fragmentsToRender.length){for(this.rendered&&(e=this.parentFragment.getNode());a=this.fragmentsToRender.shift();)b=a.render(),this.docFrag.appendChild(b),this.rendered&&this.ordered&&(c=this.fragments[a.index+1],c&&c.rendered&&e.insertBefore(this.docFrag,c.firstNode()||null));this.rendered&&this.docFrag.childNodes.length&&(d=this.parentFragment.findNextNode(this),e.insertBefore(this.docFrag,d))}},hd=function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){var s=function(c){this.type=a.SECTION,this.subtype=c.template.n,this.inverted=this.subtype===a.SECTION_UNLESS,this.pElement=c.pElement,this.fragments=[],this.fragmentsToCreate=[],this.fragmentsToRender=[],this.fragmentsToUnrender=[],this.length=0,b.init(this,c)};return s.prototype={bubble:c,detach:d,find:e,findAll:f,findAllComponents:g,findComponent:h,findNextNode:i,firstNode:j,getValue:b.getValue,merge:k,rebind:b.rebind,render:l,resolve:b.resolve,setValue:m,splice:n,toString:o,unbind:p,unrender:q,update:r},s}(Yb,Rc,Tc,Uc,Vc,Wc,Xc,Yc,Zc,$c,_c,ad,bd,cd,dd,ed,fd,gd),id=function(){var a,b;if(this.docFrag){for(a=this.nodes.length,b=0;a>b;b+=1)this.docFrag.appendChild(this.nodes[b]);return this.docFrag}},jd=function(a){return function(b){var c,d,e,f;for(d=this.nodes.length,c=0;d>c;c+=1)if(e=this.nodes[c],1===e.nodeType){if(a(e,b))return e;if(f=e.querySelector(b))return f}return null}}(hb),kd=function(a){return function(b,c){var d,e,f,g,h,i;for(e=this.nodes.length,d=0;e>d;d+=1)if(f=this.nodes[d],1===f.nodeType&&(a(f,b)&&c.push(f),g=f.querySelectorAll(b)))for(h=g.length,i=0;h>i;i+=1)c.push(g[i])}}(hb),ld=function(){return this.rendered&&this.nodes[0]?this.nodes[0]:this.parentFragment.findNextNode(this)},md=function(a,b){function c(a){return g[a]||(g[a]=b(a))}var d,e,f,g={};try{b("table").innerHTML="foo"}catch(h){e=!0,f={TABLE:['<table class="x">',"</table>"],THEAD:['<table><thead class="x">',"</thead></table>"],TBODY:['<table><tbody class="x">',"</tbody></table>"],TR:['<table><tr class="x">',"</tr></table>"],SELECT:['<select class="x">',"</select>"]}}return d=function(b,d,g){var h,i,j,k,l,m=[];if(b){for(e&&(i=f[d.tagName])?(h=c("DIV"),h.innerHTML=i[0]+b+i[1],h=h.querySelector(".x"),"SELECT"===h.tagName&&(j=h.options[h.selectedIndex])):d.namespaceURI===a.svg?(h=c("DIV"),h.innerHTML='<svg class="x">'+b+"</svg>",h=h.querySelector(".x")):(h=c(d.tagName),h.innerHTML=b);k=h.firstChild;)m.push(k),g.appendChild(k);if(e&&"SELECT"===d.tagName)for(l=m.length;l--;)m[l]!==j&&(m[l].selected=!1)}return m}}(z,A),nd=function(a){for(var b=[],c=a.length;c--;)b[c]=a[c];return b},od=function(a){function b(a){return a.selected}var c;return c=function(c){var d,e,f;c&&"select"===c.name&&c.binding&&(d=a(c.node.options).filter(b),c.getAttribute("multiple")?f=d.map(function(a){return a.value}):(e=d[0])&&(f=e.value),void 0!==f&&c.binding.setValue(f),c.bubble())}}(nd),pd=function(a,b){return function(){if(this.rendered)throw new Error("Attempted to render an item that was already rendered");return this.docFrag=document.createDocumentFragment(),this.nodes=a(this.value,this.parentFragment.getNode(),this.docFrag),b(this.pElement),this.rendered=!0,this.docFrag}}(md,od),qd=function(a){return function(b){var c;(c=this.root.viewmodel.wrapped[this.keypath])&&(b=c.get()),b!==this.value&&(this.value=b,this.parentFragment.bubble(),this.rendered&&a.addView(this))}}(v),rd=function(){return void 0!=this.value?this.value:""},sd=function(a){return function(b){this.rendered&&b&&(this.nodes.forEach(a),this.rendered=!1)}}(zc),td=function(a,b){return function(){var c,d;if(this.rendered){for(;this.nodes&&this.nodes.length;)c=this.nodes.pop(),c.parentNode.removeChild(c);d=this.parentFragment.getNode(),this.nodes=a(this.value,d,this.docFrag),d.insertBefore(this.docFrag,this.parentFragment.findNextNode(this)),b(this.pElement)}}}(md,od),ud=function(a,b,c,d,e,f,g,h,i,j,k,l){var m=function(c){this.type=a.TRIPLE,b.init(this,c)};return m.prototype={detach:c,find:d,findAll:e,firstNode:f,getValue:b.getValue,rebind:b.rebind,render:g,resolve:b.resolve,setValue:h,toString:i,unbind:l,unrender:j,update:k},m}(Yb,Rc,id,jd,kd,ld,pd,qd,rd,sd,td,Cc),vd=function(){this.parentFragment.bubble()},wd=function(){var a,b=this.node;return b?((a=b.parentNode)&&a.removeChild(b),b):void 0},xd=function(a){return function(b){return a(this.node,b)?this.node:this.fragment&&this.fragment.find?this.fragment.find(b):void 0}}(hb),yd=function(a,b){b._test(this,!0)&&b.live&&(this.liveQueries||(this.liveQueries=[])).push(b),this.fragment&&this.fragment.findAll(a,b)},zd=function(a,b){this.fragment&&this.fragment.findAllComponents(a,b)},Ad=function(a){return this.fragment?this.fragment.findComponent(a):void 0},Bd=function(){return null},Cd=function(){return this.node},Dd=function(a){return this.attributes&&this.attributes[a]?this.attributes[a].value:void 0},Ed=function(){var a,b,c,d;return a="altGlyph altGlyphDef altGlyphItem animateColor animateMotion animateTransform clipPath feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence foreignObject glyphRef linearGradient radialGradient textPath vkern".split(" "),b="attributeName attributeType baseFrequency baseProfile calcMode clipPathUnits contentScriptType contentStyleType diffuseConstant edgeMode externalResourcesRequired filterRes filterUnits glyphRef gradientTransform gradientUnits kernelMatrix kernelUnitLength keyPoints keySplines keyTimes lengthAdjust limitingConeAngle markerHeight markerUnits markerWidth maskContentUnits maskUnits numOctaves pathLength patternContentUnits patternTransform patternUnits pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits refX refY repeatCount repeatDur requiredExtensions requiredFeatures specularConstant specularExponent spreadMethod startOffset stdDeviation stitchTiles surfaceScale systemLanguage tableValues targetX targetY textLength viewBox viewTarget xChannelSelector yChannelSelector zoomAndPan".split(" "),c=function(a){for(var b={},c=a.length;c--;)b[a[c].toLowerCase()]=a[c];return b},d=c(a.concat(b)),function(a){var b=a.toLowerCase();return d[b]||b}}(),Fd=function(a){return function(){var b=this.fragment.getValue();b!==this.value&&("id"===this.name&&this.value&&delete this.root.nodes[this.value],this.value=b,"value"===this.name&&this.node&&(this.node._ractive.value=b),this.rendered&&a.addView(this))}}(v),Gd=function(){var a=/^(allowFullscreen|async|autofocus|autoplay|checked|compact|controls|declare|default|defaultChecked|defaultMuted|defaultSelected|defer|disabled|draggable|enabled|formNoValidate|hidden|indeterminate|inert|isMap|itemScope|loop|multiple|muted|noHref|noResize|noShade|noValidate|noWrap|open|pauseOnExit|readOnly|required|reversed|scoped|seamless|selected|sortable|translate|trueSpeed|typeMustMatch|visible)$/i;return a}(),Hd=function(a,b){return function(c,d){var e,f;if(e=d.indexOf(":"),-1===e||(f=d.substr(0,e),"xmlns"===f))c.name=c.element.namespace!==a.html?b(d):d;else if(d=d.substring(e+1),c.name=b(d),c.namespace=a[f.toLowerCase()],!c.namespace)throw'Unknown namespace ("'+f+'")'}}(z,Ed),Id=function(a){return function(b){var c=b.fragment.items;if(1===c.length)return c[0].type===a.INTERPOLATOR?c[0]:void 0}}(Yb),Jd=function(a,b){var c={"accept-charset":"acceptCharset",accesskey:"accessKey",bgcolor:"bgColor","class":"className",codebase:"codeBase",colspan:"colSpan",contenteditable:"contentEditable",datetime:"dateTime",dirname:"dirName","for":"htmlFor","http-equiv":"httpEquiv",ismap:"isMap",maxlength:"maxLength",novalidate:"noValidate",pubdate:"pubDate",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return function(d,e){var f;!d.pNode||d.namespace||e.pNode.namespaceURI&&e.pNode.namespaceURI!==a.html||(f=c[d.name]||d.name,void 0!==e.pNode[f]&&(d.propertyName=f),(b.test(f)||"value"===f)&&(d.useProperty=!0))}}(z,Gd),Kd=function(a,b,c,d,e,f){var g;return f.push(function(){g=f.Fragment}),function(f){return this.type=a.ATTRIBUTE,this.element=f.element,this.root=f.root,c(this,f.name),f.value&&"string"!=typeof f.value?(this.parentFragment=this.element.parentFragment,this.fragment=new g({template:f.value,root:this.root,owner:this}),this.value=this.fragment.getValue(),this.interpolator=d(this),this.isBindable=!!this.interpolator&&!this.interpolator.isStatic,e(this,f),void(this.ready=!0)):void(this.value=b.test(this.name)?!0:f.value||"")}}(Yb,Gd,Hd,Id,Jd,e),Ld=function(a,b,c,d){this.fragment&&this.fragment.rebind(a,b,c,d)},Md=function(a,b){var c={"accept-charset":"acceptCharset",accesskey:"accessKey",bgcolor:"bgColor","class":"className",codebase:"codeBase",colspan:"colSpan",contenteditable:"contentEditable",datetime:"dateTime",dirname:"dirName","for":"htmlFor","http-equiv":"httpEquiv",ismap:"isMap",maxlength:"maxLength",novalidate:"noValidate",pubdate:"pubDate",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return function(d){var e;this.node=d,d.namespaceURI&&d.namespaceURI!==a.html||(e=c[this.name]||this.name,void 0!==d[e]&&(this.propertyName=e),(b.test(e)||"value"===e)&&(this.useProperty=!0),"value"===e&&(this.useProperty=!0,d._ractive.value=this.value)),this.rendered=!0,this.update()}}(z,Gd),Nd=function(a){function b(a){return a.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}var c;return c=function(){var c=(f=this).name,d=f.value,e=f.interpolator,f=f.fragment;if(("value"!==c||"select"!==this.element.name&&"textarea"!==this.element.name)&&("value"!==c||void 0===this.element.getAttribute("contenteditable")))return"name"===c&&"input"===this.element.name&&e?"name={{"+(e.keypath||e.ref)+"}}":a.test(c)?d?c:"":(f&&(d=f.toString()),d?c+'="'+b(d)+'"':c)}}(Gd),Od=function(){this.fragment&&this.fragment.unbind()},Pd=function(){var a,b,c,d,e=this.value;if(!this.locked)for(this.node._ractive.value=e,a=this.node.options,d=a.length;d--;)if(b=a[d],c=b._ractive?b._ractive.value:b.value,c==e){b.selected=!0;break}},Qd=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]==b)return!0;return!1},Rd=function(a,b){return function(){var c,d,e,f,g=this.value;for(b(g)||(g=[g]),c=this.node.options,d=c.length;d--;)e=c[d],f=e._ractive?e._ractive.value:e.value,e.selected=a(g,f)}}(Qd,g),Sd=function(){var a=(b=this).node,b=b.value;a.checked=b==a._ractive.value},Td=function(a){return function(){var b,c,d,e,f=this.node;if(b=f.checked,f.value=this.element.getAttribute("value"),f.checked=this.element.getAttribute("value")===this.element.getAttribute("name"),b&&!f.checked&&this.element.binding&&(d=this.element.binding.siblings,e=d.length)){for(;e--;){if(c=d[e],!c.element.node)return;if(c.element.node.checked)return a.addViewmodel(c.root.viewmodel),c.handleChange()}a.addViewmodel(c.root.viewmodel),this.root.viewmodel.set(c.keypath,void 0)}}}(v),Ud=function(a){return function(){var b,c;b=this.node,c=this.value,b.checked=a(c)?-1!==c.indexOf(b._ractive.value):c==b._ractive.value}}(g),Vd=function(){var a,b;a=this.node,b=this.value,void 0===b&&(b=""),a.className=b},Wd=function(){var a,b;a=this.node,b=this.value,void 0!==b&&(this.root.nodes[b]=void 0),this.root.nodes[b]=a,a.id=b},Xd=function(){var a,b;a=this.node,b=this.value,void 0===b&&(b=""),a.style.setAttribute("cssText",b)},Yd=function(){var a=this.value;void 0===a&&(a=""),this.locked||(this.node.innerHTML=a)},Zd=function(){var a=(b=this).node,b=b.value;a._ractive.value=b,this.locked||(a.value=void 0==b?"":b)},$d=function(){this.locked||(this.node[this.propertyName]=this.value)},_d=function(a){return function(){var b=(f=this).node,c=f.namespace,d=f.name,e=f.value,f=f.fragment;c?b.setAttributeNS(c,d,(f||e).toString()):a.test(d)?e?b.setAttribute(d,""):b.removeAttribute(d):b.setAttribute(d,(f||e).toString())}}(Gd),ae=function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){return function(){var o,p,q,r,s;o=this.name,p=this.element,q=this.node,"id"===o?s=i:"value"===o?"select"===p.name&&"value"===o?s=p.getAttribute("multiple")?d:c:"textarea"===p.name?s=l:null!=p.getAttribute("contenteditable")?s=k:"input"===p.name&&(r=p.getAttribute("type"),s="file"===r?b:"radio"===r&&p.binding&&"name"===p.binding.name?f:l):this.twoway&&"name"===o?"radio"===q.type?s=e:"checkbox"===q.type&&(s=g):"style"===o&&q.style.setAttribute?s=j:"class"!==o||q.namespaceURI&&q.namespaceURI!==a.html?this.useProperty&&(s=m):s=h,s||(s=n),this.update=s,this.update()}}(z,$,Pd,Rd,Sd,Td,Ud,Vd,Wd,Xd,Yd,Zd,$d,_d),be=function(a,b,c,d,e,f,g){var h=function(a){this.init(a)};return h.prototype={bubble:a,init:b,rebind:c,render:d,toString:e,unbind:f,update:g},h}(Fd,Kd,Ld,Md,Nd,Od,ae),ce=function(a){return function(b,c){var d,e,f=[];for(d in c)c.hasOwnProperty(d)&&(e=new a({element:b,name:d,value:c[d],root:b.root}),f.push(f[d]=e));return f}}(be),de=function(a){for(var b,c,d=Array.prototype.slice,e=d.call(arguments,1);c=e.shift();)for(b in c)c.hasOwnProperty(b)&&(a[b]=c[b]);return a},ee=function(a,b,c,d,e){var f=function(a){var c,d,e;return this.element=a,this.root=a.root,this.attribute=a.attributes[this.name||"value"],c=this.attribute.interpolator,c.twowayBinding=this,c.keypath&&"${"===c.keypath.substr?(b("Two-way binding does not work with expressions: "+c.keypath),!1):(c.keypath||(c.ref&&c.resolve(c.ref),c.resolver&&c.resolver.forceResolution()),this.keypath=d=c.keypath,void(void 0===this.root.viewmodel.get(d)&&this.getInitialValue&&(e=this.getInitialValue(),void 0!==e&&this.root.viewmodel.set(d,e))))};return f.prototype={handleChange:function(){var b=this;a.start(this.root),this.attribute.locked=!0,this.root.viewmodel.set(this.keypath,this.getValue()),a.scheduleTask(function(){return b.attribute.locked=!1}),a.end()},rebound:function(){var a,b,c;b=this.keypath,c=this.attribute.interpolator.keypath,b!==c&&(e(this.root._twowayBindings[b],this),this.keypath=c,a=this.root._twowayBindings[c]||(this.root._twowayBindings[c]=[]),a.push(this))},unbind:function(){}},f.extend=function(a){var b,e=this;return b=function(a){f.call(this,a),this.init&&this.init()},b.prototype=c(e.prototype),d(b.prototype,a),b.extend=f.extend,b},f}(v,L,S,de,n),fe=function(){this._ractive.binding.handleChange()},ge=function(a,b){var c=a.extend({getInitialValue:function(){return this.element.fragment?this.element.fragment.toString():""},render:function(){var a=this.element.node;a.addEventListener("change",b,!1),this.root.lazy||(a.addEventListener("input",b,!1),a.attachEvent&&a.addEventListener("keyup",b,!1))},unrender:function(){var a=this.element.node;a.removeEventListener("change",b,!1),a.removeEventListener("input",b,!1),a.removeEventListener("keyup",b,!1)},getValue:function(){return this.element.node.innerHTML}});return c}(ee,fe),he=function(){var a={};return function(b,c,d){var e=b+c+d;return a[e]||(a[e]=[])}}(),ie=function(a,b,c,d,e){var f=c.extend({name:"checked",init:function(){this.siblings=d(this.root._guid,"radio",this.element.getAttribute("name")),this.siblings.push(this)},render:function(){var a=this.element.node;a.addEventListener("change",e,!1),a.attachEvent&&a.addEventListener("click",e,!1)},unrender:function(){var a=this.element.node;a.removeEventListener("change",e,!1),a.removeEventListener("click",e,!1)},handleChange:function(){a.start(this.root),this.siblings.forEach(function(a){a.root.viewmodel.set(a.keypath,a.getValue())}),a.end()},getValue:function(){return this.element.node.checked},unbind:function(){b(this.siblings,this)}});return f}(v,n,ee,he,fe),je=function(a,b,c,d){var e=b.extend({name:"name",init:function(){this.siblings=d(this.root._guid,"radioname",this.keypath),this.siblings.push(this),this.radioName=!0,this.attribute.twoway=!0},getInitialValue:function(){return this.element.getAttribute("checked")?this.element.getAttribute("value"):void 0},render:function(){var a=this.element.node;a.name="{{"+this.keypath+"}}",a.checked=this.root.viewmodel.get(this.keypath)==this.element.getAttribute("value"),a.addEventListener("change",c,!1),a.attachEvent&&a.addEventListener("click",c,!1)},unrender:function(){var a=this.element.node;a.removeEventListener("change",c,!1),a.removeEventListener("click",c,!1)},getValue:function(){var a=this.element.node;return a._ractive?a._ractive.value:a.value},handleChange:function(){this.element.node.checked&&b.prototype.handleChange.call(this)},rebound:function(a,c,d,e){var f;b.prototype.rebound.call(this,a,c,d,e),(f=this.element.node)&&(f.name="{{"+this.keypath+"}}")},unbind:function(){a(this.siblings,this)}});return e}(n,ee,fe,he),ke=function(a,b,c,d,e){function f(a){return a.isChecked}function g(a){return a.element.getAttribute("value")}var h=c.extend({name:"name",getInitialValue:function(){return this.noInitialValue=!0,[]},init:function(){var b,c,e;this.checkboxName=!0,this.siblings=d(this.root._guid,"checkboxes",this.keypath),this.siblings.push(this),this.noInitialValue&&(this.siblings.noInitialValue=!0),e=this.siblings.noInitialValue,b=this.root.viewmodel.get(this.keypath),c=this.element.getAttribute("value"),e?(this.isChecked=this.element.getAttribute("checked"),this.isChecked&&b.push(c)):this.isChecked=a(b)?-1!==b.indexOf(c):b===c},unbind:function(){b(this.siblings,this)},render:function(){var a=this.element.node;a.name="{{"+this.keypath+"}}",a.checked=this.isChecked,a.addEventListener("change",e,!1),a.attachEvent&&a.addEventListener("click",e,!1)},unrender:function(){var a=this.element.node;a.removeEventListener("change",e,!1),a.removeEventListener("click",e,!1)},changed:function(){var a=!!this.isChecked;return this.isChecked=this.element.node.checked,this.isChecked===a},handleChange:function(){this.isChecked=this.element.node.checked,c.prototype.handleChange.call(this)},getValue:function(){return this.siblings.filter(f).map(g)}});return h}(g,n,ee,he,fe),le=function(a,b){var c=a.extend({name:"checked",render:function(){var a=this.element.node;a.addEventListener("change",b,!1),a.attachEvent&&a.addEventListener("click",b,!1)},unrender:function(){var a=this.element.node;a.removeEventListener("change",b,!1),a.removeEventListener("click",b,!1)},getValue:function(){return this.element.node.checked}});return c}(ee,fe),me=function(a,b,c){var d=b.extend({getInitialValue:function(){var a,b,c,d,e=this.element.options;if(void 0===this.element.getAttribute("value")&&(b=a=e.length,a)){for(;b--;)if(e[b].getAttribute("selected")){c=e[b].getAttribute("value"),d=!0;break}if(!d)for(;++b<a;)if(!e[b].getAttribute("disabled")){c=e[b].getAttribute("value");break}return void 0!==c&&(this.element.attributes.value.value=c),c}},render:function(){this.element.node.addEventListener("change",c,!1)},unrender:function(){this.element.node.removeEventListener("change",c,!1)},setValue:function(b){a.addViewmodel(this.root.viewmodel),this.root.viewmodel.set(this.keypath,b)},getValue:function(){var a,b,c,d,e;for(a=this.element.node.options,c=a.length,b=0;c>b;b+=1)if(d=a[b],a[b].selected)return e=d._ractive?d._ractive.value:d.value},forceUpdate:function(){var b=this,c=this.getValue();void 0!==c&&(this.attribute.locked=!0,a.addViewmodel(this.root.viewmodel),a.scheduleTask(function(){return b.attribute.locked=!1}),this.root.viewmodel.set(this.keypath,c))}});return d}(v,ee,fe),ne=function(a){return function(b,c){var d;if(!a(b)||!a(c))return!1;if(b.length!==c.length)return!1;for(d=b.length;d--;)if(b[d]!==c[d])return!1;return!0}}(g),oe=function(a,b,c,d){var e=c.extend({getInitialValue:function(){return this.element.options.filter(function(a){return a.getAttribute("selected")}).map(function(a){return a.getAttribute("value")})},render:function(){var a;this.element.node.addEventListener("change",d,!1),a=this.root.viewmodel.get(this.keypath),void 0===a&&this.handleChange()},unrender:function(){this.element.node.removeEventListener("change",d,!1)},setValue:function(){throw new Error("TODO not implemented yet")},getValue:function(){var a,b,c,d,e,f;for(a=[],b=this.element.node.options,d=b.length,c=0;d>c;c+=1)e=b[c],e.selected&&(f=e._ractive?e._ractive.value:e.value,a.push(f));return a},handleChange:function(){var a,d,e;return a=this.attribute,d=a.value,e=this.getValue(),void 0!==d&&b(e,d)||c.prototype.handleChange.call(this),this},forceUpdate:function(){var b=this,c=this.getValue();void 0!==c&&(this.attribute.locked=!0,a.addViewmodel(this.root.viewmodel),a.scheduleTask(function(){return b.attribute.locked=!1}),this.root.viewmodel.set(this.keypath,c))},updateModel:function(){void 0!==this.attribute.value&&this.attribute.value.length||this.root.viewmodel.set(this.keypath,this.initialValue)}});return e}(v,ne,me,fe),pe=function(a,b){var c=a.extend({render:function(){this.element.node.addEventListener("change",b,!1)},unrender:function(){this.element.node.removeEventListener("change",b,!1)},getValue:function(){return this.element.node.files}});return c}(ee,fe),qe=function(a,b){function c(){var a;b.call(this),a=this._ractive.root.viewmodel.get(this._ractive.binding.keypath,f),this.value=void 0==a?"":a}var d,e,f;return f={evaluateWrapped:!0},e=a.extend({getInitialValue:function(){return""},getValue:function(){return this.element.node.value},render:function(){var a=this.element.node;a.addEventListener("change",b,!1),this.root.lazy||(a.addEventListener("input",b,!1),a.attachEvent&&a.addEventListener("keyup",b,!1)),a.addEventListener("blur",c,!1)},unrender:function(){var a=this.element.node;a.removeEventListener("change",b,!1),a.removeEventListener("input",b,!1),a.removeEventListener("keyup",b,!1),a.removeEventListener("blur",c,!1)}}),d=e}(ee,fe),re=function(a){return a.extend({getInitialValue:function(){return void 0},getValue:function(){var a=parseFloat(this.element.node.value);return isNaN(a)?void 0:a}})}(qe),se=function(a,b,c,d,e,f,g,h,i,j,k){function l(a){return a&&a.isBindable}var m;return m=function(m){var n,o,p,q,r=m.attributes;return m.binding&&(m.binding.teardown(),m.binding=null),m.getAttribute("contenteditable")&&l(r.value)?o=b:"input"===m.name?(n=m.getAttribute("type"),"radio"===n||"checkbox"===n?(p=l(r.name),q=l(r.checked),p&&q&&a.error({message:"badRadioInputBinding"}),p?o="radio"===n?d:e:q&&(o="radio"===n?c:f)):"file"===n&&l(r.value)?o=i:l(r.value)&&(o="number"===n||"range"===n?j:k)):"select"===m.name&&l(r.value)?o=m.getAttribute("multiple")?h:g:"textarea"===m.name&&l(r.value)&&(o=k),o?new o(m):void 0}}(Hc,ge,ie,je,ke,le,me,oe,pe,re,qe),te=function(){var a=this.getAction();a&&!this.hasListener?this.listen():!a&&this.hasListener&&this.unrender()},ue=function(a){return function(b){a(this.root,this.getAction(),{event:b})}}(m),ve=function(){return this.action.toString().trim()},we=function(a,b,c,d,e,f,g){function h(a){var b,c,d;if(b=this.root,"function"!=typeof b[this.method])throw new Error('Attempted to call a non-existent method ("'+this.method+'")');c=this.args.map(function(c){var d,e,f;if(!c)return void 0;if(c.indexRef)return c.value;if(c.eventObject){if(d=a,e=c.refinements.length)for(f=0;e>f;f+=1)d=d[c.refinements[f]]}else d=b.get(c.keypath);return d}),d=this.fn.apply(null,c),b[this.method].apply(b,d)}function i(a){f(this.root,this.getAction(),{event:a,args:this.params})}function j(a){var b=this.dynamicParams.getValue(m);"string"==typeof b&&(b=b.substr(1,b.length-2)),f(this.root,this.getAction(),{event:a,args:b})}var k,l,m={args:!0},n=/^event(?:\.(.+))?/;return e.push(function(){l=e.Fragment}),k=function(e,f,k){var m,o,p,q,r,s=this;s.element=e,s.root=e.root,s.name=f,-1!==f.indexOf("*")&&(g.error({debug:this.root.debug,message:"noElementProxyEventWildcards",args:{element:e.tagName,event:f}}),this.invalid=!0),k.m?(s.method=k.m,s.args=o=[],s.unresolved=[],s.refs=k.a.r,s.fn=b(k.a.s,s.refs.length),r=e.parentFragment,p=r.indexRefs,q=s.root,k.a.r.forEach(function(b,e){var f,g,h,i;return p&&void 0!==(f=p[b])?void(o[e]={indexRef:b,value:f}):(h=n.exec(b))?void(o[e]={eventObject:!0,refinements:h[1]?h[1].split("."):[]}):(g=c(q,b,r))?void(o[e]={keypath:g}):(o[e]=null,i=new d(q,b,r,function(b){s.resolve(e,b),a(s.unresolved,i)}),void s.unresolved.push(i))}),this.fire=h):(m=k.n||k,"string"!=typeof m&&(m=new l({template:m,root:this.root,owner:this})),this.action=m,k.d?(this.dynamicParams=new l({template:k.d,root:this.root,owner:this.element}),this.fire=j):k.a&&(this.params=k.a,this.fire=i))}}(n,Ic,t,Ec,e,m,Hc),xe=function(a){var b,c;b=this._ractive,c=b.events[a.type],c.fire({node:this,original:a,index:b.index,keypath:b.keypath,context:b.root.get(b.keypath)})},ye=function(a,b,c){function d(a){return f[a]||(f[a]=function(b){var c=b.node._ractive;b.index=c.index,b.keypath=c.keypath,b.context=c.root.get(c.keypath),c.events[a].fire(b)}),f[a]}var e,f={};return e=function(){var e,f=this.name;this.invalid||((e=a.registries.events.find(this.root,f))?this.custom=e(this.node,d(f)):("on"+f in this.node||window&&"on"+f in window||c.error({debug:this.root.debug,message:"missingPlugin",args:{plugin:"event",name:f}}),this.node.addEventListener(f,b,!1)),this.hasListener=!0)}}(bb,xe,Hc),ze=function(a){return function(b,c,d,e){return this.method?void this.args.forEach(function(f){f.indexRef&&f.indexRef===b&&(f.value=c),f.keypath&&(e=a(f.keypath,d,e))&&(f.keypath=e)}):("string"!=typeof this.action&&this.action.rebind(b,c,d,e),void(this.dynamicParams&&this.dynamicParams.rebind(b,c,d,e)))}}(Gc),Ae=function(){this.node=this.element.node,this.node._ractive.events[this.name]=this,(this.method||this.getAction())&&this.listen()},Be=function(a,b){this.args[a]={keypath:b}},Ce=function(){function a(a){a.teardown()}var b;return b=function(){return this.method?void this.unresolved.forEach(a):("string"!=typeof this.action&&this.action.unbind(),void(this.dynamicParams&&this.dynamicParams.unbind()))}}(),De=function(a){return function(){this.custom?this.custom.teardown():this.node.removeEventListener(this.name,a,!1),this.hasListener=!1}}(xe),Ee=function(a,b,c,d,e,f,g,h,i,j){var k=function(a,b,c){this.init(a,b,c)};return k.prototype={bubble:a,fire:b,getAction:c,init:d,listen:e,rebind:f,render:g,resolve:h,unbind:i,unrender:j},k}(te,ue,ve,we,ye,ze,Ae,Be,Ce,De),Fe=function(a){return function(b,c){var d,e,f,g,h=[];for(e in c)if(c.hasOwnProperty(e))for(f=e.split("-"),d=f.length;d--;)g=new a(b,f[d],c[e]),h.push(g);return h}}(Ee),Ge=function(a,b,c){var d,e,f;return b.push(function(){d=b.Fragment}),e={args:!0},f=function(b,f){var g,h,i,j=this;j.element=b,j.root=g=b.root,h=f.n||f,"string"!=typeof h&&(i=new d({template:h,root:g,owner:b}),h=i.toString(),i.unbind()),f.a?j.params=f.a:f.d&&(j.fragment=new d({template:f.d,root:g,owner:b}),j.params=j.fragment.getValue(e),j.fragment.bubble=function(){this.dirtyArgs=this.dirtyValue=!0,j.params=this.getValue(e),j.ready&&j.update()}),j.fn=c.registries.decorators.find(g,h),j.fn||a.error({debug:g.debug,message:"missingPlugin",args:{plugin:"decorator",name:h}})},f.prototype={init:function(){var a,b,c,d=this;if(a=d.element.node,d.params?(c=[a].concat(d.params),b=d.fn.apply(d.root,c)):b=d.fn.call(d.root,a),!b||!b.teardown)throw new Error("Decorator definition must return an object with a teardown method");d.actual=b,d.ready=!0},update:function(){this.actual.update?this.actual.update.apply(this.root,this.params):(this.actual.teardown(!0),this.init())},rebind:function(a,b,c,d){this.fragment&&this.fragment.rebind(a,b,c,d)},teardown:function(a){this.actual.teardown(),!a&&this.fragment&&this.fragment.unbind() }},f}(Hc,e,bb),He=function(a){function b(a,b){for(var c=a.length;c--;)if(a[c]==b)return!0}var c;return c=function(c){var d,e,f,g,h;d=c.node,d&&(g=a(d.options),e=c.getAttribute("value"),f=c.getAttribute("multiple"),void 0!==e?(g.forEach(function(a){var c,d;c=a._ractive?a._ractive.value:a.value,d=f?b(e,c):e==c,d&&(h=!0),a.selected=d}),h||(g[0]&&(g[0].selected=!0),c.binding&&c.binding.forceUpdate())):c.binding&&c.binding.forceUpdate())}}(nd),Ie=function(a,b){return function(){var c=this;this.dirty||(this.dirty=!0,a.scheduleTask(function(){b(c),c.dirty=!1})),this.parentFragment.bubble()}}(v,He),Je=function(a){do if("select"===a.name)return a;while(a=a.parent)},Ke=function(a){return function(b,c){b.select=a(b.parent),b.select&&(b.select.options.push(b),c.a||(c.a={}),c.a.value||c.a.hasOwnProperty("disabled")||(c.a.value=c.f),"selected"in c.a&&void 0!==b.select.getAttribute("value")&&delete c.a.selected)}}(Je),Le=function(a,b,c,d,e,f,g,h,i){var j;return i.push(function(){j=i.Fragment}),function(i){var k,l,m,n,o;this.type=a.ELEMENT,k=this.parentFragment=i.parentFragment,l=this.template=i.template,this.parent=i.pElement||k.pElement,this.root=m=k.root,this.index=i.index,this.name=b(l.e),"option"===this.name&&h(this,l),"select"===this.name&&(this.options=[],this.bubble=g),this.attributes=c(this,l.a),l.f&&(this.fragment=new j({template:l.f,root:m,owner:this,pElement:this})),m.twoway&&(n=d(this,l.a))&&(this.binding=n,o=this.root._twowayBindings[n.keypath]||(this.root._twowayBindings[n.keypath]=[]),o.push(n)),l.v&&(this.eventHandlers=e(this,l.v)),l.o&&(this.decorator=new f(this,l.o)),this.intro=l.t0||l.t1,this.outro=l.t0||l.t2}}(Yb,Ed,ce,se,Fe,Ge,Ie,Ke,e),Me=function(a){return function(b,c){return b===c||a(b,c)}}(Fc),Ne=function(a,b){return function(c,d,e,f){var g=c[d];g&&!a(g,f)&&a(g,e)&&(c[d]=b(g,e,f))}}(Me,Gc),Oe=function(a){return function(b,c,d,e){function f(a){a.rebind(b,c,d,e)}var g,h,i,j;if(this.attributes&&this.attributes.forEach(f),this.eventHandlers&&this.eventHandlers.forEach(f),this.decorator&&f(this.decorator),this.fragment&&f(this.fragment),i=this.liveQueries)for(j=this.root,g=i.length;g--;)i[g]._makeDirty();this.node&&(h=this.node._ractive)&&(a(h,"keypath",d,e),void 0!=b&&(h.index[b]=c))}}(Ne),Pe=function(a){var b;(a.attributes.width||a.attributes.height)&&a.node.addEventListener("load",b=function(){var c=a.getAttribute("width"),d=a.getAttribute("height");void 0!==c&&a.node.setAttribute("width",c),void 0!==d&&a.node.setAttribute("height",d),a.node.removeEventListener("load",b,!1)},!1)},Qe=function(a,b,c){var d,e={};return c.push(function(){d=c.Fragment}),function(c,f,g){var h,i,j,k=this;return k.element=c,k.root=h=c.root,k.isIntro=g,i=f.n||f,"string"!=typeof i&&(j=new d({template:i,root:h,owner:c}),i=j.toString(),j.unbind()),k.name=i,f.a?k.params=f.a:f.d&&(j=new d({template:f.d,root:h,owner:c}),k.params=j.getValue(e),j.unbind()),k._fn=b.registries.transitions.find(h,i),k._fn?void 0:void a.error({debug:h.debug,message:"missingPlugin",args:{plugin:"transition",name:i}})}}(Hc,bb,e),Re=function(a){return a.replace(/-([a-zA-Z])/g,function(a,b){return b.toUpperCase()})},Se=function(a,b,c,d){var e,f,g;return a?(f={},g=c("div").style,e=function(a){var c,e,h;if(a=d(a),!f[a])if(void 0!==g[a])f[a]=a;else for(h=a.charAt(0).toUpperCase()+a.substring(1),c=b.length;c--;)if(e=b[c],void 0!==g[e+h]){f[a]=e+h;break}return f[a]}):e=null,e}(B,H,A,Re),Te=function(a,b,c,d){var e,f;return b?(f=window.getComputedStyle||a.getComputedStyle,e=function(a){var b,e,g,h,i;if(b=f(this.node),"string"==typeof a)return i=b[d(a)],"0px"===i&&(i=0),i;if(!c(a))throw new Error("Transition$getStyle must be passed a string, or an array of strings representing CSS properties");for(e={},g=a.length;g--;)h=a[g],i=b[d(h)],"0px"===i&&(i=0),e[h]=i;return e}):e=null,e}(T,B,g,Se),Ue=function(a){return function(b,c){var d;if("string"==typeof b)this.node.style[a(b)]=c;else for(d in b)b.hasOwnProperty(d)&&(this.node.style[a(d)]=b[d]);return this}}(Se),Ve=function(a,b,c){function d(a){return a}var e,f=function(e){var f;this.duration=e.duration,this.step=e.step,this.complete=e.complete,"string"==typeof e.easing?(f=e.root.easing[e.easing],f||(a('Missing easing function ("'+e.easing+'"). You may need to download a plugin from [TODO]'),f=d)):f="function"==typeof e.easing?e.easing:d,this.easing=f,this.start=b(),this.end=this.start+this.duration,this.running=!0,c.add(this)};return f.prototype={tick:function(a){var b,c;return this.running?a>this.end?(this.step&&this.step(1),this.complete&&this.complete(1),!1):(b=a-this.start,c=this.easing(b/this.duration),this.step&&this.step(c),!0):!1},stop:function(){this.abort&&this.abort(),this.running=!1}},e=f}(L,J,K),We=function(a){var b=new RegExp("^-(?:"+a.join("|")+")-");return function(a){return a.replace(b,"")}}(H),Xe=function(a){var b=new RegExp("^(?:"+a.join("|")+")([A-Z])");return function(a){var c;return a?(b.test(a)&&(a="-"+a),c=a.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()})):""}}(H),Ye=function(a,b,c,d,e,f,g,h,i){var j,k,l,m,n,o,p,q,r={},s={};return a?(k=c("div").style,function(){void 0!==k.transition?(l="transition",m="transitionend",n=!0):void 0!==k.webkitTransition?(l="webkitTransition",m="webkitTransitionEnd",n=!0):n=!1}(),l&&(o=l+"Duration",p=l+"Property",q=l+"TimingFunction"),j=function(a,c,j,k,l){setTimeout(function(){var t,u,v,w,x;w=function(){u&&v&&(a.root.fire(a.name+":end",a.node,a.isIntro),l())},t=(a.node.namespaceURI||"")+a.node.tagName,a.node.style[p]=k.map(g).map(i).join(","),a.node.style[q]=i(j.easing||"linear"),a.node.style[o]=j.duration/1e3+"s",x=function(b){var c;c=k.indexOf(d(h(b.propertyName))),-1!==c&&k.splice(c,1),k.length||(a.node.removeEventListener(m,x,!1),v=!0,w())},a.node.addEventListener(m,x,!1),setTimeout(function(){for(var h,i,l,o,p,q=k.length,y=[];q--;)o=k[q],h=t+o,n&&!s[h]&&(a.node.style[g(o)]=c[o],r[h]||(i=a.getStyle(o),r[h]=a.getStyle(o)!=c[o],s[h]=!r[h],s[h]&&(a.node.style[g(o)]=i))),(!n||s[h])&&(void 0===i&&(i=a.getStyle(o)),l=k.indexOf(o),-1===l?b("Something very strange happened with transitions. If you see this message, please let @RactiveJS know. Thanks!"):k.splice(l,1),p=/[^\d]*$/.exec(c[o])[0],y.push({name:g(o),interpolator:e(parseFloat(i),parseFloat(c[o])),suffix:p}));y.length?new f({root:a.root,duration:j.duration,easing:d(j.easing||""),step:function(b){var c,d;for(d=y.length;d--;)c=y[d],a.node.style[c.name]=c.interpolator(b)+c.suffix},complete:function(){u=!0,w()}}):u=!0,k.length||(a.node.removeEventListener(m,x,!1),v=!0,w())},0)},j.delay||0)}):j=null,j}(B,L,A,Re,cb,Ve,Se,We,Xe),Ze=function(a){function b(){i.hidden=document[e]}function c(){i.hidden=!0}function d(){i.hidden=!1}var e,f,g,h,i;if("undefined"!=typeof document){if(e="hidden",i={},e in document)g="";else for(h=a.length;h--;)f=a[h],e=f+"Hidden",e in document&&(g=f);void 0!==g?(document.addEventListener(g+"visibilitychange",b),b()):("onfocusout"in document?(document.addEventListener("focusout",c),document.addEventListener("focusin",d)):(window.addEventListener("pagehide",c),window.addEventListener("blur",c),window.addEventListener("pageshow",d),window.addEventListener("focus",d)),i.hidden=!1)}return i}(H),$e=function(a,b,c,d,e,f,g){var h,i,j;return b?(i=window.getComputedStyle||a.getComputedStyle,h=function(a,b,h,k){var l,m=this;if(g.hidden)return this.setStyle(a,b),j||(j=d.resolve());"string"==typeof a?(l={},l[a]=b):(l=a,k=h,h=b),h||(c('The "'+m.name+'" transition does not supply an options object to `t.animateStyle()`. This will break in a future version of Ractive. For more info see https://github.com/RactiveJS/Ractive/issues/340'),h=m,k=m.complete);var n=new d(function(a){var b,c,d,g,j,k,n;if(!h.duration)return m.setStyle(l),void a();for(b=Object.keys(l),c=[],d=i(m.node),j={},k=b.length;k--;)n=b[k],g=d[e(n)],"0px"===g&&(g=0),g!=l[n]&&(c.push(n),m.node.style[e(n)]=g);return c.length?void f(m,l,h,c,a):void a()});return k&&(c("t.animateStyle returns a Promise as of 0.4.0. Transition authors should do t.animateStyle(...).then(callback)"),n.then(k)),n}):h=null,h}(T,B,L,o,Se,Ye,Ze),_e=function(a,b){var c;for(c in b)!b.hasOwnProperty(c)||c in a||(a[c]=b[c]);return a},af=function(a){return function(b,c){return"number"==typeof b?b={duration:b}:"string"==typeof b?b="slow"===b?{duration:600}:"fast"===b?{duration:200}:{duration:400}:b||(b={}),a(b,c)}}(_e),bf=function(){function a(a,b){b?a.setAttribute("style",b):(a.getAttribute("style"),a.removeAttribute("style"))}var b;return b=function(){var b,c,d=this;return b=d.node=d.element.node,c=b.getAttribute("style"),d.complete=function(e){!e&&d.isIntro&&a(b,c),b._ractive.transition=null,d._manager.remove(d)},d._fn?void d._fn.apply(d.root,[d].concat(d.params)):void d.complete()}}(),cf=function(a,b,c,d,e,f,g){var h,i;return g.push(function(){h=g.Fragment}),i=function(a,b,c){this.init(a,b,c)},i.prototype={init:a,start:f,getStyle:b,setStyle:c,animateStyle:d,processParams:e},i}(Qe,Te,Ue,$e,af,bf,e),df=function(a,b,c,d,e,f,g,h,i,j,k){function l(b){var c,d,e;return c=(d=b.getAttribute("xmlns"))?d:"svg"===b.name?a.svg:(e=b.parent)?"foreignObject"===e.name?a.html:e.node.namespaceURI:b.root.el.namespaceURI}function m(a){var c,d,e;if(a.select&&(d=a.select.getAttribute("value"),void 0!==d))if(c=a.getAttribute("value"),a.select.node.multiple&&b(d)){for(e=d.length;e--;)if(c==d[e]){a.node.selected=!0;break}}else a.node.selected=c==d}function n(a){var b,c,d,e,f;b=a.root;do for(c=b._liveQueries,d=c.length;d--;)e=c[d],f=c["_"+e],f._test(a)&&(a.liveQueries||(a.liveQueries=[])).push(f);while(b=b._parent)}var o,p,q;return p=function(){var a=this.node,b=this.fragment.toString(!1);if(a.styleSheet)a.styleSheet.cssText=b;else{for(;a.hasChildNodes();)a.removeChild(a.firstChild);a.appendChild(document.createTextNode(b))}},q=function(){this.node.type&&"text/javascript"!==this.node.type||c("Script tag was updated. This does not cause the code to be re-evaluated!"),this.node.text=this.fragment.toString(!1)},o=function(){var a,b,c=this,o=this.root;if(a=l(this),b=this.node=e(this.name,a),o.constructor.css&&this.parentFragment.getNode()===o.el&&this.node.setAttribute("data-rvcguid",o.constructor._guid),f(this.node,"_ractive",{value:{proxy:this,keypath:i(this.parentFragment),index:this.parentFragment.indexRefs,events:d(null),root:o}}),this.attributes.forEach(function(a){return a.render(b)}),this.fragment&&("script"===this.name?(this.bubble=q,this.node.text=this.fragment.toString(!1),this.fragment.unrender=g):"style"===this.name?(this.bubble=p,this.bubble(),this.fragment.unrender=g):this.binding&&this.getAttribute("contenteditable")?this.fragment.unrender=g:this.node.appendChild(this.fragment.render())),this.eventHandlers&&this.eventHandlers.forEach(function(a){return a.render()}),this.binding&&(this.binding.render(),this.node._ractive.binding=this.binding),"img"===this.name&&j(this),this.decorator&&this.decorator.fn&&h.scheduleTask(function(){c.decorator.init()}),o.transitionsEnabled&&this.intro){var r=new k(this,this.intro,!0);h.registerTransition(r),h.scheduleTask(function(){return r.start()})}return"option"===this.name&&m(this),this.node.autofocus&&h.scheduleTask(function(){return c.node.focus()}),n(this),this.node}}(z,g,L,S,A,C,$,v,q,Pe,cf),ef=function(){var a=/^(?:area|base|br|col|command|doctype|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/i;return a}(),ff=function(a,b,c){function d(a){var c,d,e;if(c=a.getAttribute("value"),void 0===c||!a.select)return!1;if(d=a.select.getAttribute("value"),d==c)return!0;if(a.select.getAttribute("multiple")&&b(d))for(e=d.length;e--;)if(d[e]==c)return!0}function e(a){var b,c,d,e;return b=a.attributes,c=b.type,d=b.value,e=b.name,c&&"radio"===c.value&&d&&e.interpolator&&d.value===e.interpolator.value?!0:void 0}function f(a){var b=a.toString();return b?" "+b:""}var g;return g=function(){var b,g;return b="<"+(this.template.y?"!DOCTYPE":this.template.e),b+=this.attributes.map(f).join(""),"option"===this.name&&d(this)&&(b+=" selected"),"input"===this.name&&e(this)&&(b+=" checked"),b+=">","textarea"===this.name&&void 0!==this.getAttribute("value")?b+=c(this.getAttribute("value")):void 0!==this.getAttribute("contenteditable")&&(b+=this.getAttribute("value")),this.fragment&&(g="script"!==this.name&&"style"!==this.name,b+=this.fragment.toString(g)),a.test(this.template.e)||(b+="</"+this.template.e+">"),b}}(ef,g,yc),gf=function(a){return function(b){b.select&&a(b.select.options,b)}}(n),hf=function(a){function b(a){a.unbind()}var c;return c=function(){this.fragment&&this.fragment.unbind(),this.binding&&this.binding.unbind(),this.eventHandlers&&this.eventHandlers.forEach(b),"option"===this.name&&a(this),this.attributes.forEach(b)}}(gf),jf=function(a,b){function c(a){var b,c,d;for(d=a.liveQueries.length;d--;)b=a.liveQueries[d],c=b.selector,b._remove(a.node)}var d;return d=function(d){var e,f;if("option"===this.name?this.detach():d&&a.detachWhenReady(this),this.fragment&&this.fragment.unrender(!1),(e=this.binding)&&(this.binding.unrender(),this.node._ractive.binding=null,f=this.root._twowayBindings[e.keypath],f.splice(f.indexOf(e),1)),this.eventHandlers&&this.eventHandlers.forEach(function(a){return a.unrender()}),this.decorator&&this.decorator.teardown(),this.root.transitionsEnabled&&this.outro){var g=new b(this,this.outro,!1);a.registerTransition(g),a.scheduleTask(function(){return g.start()})}this.liveQueries&&c(this),this.node.id&&delete this.root.nodes[this.node.id]}}(v,cf),kf=function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=function(a){this.init(a)};return p.prototype={bubble:a,detach:b,find:c,findAll:d,findAllComponents:e,findComponent:f,findNextNode:g,firstNode:h,getAttribute:i,init:j,rebind:k,render:l,toString:m,unbind:n,unrender:o},p}(vd,wd,xd,yd,zd,Ad,Bd,Cd,Dd,Le,Oe,df,ff,hf,jf),lf=function(){function a(a,b){var c=d.exec(b)[0];return null===a||c.length<a.length?c:a}var b,c=/^\s*$/,d=/^\s*/;return b=function(b){var d,e,f,g;return d=b.split("\n"),e=d[0],void 0!==e&&c.test(e)&&d.shift(),f=d[d.length-1],void 0!==f&&c.test(f)&&d.pop(),g=d.reduce(a,null),g&&(b=d.map(function(a){return a.replace(g,"")}).join("\n")),b}}(),mf=function(a,b,c,d){function e(d,e){var f=b.registries.partials,g=f.findInstance(d,e);if(g){var h,i=g.partials[e];if("function"==typeof i&&(h=i.bind(g),h.isOwner=g.partials.hasOwnProperty(e),i=h(g.data,c)),!i)return void a.warn({debug:d.debug,message:"noRegistryFunctionReturn",args:{registry:"partial",name:e}});if(!c.isParsed(i)){var j=c.parse(i,c.getParseOptions(g));j.p&&a.warn({debug:d.debug,message:"noNestedPartials",args:{rname:e}});var k=h?g:f.findOwner(g,e);k.partials[e]=i=j.t}return h&&(i._fn=h),i.v?i.t:i}}var f;return f=function(b,f){var g;if(g=e(b,f))return g;if(g=c.fromId(f,{noThrow:!0})){g=d(g);var h=c.parse(g,c.getParseOptions(b));return b.partials[f]=h.t}return a.error({debug:b.debug,message:"noTemplateForPartial",args:{name:f}}),[]}}(Hc,bb,W,lf),nf=function(a,b){var c;return b?c=a.split("\n").map(function(a,c){return c?b+a:a}).join("\n"):a},of=function(a,b,c,d){var e,f;return d.push(function(){f=d.Fragment}),e=function(c){var d,e=this.parentFragment=c.parentFragment;if(this.type=a.PARTIAL,this.name=c.template.r,this.index=c.index,this.root=e.root,!c.template.r)throw new Error("Partials must have a static reference (no expressions). This may change in a future version of Ractive.");d=b(e.root,c.template.r),this.fragment=new f({template:d,root:e.root,owner:this,pElement:e.pElement})},e.prototype={bubble:function(){this.parentFragment.bubble()},firstNode:function(){return this.fragment.firstNode()},findNextNode:function(){return this.parentFragment.findNextNode(this)},detach:function(){return this.fragment.detach()},render:function(){return this.fragment.render()},unrender:function(a){this.fragment.unrender(a)},rebind:function(a,b,c,d){return this.fragment.rebind(a,b,c,d)},unbind:function(){this.fragment.unbind()},toString:function(b){var d,e,f,g;return d=this.fragment.toString(b),e=this.parentFragment.items[this.index-1],e&&e.type===a.TEXT?(f=e.text.split("\n").pop(),(g=/^\s+$/.exec(f))?c(d,g[0]):d):d},find:function(a){return this.fragment.find(a)},findAll:function(a,b){return this.fragment.findAll(a,b)},findComponent:function(a){return this.fragment.findComponent(a)},findAllComponents:function(a,b){return this.fragment.findAllComponents(a,b)},getValue:function(){return this.fragment.getValue()}},e}(Yb,mf,nf,e),pf=function(a,b,c){var d;return c.push(function(){d=c.Ractive}),function e(c,d){var f,g=a.registries.components.findInstance(c,d);if(g&&(f=g.components[d],!f._parent)){var h=f.bind(g);if(h.isOwner=g.components.hasOwnProperty(d),f=h(g.data),!f)return void b.warn({debug:c.debug,message:"noRegistryFunctionReturn",args:{registry:"component",name:d}});"string"==typeof f&&(f=e(c,f)),f._fn=h,g.components[d]=f}return f}}(bb,Hc,e),qf=function(){return this.instance.fragment.detach()},rf=function(a){return this.instance.fragment.find(a)},sf=function(a,b){return this.instance.fragment.findAll(a,b)},tf=function(a,b){b._test(this,!0),this.instance.fragment&&this.instance.fragment.findAllComponents(a,b)},uf=function(a){return a&&a!==this.name?this.instance.fragment?this.instance.fragment.findComponent(a):null:this.instance},vf=function(){return this.parentFragment.findNextNode(this)},wf=function(){return this.rendered?this.instance.fragment.firstNode():null},xf=function(a,b){var c,d;return b.push(function(){c=b.Fragment}),d=function(a,b,d){this.parentFragment=a.parentFragment,this.component=a,this.key=b,this.fragment=new c({template:d,root:a.root,owner:this}),this.value=this.fragment.getValue()},d.prototype={bubble:function(){this.dirty||(this.dirty=!0,a.addView(this))},update:function(){var b=this.fragment.getValue();this.component.instance.viewmodel.set(this.key,b),a.addViewmodel(this.component.instance.viewmodel),this.value=b,this.dirty=!1},rebind:function(a,b,c,d){this.fragment.rebind(a,b,c,d)},unbind:function(){this.fragment.unbind()}},d}(v,e),yf=function(a,b){var c=function(c,d,e,f){var g=this;this.root=c.root,this.parentFragment=c.parentFragment,this.ready=!1,this.hash=null,this.resolver=new a(this,e,function(a){g.binding||(g.binding=c.bindings[g.hash])?(c.bindings[g.hash]=null,g.binding.rebind(a),g.hash=a+"="+d,c.bindings[g.hash]):g.ready?b(c,c.root,a,d):f.push({childKeypath:d,parentKeypath:a}),g.value=c.root.viewmodel.get(a)})};return c.prototype={rebind:function(a,b,c,d){this.resolver.rebind(a,b,c,d)},unbind:function(){this.resolver.unbind()}},c}(Nc,s),zf=function(a,b,c,d,e){function f(f,g,h,i){var j,k,l,m,n,o;if(l=f.root,m=f.parentFragment,"string"==typeof h)return k=b(h),k?k.value:h;if(null===h)return!0;if(1===h.length&&h[0].t===a.INTERPOLATOR){if(h[0].r)return m.indexRefs&&void 0!==m.indexRefs[o=h[0].r]?(f.indexRefBindings[o]=g,m.indexRefs[o]):(n=c(l,h[0].r,m)||h[0].r,i.push({childKeypath:g,parentKeypath:n}),l.viewmodel.get(n));if(h[0].rx)return j=new e(f,g,h[0].rx,i),f.complexParameters.push(j),j.ready=!0,j.value}return j=new d(f,g,h),f.complexParameters.push(j),j.value}var g;return g=function(a,b,c,d){var e,g,h={};a.complexParameters=[];for(e in c)c.hasOwnProperty(e)&&(g=f(a,e,c[e],d),(void 0!==g||void 0===b[e])&&(h[e]=g));return h}}(Yb,wc,t,xf,yf),Af=function(a){return function(b,c,d,e){var f,g,h,i;return g=b.parentFragment,i=b.root,h={content:e||[]},c.defaults.el&&a.warn({debug:i.debug,message:"defaultElSpecified",args:{name:b.name}}),f=new c({el:null,append:!0,data:d,partials:h,magic:i.magic||c.defaults.magic,modifyArrays:i.modifyArrays,_parent:i,_component:b,adapt:i.adapt,"yield":{template:e,instance:i}})}}(Hc),Bf=function(a){return function(b,c){c.forEach(function(c){var d,e;a(b,b.root,c.parentKeypath,c.childKeypath),d=b.instance.viewmodel.get(c.childKeypath),e=b.root.viewmodel.get(c.parentKeypath),void 0!==d&&void 0===e&&b.root.viewmodel.set(c.parentKeypath,d)})}}(s),Cf=function(a,b,c){function d(a,d,e,f){"string"!=typeof f&&c.error({debug:d.debug,message:"noComponentEventArguments"}),a.on(e,function(){var a,c;return arguments.length&&arguments[0].node&&(a=Array.prototype.shift.call(arguments)),c=Array.prototype.slice.call(arguments),b(d,f,{event:a,args:c}),!1})}var e,f;return a.push(function(){f=a.Fragment}),e=function(a,b){var c;for(c in b)b.hasOwnProperty(c)&&d(a.instance,a.root,c,b[c])}}(e,m,Hc),Df=function(a){var b,c;for(b=a.root;b;)(c=b._liveComponentQueries["_"+a.name])&&c.push(a.instance),b=b._parent},Ef=function(a,b,c,d,e,f,g){return function(h,i){var j,k,l,m;if(j=this.parentFragment=h.parentFragment,k=j.root,this.root=k,this.type=a.COMPONENT,this.name=h.template.e,this.index=h.index,this.indexRefBindings={},this.bindings=[],this.yielder=null,!i)throw new Error('Component "'+this.name+'" not found');m=[],l=c(this,i.defaults.data||{},h.template.a,m),d(this,i,l,h.template.f),e(this,m),f(this,h.template.v),(h.template.t1||h.template.t2||h.template.o)&&b('The "intro", "outro" and "decorator" directives have no effect on components'),g(this)}}(Yb,L,zf,Af,Bf,Cf,Df),Ff=function(a,b){return function(c,d,e,f){function g(a){a.rebind(c,d,e,f)}var h,i,j=this.instance,k=j._parent;this.bindings.forEach(function(a){var c;a.root===k&&(c=b(a.keypath,e,f))&&a.rebind(c)}),this.complexParameters.forEach(g),this.yielder&&g(this.yielder),(h=this.indexRefBindings[c])&&(a.addViewmodel(j.viewmodel),j.viewmodel.set(h,d)),(i=this.root._liveComponentQueries["_"+this.name])&&i._makeDirty()}}(v,Gc),Gf=function(){var a=this.instance;return a.render(this.parentFragment.getNode()),this.rendered=!0,a.fragment.detach()},Hf=function(){return this.instance.fragment.toString()},If=function(){function a(a){a.unbind()}function b(a){var b,c;b=a.root;do(c=b._liveComponentQueries["_"+a.name])&&c._remove(a);while(b=b._parent)}var c;return c=function(){this.complexParameters.forEach(a),this.bindings.forEach(a),b(this),this.instance.fragment.unbind()}}(),Jf=function(a){return function(b){a(this.instance,"teardown",{reserved:!0}),this.shouldDestroy=b,this.instance.unrender()}}(m),Kf=function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=function(a,b){this.init(a,b)};return n.prototype={detach:a,find:b,findAll:c,findAllComponents:d,findComponent:e,findNextNode:f,firstNode:g,init:h,rebind:i,render:j,toString:k,unbind:l,unrender:m},n}(qf,rf,sf,tf,uf,vf,wf,Ef,Ff,Gf,Hf,If,Jf),Lf=function(a,b){var c=function(b){this.type=a.COMMENT,this.value=b.template.c};return c.prototype={detach:b,firstNode:function(){return this.node},render:function(){return this.node||(this.node=document.createComment(this.value)),this.node},toString:function(){return"<!--"+this.value+"-->"},unrender:function(a){a&&this.node.parentNode.removeChild(this.node)}},c}(Yb,Ac),Mf=function(a){var b;a.push(function(){b=a.Fragment});var c=function(a){var c,d;if(c=a.parentFragment.root,this.component=d=c.component,this.surrogateParent=a.parentFragment,this.parentFragment=d.parentFragment,d.yielder)throw new Error("A component template can only have one {{yield}} declaration at a time");this.fragment=new b({owner:this,root:c.yield.instance,template:c.yield.template}),d.yielder=this};return c.prototype={detach:function(){return this.fragment.detach()},find:function(a){return this.fragment.find(a)},findAll:function(a,b){return this.fragment.findAll(a,b)},findComponent:function(a){return this.fragment.findComponent(a)},findAllComponents:function(a,b){return this.fragment.findAllComponents(a,b)},findNextNode:function(){return this.surrogateParent.findNextNode(this)},firstNode:function(){return this.fragment.firstNode()},getValue:function(a){return this.fragment.getValue(a)},render:function(){return this.fragment.render()},unbind:function(){this.fragment.unbind()},unrender:function(a){this.fragment.unrender(a),this.component.yielder=void 0},rebind:function(a,b,c,d){this.fragment.rebind(a,b,c,d)},toString:function(){return this.fragment.toString()}},c}(e),Nf=function(a,b,c,d,e,f,g,h,i,j,k){return function(l){if("string"==typeof l.template)return new b(l);switch(l.template.t){case a.INTERPOLATOR:return"yield"===l.template.r?new k(l):new c(l);case a.SECTION:return new d(l);case a.TRIPLE:return new e(l);case a.ELEMENT:var m;return(m=h(l.parentFragment.root,l.template.e))?new i(l,m):new f(l);case a.PARTIAL:return new g(l);case a.COMMENT:return new j(l);default:throw new Error("Something very strange happened. Please file an issue at https://github.com/ractivejs/ractive/issues. Thanks!")}}}(Yb,Bc,Sc,hd,ud,kf,of,pf,Kf,Lf,Mf),Of=function(a,b,c){return function(d){var e,f,g,h=this;if(this.owner=d.owner,e=this.parent=this.owner.parentFragment,this.root=d.root,this.pElement=d.pElement,this.context=d.context,this.owner.type===a.SECTION&&(this.index=d.index),e&&(f=e.indexRefs)){this.indexRefs=b(null);for(g in f)this.indexRefs[g]=f[g]}this.priority=e?e.priority+1:1,d.indexRef&&(this.indexRefs||(this.indexRefs={}),this.indexRefs[d.indexRef]=d.index),"string"==typeof d.template?d.template=[d.template]:d.template||(d.template=[]),this.items=d.template.map(function(a,b){return c({parentFragment:h,pElement:d.pElement,template:a,index:b})}),this.value=this.argsList=null,this.dirtyArgs=this.dirtyValue=!0,this.inited=!0}}(Yb,S,Nf),Pf=function(a){return function(b,c,d,e){a(this,"context",d,e),this.indexRefs&&void 0!==this.indexRefs[b]&&(this.indexRefs[b]=c),this.items.forEach(function(a){a.rebind&&a.rebind(b,c,d,e)})}}(Ne),Qf=function(){var a;return 1===this.items.length?a=this.items[0].render():(a=document.createDocumentFragment(),this.items.forEach(function(b){a.appendChild(b.render())})),this.rendered=!0,a},Rf=function(a){return this.items?this.items.map(function(b){return b.toString(a)}).join(""):""},Sf=function(){function a(a){a.unbind&&a.unbind()}var b;return b=function(){this.items.forEach(a)}}(),Tf=function(a){if(!this.rendered)throw new Error("Attempted to unrender a fragment that was not rendered");this.items.forEach(function(b){return b.unrender(a)})},Uf=function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){var r=function(a){this.init(a)};return r.prototype={bubble:a,detach:b,find:c,findAll:d,findAllComponents:e,findComponent:f,findNextNode:g,firstNode:h,getNode:i,getValue:j,init:k,rebind:l,render:m,toString:n,unbind:o,unrender:p},q.Fragment=r,r}(Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,xc,Of,Pf,Qf,Rf,Sf,Tf,e),Vf=function(a,b,c,d){var e=["template","partials","components","decorators","events"];return function(f,g){var h,i,j,k,l;if("function"!=typeof f||g?f=f||{}:(g=f,f={}),"object"!=typeof f)throw new Error("The reset method takes either no arguments, or an object containing new data");for((i=this.viewmodel.wrapped[""])&&i.reset?i.reset(f)===!1&&(this.data=f):this.data=f,j=d.reset(this),k=j.length;k--;)if(e.indexOf(j[k])>-1){l=!0;break}if(l){var m;this.viewmodel.mark(""),(m=this.component)&&(m.shouldDestroy=!0),this.unrender(),m&&(m.shouldDestroy=!1),this.fragment.template!==this.template&&(this.fragment.unbind(),this.fragment=new c({template:this.template,root:this,owner:this})),h=this.render(this.el,this.anchor)}else h=b.start(this,!0),this.viewmodel.mark(""),b.end();return a(this,"reset",{args:[f]}),g&&h.then(g),h}}(m,v,Uf,bb),Wf=function(a,b){return function(c){var d,e;a.template.init(null,this,{template:c}),d=this.transitionsEnabled,this.transitionsEnabled=!1,(e=this.component)&&(e.shouldDestroy=!0),this.unrender(),e&&(e.shouldDestroy=!1),this.fragment.unbind(),this.fragment=new b({template:this.template,root:this,owner:this}),this.render(this.el,this.anchor),this.transitionsEnabled=d}}(bb,Uf),Xf=function(a){return a("reverse")}(Kb),Yf=function(a,b,c,d){var e=/\*/;return function(f,g,h){var i,j,k=this;if(j=a.start(this,!0),b(f)){i=f,h=g;for(f in i)i.hasOwnProperty(f)&&(g=i[f],f=c(f),this.viewmodel.set(f,g))}else f=c(f),e.test(f)?d(this,f).forEach(function(a){k.viewmodel.set(a,g)}):this.viewmodel.set(f,g);return a.end(),h&&j.then(h.bind(this)),j}}(v,h,G,zb),Zf=function(a){return a("shift")}(Kb),$f=function(a){return a("sort")}(Kb),_f=function(a){return a("splice")}(Kb),ag=function(a){return function(b,c){return a(this,b,void 0===c?-1:-c)}}(E),bg=function(a,b,c){return function(d){var e;return a(this,"teardown"),this.fragment.unbind(),this.viewmodel.teardown(),this.rendered&&this.el.__ractive_instances__&&b(this.el.__ractive_instances__,this),e=this.rendered?this.unrender():c.resolve(),d&&e.then(d.bind(this)),e}}(m,n,o),cg=function(a){return function(b,c){var d;return"string"!=typeof b&&a.errorOnly({debug:this.debug,messsage:"badArguments",arg:{arguments:b}}),d=this.get(b),this.set(b,!d,c)}}(Hc),dg=function(){return this.fragment.toString(!0)},eg=function(a,b,c){return function(){var d,e,f=this;if(!this.rendered)throw new Error("ractive.unrender() was called on a Ractive instance that was not rendered");for(d=b.start(this,!0),e=!this.component||this.component.shouldDestroy,e=e||this.shouldDestroy,this.constructor.css&&d.then(function(){c.remove(f.constructor)});this._animations[0];)this._animations[0].stop();return this.fragment.unrender(e),this.rendered=!1,a(this.el.__ractive_instances__,this),b.end(),d}}(n,v,Nb),fg=function(a){return a("unshift")}(Kb),gg=function(a,b){return function(c,d){var e;return"function"==typeof c?(d=c,c=""):c=c||"",e=b.start(this,!0),this.viewmodel.mark(c),b.end(),a(this,"update",{args:[c]}),d&&e.then(d.bind(this)),e}}(m,v),hg=function(a,b){function c(d,e,f,g){var h,i,j,k,l,m,n=[];if(h=d._twowayBindings[e],h&&(j=h.length))for(;j--;)k=h[j],(!k.radioName||k.element.node.checked)&&(k.checkboxName?n[k.keypath]||k.changed()||(n.push(k.keypath),n[k.keypath]=k):(l=k.attribute.value,m=k.getValue(),a(l,m)||b(l,m)||(f[e]=m)));if(n.length&&n.forEach(function(b){var c,d,e;c=n[b],d=c.attribute.value,e=c.getValue(),a(d,e)||(f[b]=e)}),g&&(i=d.viewmodel.depsMap["default"][e]))for(j=i.length;j--;)c(d,i[j],f,g)}var d;return d=function(a,b){var d;return"string"!=typeof a&&(a="",b=!0),c(this,a,d={},b),this.set(d)}}(ne,r),ig=function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F){return{add:a,animate:b,detach:c,find:d,findAll:e,findAllComponents:f,findComponent:g,fire:h,get:i,insert:j,merge:k,observe:l,off:m,on:n,pop:o,push:p,render:q,reset:r,resetTemplate:s,reverse:t,set:u,shift:v,sort:w,splice:x,subtract:y,teardown:z,toggle:A,toHTML:B,unrender:C,unshift:D,update:E,updateModel:F}}(F,eb,fb,gb,qb,rb,sb,tb,ub,wb,xb,Db,Gb,Hb,Lb,Mb,Ob,Vf,Wf,Xf,Yf,Zf,$f,_f,ag,bg,cg,dg,eg,fg,gg,hg),jg=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b,c;return b=16*Math.random()|0,c="x"==a?b:3&b|8,c.toString(16)})},kg=function(){var a=0;return function(){return"r-"+a++}}(),lg=function(a,b,c,d){var e=a.root,f=a.keypath;return"sort"===c||"reverse"===c?void e.viewmodel.set(f,b):void(d&&e.viewmodel.splice(f,d))},mg=function(a,b,c,d,e){var f,g,h,i=[],j=["pop","push","reverse","shift","sort","splice","unshift"];return j.forEach(function(f){var g=function(){var b,g,h,i,j;for(b=c(this,f,Array.prototype.slice.call(arguments)),g=d(this,b),h=Array.prototype[f].apply(this,arguments),this._ractive.setting=!0,j=this._ractive.wrappers.length;j--;)i=this._ractive.wrappers[j],a.start(i.root),e(i,this,f,g),a.end();return this._ractive.setting=!1,h};b(i,f,{value:g})}),f={},f.__proto__?(g=function(a){a.__proto__=i},h=function(a){a.__proto__=Array.prototype}):(g=function(a){var c,d;for(c=j.length;c--;)d=j[c],b(a,d,{value:i[d],configurable:!0})},h=function(a){var b;for(b=j.length;b--;)delete a[j[b]]}),g.unpatch=h,g}(v,C,Ib,Jb,lg),ng=function(a,b,c){var d,e,f;return d={filter:function(a){return b(a)&&(!a._ractive||!a._ractive.setting)},wrap:function(a,b,c){return new e(a,b,c)}},e=function(b,d,e){this.root=b,this.value=d,this.keypath=e,d._ractive||(a(d,"_ractive",{value:{wrappers:[],instances:[],setting:!1},configurable:!0}),c(d)),d._ractive.instances[b._guid]||(d._ractive.instances[b._guid]=0,d._ractive.instances.push(b)),d._ractive.instances[b._guid]+=1,d._ractive.wrappers.push(this)},e.prototype={get:function(){return this.value},teardown:function(){var a,b,d,e,g;if(a=this.value,b=a._ractive,d=b.wrappers,e=b.instances,b.setting)return!1;if(g=d.indexOf(this),-1===g)throw new Error(f);if(d.splice(g,1),d.length){if(e[this.root._guid]-=1,!e[this.root._guid]){if(g=e.indexOf(this.root),-1===g)throw new Error(f); e.splice(g,1)}}else delete a._ractive,c.unpatch(this.value)}},f="Something went wrong in a rather interesting way",d}(C,g,mg),og=function(a,b){var c,d;return a&&(c={filter:function(c,d,e){return a.filter(c,d,e)&&b.filter(c)},wrap:function(a,b,c){return new d(a,b,c)}},d=function(c,d,e){this.value=d,this.magic=!0,this.magicWrapper=a.wrap(c,d,e),this.arrayWrapper=b.wrap(c,d,e)},d.prototype={get:function(){return this.value},teardown:function(){this.arrayWrapper.teardown(),this.magicWrapper.teardown()},reset:function(a){return this.magicWrapper.reset(a)}}),c}(x,ng),pg=function(a,b,c,d){function e(a,b){var c,d={};if(!b)return a;b+=".";for(c in a)a.hasOwnProperty(c)&&(d[b+c]=a[c]);return d}function f(a){var b;return h[a]||(b=a?a+".":"",h[a]=function(c,d){var f;return"string"==typeof c?(f={},f[b+c]=d,f):"object"==typeof c?b?e(c,a):c:void 0}),h[a]}var g,h={};return g=function(e,g){var h,i,j,k,l=this.ractive;for(h=l.adapt.length,i=0;h>i;i+=1){if(j=l.adapt[i],"string"==typeof j){var m=a.registries.adaptors.find(l,j);if(!m)throw new Error('Missing adaptor "'+j+'"');j=l.adapt[i]=m}if(j.filter(g,e,l))return k=this.wrapped[e]=j.wrap(l,g,e,f(e)),k.value=g,g}return l.magic?d.filter(g,e,l)?this.wrapped[e]=d.wrap(l,g,e):c.filter(g,e,l)&&(this.wrapped[e]=c.wrap(l,g,e)):l.modifyArrays&&b.filter(g,e,l)&&(this.wrapped[e]=b.wrap(l,g,e)),g}}(bb,ng,x,og),qg=function(a){var b,c,d,e,f=[""];for(b=a.length;b--;)for(c=a[b],d=c.split(".");d.length>1;)d.pop(),e=d.join("."),-1===f.indexOf(e)&&f.push(e);return f},rg=function(){function a(a){var b,d,e,f,g,h="";if(!c[a]){for(e=[];h.length<a;)h+=1;for(b=parseInt(h,2),f=function(a){return"1"===a},g=0;b>=g;g+=1){for(d=g.toString(2);d.length<a;)d="0"+d;e[g]=Array.prototype.map.call(d,f)}c[a]=e}return c[a]}var b,c={};return b=function(b){var c,d,e,f;return c=b.split("."),d=a(c.length),e=function(a,b){return a?"*":c[b]},f=d.map(function(a){return a.map(e).join(".")})}}(),sg=function(a){function b(b,e,f){var g;d(b,e),f||(g=a(e),g.forEach(function(a){c(b,a,e)}))}function c(a,b,e){var g,h,i;g=a.depsMap.patternObservers,h=g[b],h&&h.forEach(function(b){var g=f.exec(b)[0];i=e?e+"."+g:g,d(a,i),c(a,b,i)})}function d(a,b){a.patternObservers.forEach(function(a){a.regex.test(b)&&a.update(b)})}var e,f=/[^\.]+$/;return e=b}(rg),tg=function(a,b){function c(a){a.update()}function d(a,b,c){var d,e;(d=f(a,b,c))&&(e=a.get(b),d.forEach(function(a){return a.setValue(e)}))}function e(a,b,c){function d(a){a.forEach(e),a.forEach(g)}function e(b){var d=f(a,b,c);d&&i.push({keypath:b,deps:d})}function g(b){var e;(e=a.depsMap[c][b])&&d(e)}function h(b){var c=a.get(b.keypath);b.deps.forEach(function(a){return a.setValue(c)})}var i=[];d(b),i.forEach(h)}function f(a,b,c){var d=a.deps[c];return d?d[b]:null}function g(a,b){b.forEach(function(b){-1===a.indexOf(b)&&a.push(b)})}var h,i=["observers","default"];return h=function(){var f,h,j,k,l,m=this,n=this,o=[],p={};if(this.changes.length){k=function(a){var b;(b=n.deps.computed[a])&&g(j,b)},l=function(a){var b;k(a),(b=n.depsMap.computed[a])&&b.forEach(l)};do f=this.changes,g(o,f),this.changes=[],j=[],h=a(f),h.forEach(k),f.forEach(l),j.forEach(c);while(this.changes.length);return h=a(o),this.patternObservers.length&&(h.forEach(function(a){return b(m,a,!0)}),o.forEach(function(a){return b(m,a)})),i.forEach(function(a){m.deps[a]&&(h.forEach(function(b){return d(m,b,a)}),e(m,o,a))}),o.forEach(function(a){p[a]=m.get(a)}),this.implicitChanges={},p}}}(qg,sg),ug=function(){this.capturing=!0,this.captured=[]},vg=function(a,b){var c,d,e;if(b||(d=this.wrapped[a])&&d.teardown()!==!1&&(this.wrapped[a]=null),(e=this.computations[a])&&e.compute(),this.cache[a]=void 0,c=this.cacheMap[a])for(;c.length;)this.clearCache(c.pop())},wg={FAILED_LOOKUP:!0},xg=function(a,b){var c={},d=function(a,d){this.viewmodel=a,this.root=a.ractive,this.ref=d,this.parentFragment=c,a.unresolvedImplicitDependencies[d]=!0,a.unresolvedImplicitDependencies.push(this),b.addUnresolved(this)};return d.prototype={resolve:function(){this.viewmodel.mark(this.ref),this.viewmodel.unresolvedImplicitDependencies[this.ref]=!1,a(this.viewmodel.unresolvedImplicitDependencies,this)},teardown:function(){b.removeUnresolved(this)}},d}(n,v),yg=function(a,b){function c(b,c){var d,e,f,g,h,i,j;return d=c.split("."),e=d.pop(),f=d.join("."),g=b.get(f),(j=b.wrapped[f])&&(g=j.get()),null!==g&&void 0!==g?((h=b.cacheMap[f])?-1===h.indexOf(c)&&h.push(c):b.cacheMap[f]=[c],"object"!=typeof g||e in g?(i=g[e],b.adapt(c,i,!1),b.cache[c]=i,i):b.cache[c]=a):void 0}var d,e={};return d=function(d){var f=arguments[1];void 0===f&&(f=e);var g,h,i,j,k=this.ractive,l=this.cache;return void 0===l[d]?((h=this.computations[d])?g=h.value:(i=this.wrapped[d])?g=i.value:d?g=(j=this.evaluators[d])?j.value:c(this,d):(this.adapt("",k.data),g=k.data),l[d]=g):g=l[d],f.evaluateWrapped&&(i=this.wrapped[d])&&(g=i.get()),f.capture&&this.capturing&&-1===this.captured.indexOf(d)&&(this.captured.push(d),g===a&&this.unresolvedImplicitDependencies[d]!==!0&&new b(this,d)),g===a?void 0:g}}(wg,xg),zg=function(a,b){b&&(this.implicitChanges[a]=!0),-1===this.changes.indexOf(a)&&(this.changes.push(a),this.clearCache(a))},Ag=function(a,b){var c,d,e,f;return c={},d=0,e=a.map(function(a,e){var g,h,i;h=d,i=b.length;do{if(g=b.indexOf(a,h),-1===g)return f=!0,-1;h=g+1}while(c[g]&&i>h);return g===d&&(d+=1),g!==e&&(f=!0),c[g]=!0,g}),e.unchanged=!f,e},Bg=function(a,b,c){function d(b){return"function"==typeof b.merge&&(!b.subtype||b.subtype===a.SECTION_EACH)}function e(a){return JSON.stringify(a)}function f(a){if(a===!0)return e;if("string"==typeof a)return h[a]||(h[a]=function(b){return b[a]}),h[a];if("function"==typeof a)return a;throw new Error("The `compare` option must be a function, or a string representing an identifying field (or `true` to use JSON.stringify)")}var g,h={};return g=function(a,e,g,h){var i,j,k,l,m,n=this;if(this.mark(a),h&&h.compare){k=f(h.compare);try{i=e.map(k),j=g.map(k)}catch(o){if(this.debug)throw o;b("Merge operation: comparison failed. Falling back to identity checking"),i=e,j=g}}else i=e,j=g;l=c(i,j),l.forEach(function(b,c){-1===b&&n.mark(a+"."+c)}),this.set(a,g,!0),(m=this.deps["default"][a])&&m.filter(d).forEach(function(a){return a.merge(l)}),e.length!==g.length&&this.mark(a+".length",!0)}}(Yb,L,Ag),Cg=function(){function a(a,b,c){var d,e,f,g;for(d=b.split(".");d.length;)d.pop(),e=d.join("."),f=a.depsMap[c]||(a.depsMap[c]={}),g=f[e]||(f[e]=[]),void 0===g[b]&&(g[b]=0,g.push(b)),g[b]+=1,b=e}var b;return b=function(b,c){var d=arguments[2];void 0===d&&(d="default");var e,f,g;c.isStatic||(e=this.deps[d]||(this.deps[d]={}),f=e[b]||(e[b]=[]),f.push(c),b&&((g=this.evaluators[b])&&(g.dependants||g.wake(),g.dependants+=1),a(this,b,d)))}}(),Dg=function(){return this.capturing=!1,this.captured},Eg=function(a,b){return function(c,d,e){var f,g,h,i,j,k,l,m;j=this.computations[c],j&&!j.setting&&(j.set(d),d=j.get()),a(this.cache[c],d)||(k=this.wrapped[c],l=this.evaluators[c],k&&k.reset&&(m=k.reset(d)!==!1,m&&(d=k.get())),l&&(l.value=d),j||l||m||(f=c.split("."),g=f.pop(),h=f.join("."),k=this.wrapped[h],k&&k.set?k.set(g,d):(i=k?k.get():this.get(h),i||(i=b(g),this.set(h,i,!0)),i[g]=d)),e?this.clearCache(c):this.mark(c))}}(r,w),Fg=function(a){function b(b){return b.type===a.SECTION&&(!b.subtype||b.subtype===a.SECTION_EACH)&&b.rendered}var c;return c=function(a,c){var d,e,f=this;for(d=c.rangeStart;d<c.rangeEnd;d+=1)f.mark(a+"."+d);c.balance&&f.mark(a+".length",!0),(e=f.deps["default"][a])&&e.filter(b).forEach(function(a){return a.splice(c)})}}(Yb),Gg=function(){var a,b=this;for(Object.keys(this.cache).forEach(function(a){return b.clearCache(a)});a=this.unresolvedImplicitDependencies.pop();)a.teardown()},Hg=function(){function a(a,b,c){var d,e,f,g;for(d=b.split(".");d.length;)d.pop(),e=d.join("."),f=a.depsMap[c],g=f[e],g[b]-=1,g[b]||(g.splice(g.indexOf(b),1),g[b]=void 0),b=e}var b;return b=function(b,c){var d=arguments[2];void 0===d&&(d="default");var e,f,g;if(!c.isStatic){if(e=this.deps[d][b],f=e.indexOf(c),-1===f)throw new Error("Attempted to remove a dependant that was no longer registered! This should not happen. If you are seeing this bug in development please raise an issue at https://github.com/RactiveJS/Ractive/issues - thanks");e.splice(f,1),b&&((g=this.evaluators[b])&&(g.dependants-=1,g.dependants||g.sleep()),a(this,b,d))}}}(),Ig=function(){function a(a){var b="var __ractive=this;return("+a.replace(c,function(a,b){return'__ractive.get("'+b+'")'})+")";return new Function(b)}var b,c=/\$\{([^\}]+)\}/g;return b=function(b){return"function"==typeof b?{get:b}:"string"==typeof b?{get:a(b)}:("object"==typeof b&&"string"==typeof b.get&&(b={get:a(b.get),set:b.set}),b)}}(),Jg=function(a,b,c){var d=function(a,b,c){var d;this.ractive=a,this.viewmodel=a.viewmodel,this.key=b,this.getter=c.get,this.setter=c.set,this.dependencies=[],(d=a.viewmodel.get(b))&&this.set(d),this.update()};return d.prototype={get:function(){return this.compute(),this.value},set:function(a){if(this.setting)return void(this.value=a);if(!this.setter)throw new Error("Computed properties without setters are read-only. (This may change in a future version of Ractive!)");this.setter.call(this.ractive,a)},compute:function(){var b,d,e;b=this.ractive,b.viewmodel.capture();try{this.value=this.getter.call(b)}catch(f){a.warn({debug:b.debug,message:"failedComputation",args:{key:this.key,err:f.message||f}}),d=!0}return e=b.viewmodel.release(),c(this,this.dependencies,e),d?!1:!0},update:function(){var a=this.value;this.compute()&&!b(this.value,a)&&this.ractive.viewmodel.mark(this.key)}},d}(Hc,r,Jc),Kg=function(a,b){return function(c,d){var e,f;for(e in d)f=a(d[e]),c.viewmodel.computations[e]=new b(c,e,f)}}(Ig,Jg),Lg=function(){function a(a){return"string"==typeof a&&(a=[a]),a}var b={lookup:function(a,b){var c,d=a.adapt;if(!d||!d.length)return d;if(b&&Object.keys(b).length&&(c=d.length))for(;c--;){var e=d[c];"string"==typeof e&&(d[c]=b[e]||e)}return d},combine:function(b,c){return b=a(b),c=a(c),b&&b.length?c&&c.length?(b.forEach(function(a){-1===c.indexOf(a)&&c.push(a)}),c):b.slice():c}};return b}(),Mg=function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q;try{Object.defineProperty({},"test",{value:0})}catch(r){q=!0}var s=function(b){this.ractive=b,s.extend(b.constructor,b),this.cache={},this.cacheMap=a(null),this.deps={computed:{},"default":{}},this.depsMap={computed:{},"default":{}},this.patternObservers=[],this.wrapped=a(null),this.evaluators=a(null),this.computations=a(null),this.captured=null,this.unresolvedImplicitDependencies=[],this.changes=[],this.implicitChanges={}};return s.extend=function(a,b){if(b.magic&&q)throw new Error("Getters and setters (magic mode) are not supported in this browser");b.adapt=p.combine(a.prototype.adapt,b.adapt)||[],b.adapt=p.lookup(b,b.adaptors)},s.prototype={adapt:b,applyChanges:c,capture:d,clearCache:e,get:f,mark:g,merge:h,register:i,release:j,set:k,splice:l,teardown:m,unregister:n,compute:function(){o(this.ractive,this.ractive.computed)}},s}(S,pg,tg,ug,vg,yg,zg,Bg,Cg,Dg,Eg,Fg,Gg,Hg,Kg,Lg),Ng=function(a,b,c,d,e,f){function g(a){var b;if(b=c(a.el)){if(b&&!a.append){if(b.__ractive_instances__)try{b.__ractive_instances__.splice(0,b.__ractive_instances__.length).forEach(function(a){return a.teardown()})}catch(d){}b.innerHTML=""}a.render(b,a.append)}}function h(a,c){a._guid=d(),a._subs=b(null),a._config={},a._twowayBindings=b(null),a._animations=[],a.nodes={},a._liveQueries=[],a._liveComponentQueries=[],c._parent&&c._component&&(a._parent=c._parent,a.component=c._component,c._component.instance=a)}var i;return i=function(b){var c=arguments[1];void 0===c&&(c={}),h(b,c),a.init(b.constructor,b,c),b.viewmodel=new e(b),b.viewmodel.compute(),b.template&&(b.fragment=new f({template:b.template,root:b,owner:b})),g(b)}}(bb,S,vb,kg,Mg,Uf),Og=function(a){return function(b,c,d){b.beforeInit&&b.beforeInit(d),a(b,d)}}(Ng),Pg=function(a,b,c,d){function e(b,c,d){for(var e in d)if(!(e in j)&&d.hasOwnProperty(e)){var f=d[e];"function"==typeof f&&(f=a(b,e,f)),c[e]=f}}function f(a){if(!(a.prototype instanceof i))return a;for(var c={};a;)l.forEach(function(b){g(b.useDefaults?a.prototype:a,c,b.name)}),Object.keys(a.prototype).forEach(function(d){if("computed"!==d){var e=a.prototype[d];if(d in c){if("function"==typeof c[d]&&"function"==typeof e&&c[d]._method){var f,g=e._method;g&&(e=e._method),f=b(c[d]._method,e),g&&(f._method=f),c[d]=f}}else c[d]=e._method?e._method:e}}),a=a._parent!==i?a._parent:!1;return c}function g(a,b,c){var d,e=Object.keys(a[c]);e.length&&((d=b[c])||(d=b[c]={}),e.filter(function(a){return!(a in d)}).forEach(function(b){return d[b]=a[c][b]}))}var h,i,j={_parent:!0,_component:!0},k={toPrototype:e,toOptions:f},l=c.registries;return c.keys.forEach(function(a){return j[a]=!0}),d.push(function(){i=d.Ractive}),h=k}(_,O,bb,e),Qg=function(a,b,c,d,e,f,g){return function h(){var i=arguments[0];void 0===i&&(i={});var j,k,l,m=this;return i=g.toOptions(i),j=function(a){e(this,j,a)},k=a(m.prototype),k.constructor=j,l={_guid:{value:c()},defaults:{value:k},extend:{value:h,writable:!0,configurable:!0},_parent:{value:m}},b(j,l),d.extend(m,k,i),f.extend(m,k),g.toPrototype(m.prototype,k,i),j.prototype=k,j}}(S,D,jg,bb,Og,Mg,Pg),Rg=function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n,o;for(n=function(a){l(this,a)},o={extend:{value:j},parse:{value:k},Promise:{value:h},svg:{value:d},magic:{value:e},VERSION:{value:"0.5.7"},adaptors:{writable:!0,value:{}},components:{writable:!0,value:{}},decorators:{writable:!0,value:{}},easing:{writable:!0,value:b},events:{writable:!0,value:{}},interpolators:{writable:!0,value:c},partials:{writable:!0,value:{}},transitions:{writable:!0,value:{}}},f(n,o),n.prototype=i(g,a),n.prototype.constructor=n,n.defaults=n.prototype,m.Ractive=n;m.length;)m.pop()();var p="function";if(typeof Date.now!==p||typeof String.prototype.trim!==p||typeof Object.keys!==p||typeof Array.prototype.indexOf!==p||typeof Array.prototype.forEach!==p||typeof Array.prototype.map!==p||typeof Array.prototype.filter!==p||"undefined"!=typeof window&&typeof window.addEventListener!==p)throw new Error("It looks like you're attempting to use Ractive.js in an older browser. You'll need to use one of the 'legacy builds' in order to continue - see http://docs.ractivejs.org/latest/legacy-builds for more information.");return n}(c,d,j,k,y,D,ig,o,de,Qg,R,Ng,e);"undefined"!=typeof module&&module.exports?module.exports=Rg:"function"==typeof define&&define.amd&&define(function(){return Rg}),a.Ractive=Rg,Rg.noConflict=function(){return a.Ractive=b,Rg}}("undefined"!=typeof window?window:this);
9,525.066667
32,119
0.696639
683806173487a4b0663137e5cacbb8d796a4f841
3,102
js
JavaScript
docs/sidebars.js
jyc5131/plate
d310fb7fe74a4f66e1ae7ebc1ca8b4426a386d29
[ "MIT" ]
96
2019-12-30T03:05:40.000Z
2020-05-29T13:34:56.000Z
docs/sidebars.js
jyc5131/plate
d310fb7fe74a4f66e1ae7ebc1ca8b4426a386d29
[ "MIT" ]
121
2019-12-13T23:02:37.000Z
2020-05-31T22:30:32.000Z
docs/sidebars.js
jyc5131/plate
d310fb7fe74a4f66e1ae7ebc1ca8b4426a386d29
[ "MIT" ]
18
2019-12-12T21:42:59.000Z
2020-05-29T13:35:07.000Z
module.exports = { docs: [ { type: 'category', label: 'Plate', items: ['plate/introduction', 'plate/contributing'], collapsed: false, }, { type: 'category', label: 'Getting Started', items: [ 'getting-started/installation', 'getting-started/basic-editor', 'getting-started/basic-plugins', ], collapsed: false, }, { type: 'category', label: 'Guides', items: [ 'guides/Plate', 'guides/plugins', 'guides/styling', 'guides/store', 'guides/multiple-editors', 'guides/typescript', ], collapsed: false, }, 'playground', { type: 'category', label: 'Plugins', items: [ { type: 'category', label: 'Blocks', items: [ 'plugins/alignment', 'plugins/basic-elements', 'plugins/excalidraw', 'plugins/horizontal-rule', 'plugins/image', 'plugins/indent', 'plugins/indent-list', 'plugins/line-height', 'plugins/list', 'plugins/media-embed', 'plugins/table', ], collapsed: false, }, { type: 'category', label: 'Inline Elements', items: ['plugins/link', 'plugins/combobox', 'plugins/mention'], collapsed: false, }, { type: 'category', label: 'Marks', items: [ 'plugins/basic-marks', 'plugins/font', 'plugins/highlight', 'plugins/kbd', ], collapsed: false, }, { type: 'category', label: 'Decorators', items: ['plugins/find-replace'], collapsed: false, }, { type: 'category', label: 'Utils', items: [ 'plugins/autoformat', 'plugins/exit-break', 'plugins/reset-node', 'plugins/soft-break', 'plugins/single-line', 'plugins/forced-layout', ], collapsed: false, }, { type: 'category', label: 'Serializing', items: [ 'plugins/serializing-html', 'plugins/serializing-md', 'plugins/serializing-csv', 'plugins/serializing-docx', ], collapsed: false, }, ], collapsed: false, }, { type: 'category', label: 'Components', items: [ 'components/balloon-toolbar', 'components/dnd', 'components/placeholder', 'components/plate', ], collapsed: false, }, { type: 'category', label: 'Examples', items: [ 'examples/introduction', 'examples/editable-voids', 'examples/huge-document', 'examples/multi-editors', 'examples/iframe', 'examples/preview-markdown', ], collapsed: false, }, ], };
23.679389
73
0.457124
683870ae61866dd4c6de8c0f0a5d71a476445a66
833
js
JavaScript
packages/material-ui-icons/build/HdrOff.js
marcelovaughan/mfs-ui
5fda90df7123c714e1be018285a9900e911fb861
[ "MIT" ]
null
null
null
packages/material-ui-icons/build/HdrOff.js
marcelovaughan/mfs-ui
5fda90df7123c714e1be018285a9900e911fb861
[ "MIT" ]
null
null
null
packages/material-ui-icons/build/HdrOff.js
marcelovaughan/mfs-ui
5fda90df7123c714e1be018285a9900e911fb861
[ "MIT" ]
null
null
null
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var React = _interopRequireWildcard(require("react")); var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _default = (0, _createSvgIcon["default"])( /*#__PURE__*/React.createElement("path", { d: "M17.5 15v-2h1.1l.9 2H21l-.9-2.1c.5-.2.9-.8.9-1.4v-1c0-.8-.7-1.5-1.5-1.5H16v4.9l1.1 1.1h.4zm0-4.5h2v1h-2v-1zm-4.5 0v.4l1.5 1.5v-1.9c0-.8-.7-1.5-1.5-1.5h-1.9l1.5 1.5h.4zm-3.5-1l-7-7-1.1 1L6.9 9h-.4v2h-2V9H3v6h1.5v-2.5h2V15H8v-4.9l1.5 1.5V15h3.4l7.6 7.6 1.1-1.1-12.1-12z" }), 'HdrOff'); exports["default"] = _default;
41.65
274
0.708283
68388a3ef3bd57dd8989a4ab88196c441db45fba
500
js
JavaScript
node_modules/@polkadot/util/is/observable.js
WestSide44/Module-1
e6a626b22c2b063371c147e31496fa9af89c9dce
[ "MIT" ]
1
2022-01-23T22:18:29.000Z
2022-01-23T22:18:29.000Z
node_modules/@polkadot/util/is/observable.js
WestSide44/Module-1
e6a626b22c2b063371c147e31496fa9af89c9dce
[ "MIT" ]
null
null
null
node_modules/@polkadot/util/is/observable.js
WestSide44/Module-1
e6a626b22c2b063371c147e31496fa9af89c9dce
[ "MIT" ]
null
null
null
// Copyright 2017-2022 @polkadot/util authors & contributors // SPDX-License-Identifier: Apache-2.0 import { isOn } from "./helpers.js"; /** * @name isBObservable * @summary Tests for a `Observable` object instance. * @description * Checks to see if the input object is an instance of `BN` (bn.js). * @example * <BR> * * ```javascript * import { isObservable } from '@polkadot/util'; * * console.log('isObservable', isObservable(...)); * ``` */ export const isObservable = isOn('next');
26.315789
68
0.666
6838dd6a0067261ae884b06ab5ea79bba9386f63
839
js
JavaScript
js/scripts.js
malethr/ping-pong
538923e0af8d68f5c7255fc6d7eb3ff093247756
[ "MIT" ]
null
null
null
js/scripts.js
malethr/ping-pong
538923e0af8d68f5c7255fc6d7eb3ff093247756
[ "MIT" ]
null
null
null
js/scripts.js
malethr/ping-pong
538923e0af8d68f5c7255fc6d7eb3ff093247756
[ "MIT" ]
null
null
null
//Business Logic var userInput = 0; var userValues = []; var pingpong = function (userInput){ for (num=1;num<=userInput;num++){ userValues.push(num); } userValues.forEach(function(value){ if (value % 15 === 0) { userValues[value-1]="pingpong"; } else if (value % 5 === 0) { userValues[value-1]="pong"; } else if (value % 3 === 0) { userValues[value-1]="ping"; } else { userValues = userValues; } }); return userValues; }; // User Interface Logic $(document).ready(function(){ $("#ping-pong").submit(function(event){ event.preventDefault(); userInput = $("#userInput").val(); var result = pingpong(userInput); $("#result").show(); $("form").hide(); result.forEach(function(resultValue){ $("ul").append('<li>'+resultValue+'</li>'); }); }); });
23.971429
49
0.573302
683a264f54d92123f55b4b10bdb340aa13e8a763
3,295
js
JavaScript
.tmp/docs-src/match/hashtag-match.js
4thOffice/autolinker
0d9f72bff47eed35a7beefe057bec1c0ec6b6f1d
[ "MIT" ]
null
null
null
.tmp/docs-src/match/hashtag-match.js
4thOffice/autolinker
0d9f72bff47eed35a7beefe057bec1c0ec6b6f1d
[ "MIT" ]
null
null
null
.tmp/docs-src/match/hashtag-match.js
4thOffice/autolinker
0d9f72bff47eed35a7beefe057bec1c0ec6b6f1d
[ "MIT" ]
null
null
null
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var match_1 = require("./match"); /** * @class Autolinker.match.Hashtag * @extends Autolinker.match.Match * * Represents a Hashtag match found in an input string which should be * Autolinked. * * See this class's superclass ({@link Autolinker.match.Match}) for more * details. */ var HashtagMatch = (function (_super) { tslib_1.__extends(HashtagMatch, _super); /** * @method constructor * @param {Object} cfg The configuration properties for the Match * instance, specified in an Object (map). */ function HashtagMatch(cfg) { var _this = _super.call(this, cfg) || this; /** * @cfg {String} serviceName * * The service to point hashtag matches to. See {@link Autolinker#hashtag} * for available values. */ _this.serviceName = ''; // default value just to get the above doc comment in the ES5 output and documentation generator /** * @cfg {String} hashtag (required) * * The HashtagMatch that was matched, without the '#'. */ _this.hashtag = ''; // default value just to get the above doc comment in the ES5 output and documentation generator _this.serviceName = cfg.serviceName; _this.hashtag = cfg.hashtag; return _this; } /** * Returns a string name for the type of match that this class represents. * For the case of HashtagMatch, returns 'hashtag'. * * @return {String} */ HashtagMatch.prototype.getType = function () { return 'hashtag'; }; /** * Returns the configured {@link #serviceName} to point the HashtagMatch to. * Ex: 'facebook', 'twitter'. * * @return {String} */ HashtagMatch.prototype.getServiceName = function () { return this.serviceName; }; /** * Returns the matched hashtag, without the '#' character. * * @return {String} */ HashtagMatch.prototype.getHashtag = function () { return this.hashtag; }; /** * Returns the anchor href that should be generated for the match. * * @return {String} */ HashtagMatch.prototype.getAnchorHref = function () { var serviceName = this.serviceName, hashtag = this.hashtag; switch (serviceName) { case 'twitter': return 'https://twitter.com/hashtag/' + hashtag; case 'facebook': return 'https://www.facebook.com/hashtag/' + hashtag; case 'instagram': return 'https://instagram.com/explore/tags/' + hashtag; default: // Shouldn't happen because Autolinker's constructor should block any invalid values, but just in case. throw new Error('Unknown service name to point hashtag to: ' + serviceName); } }; /** * Returns the anchor text that should be generated for the match. * * @return {String} */ HashtagMatch.prototype.getAnchorText = function () { return '#' + this.hashtag; }; return HashtagMatch; }(match_1.Match)); exports.HashtagMatch = HashtagMatch; //# sourceMappingURL=hashtag-match.js.map
33.622449
128
0.608194
683a5bcba172fcdfc18fe2c17d1a558e26c61175
7,550
js
JavaScript
src/settings/styles.js
lucaseverett/toolbar-dial-firefox
a599e9a7a6272dd1cd2d8b5187614fa021f2dd93
[ "MIT" ]
16
2018-09-03T14:50:23.000Z
2020-05-16T00:03:26.000Z
src/settings/styles.js
lucaseverett/toolbar-dial-firefox
a599e9a7a6272dd1cd2d8b5187614fa021f2dd93
[ "MIT" ]
12
2018-09-03T14:53:38.000Z
2020-05-16T22:21:57.000Z
src/settings/styles.js
lucaseverett/toolbar-dial-firefox
a599e9a7a6272dd1cd2d8b5187614fa021f2dd93
[ "MIT" ]
5
2018-12-14T15:56:07.000Z
2020-03-02T15:36:39.000Z
import { css } from "@emotion/css"; import scrollbarStyles from "../styles/scrollbars.js"; import { defaultBtn } from "../styles/buttons.js"; import { select } from "../styles/inputs.js"; const switchWidth = 50; const switchPadding = 3; const switchHeight = switchWidth / 2 + switchPadding; const switchRadius = switchHeight / 2; const circleSize = switchHeight - switchPadding * 2; export const styles = css` .color-scheme-light & { --options-background-color: #bdbdbd; --options-text-color: #000; --options-box-shadow: 0 0 0 5px #bdbdbd, 0 0 0 6px #9e9e9e, 0 0 15px rgb(33, 33, 33, 0.5), 8px 8px 20px rgb(33, 33, 33, 0.5); --header-background-color: #bdbdbd; --main-background-color: #e0e0e0; --main-border-color: #9e9e9e; --btn-active-background-color: #bcbcbc; --wallpaper-button-box-shadow-color: #9e9e9e; --setting-wrapper-background-color: #eee; --setting-wrapper-border-color: #bdbdbd; --switch-background-color: #c2c2c2; --switch-before-background-color: #f5f5f5; } .color-scheme-dark & { --options-background-color: #373737; --options-text-color: #e0e0e0; --options-box-shadow: 0 0 0 5px #373737, 0 0 0 6px #484848, 10px 14px 13px rgb(0, 0, 0, 0.6); --header-background-color: #373737; --main-background-color: #424242; --main-border-color: #212121; --btn-active-background-color: #373737; --wallpaper-button-box-shadow-color: #212121; --setting-wrapper-background-color: #484848; --setting-wrapper-border-color: #373737; --switch-background-color: #616161; --switch-before-background-color: #f5f5f5; } font-family: "Roboto", sans-serif; height: 100vh; ${scrollbarStyles} transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, background-image 0.15s ease-in-out, border 0.15s ease-in-out, box-shadow 0.15s ease-in-out; .options-background { height: 100%; } #options { height: 100%; display: flex; flex-flow: column; background-color: var(--options-background-color); color: var(--options-text-color); .color-scheme-dark & { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } } header { padding: 16px 16px 16px 25px; background-color: var(--header-background-color); } header h1 { font-size: 20px; margin: 0; font-weight: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } main { overflow: hidden; display: flex; height: 100%; background-color: var(--main-background-color); border-top: 1px solid var(--main-border-color); .setting-wrapper:last-of-type { padding-bottom: 25px; } } .settings-content { overflow: auto; outline: none; } .background-buttons { margin: 5px 0 20px; & button { ${defaultBtn} display: block; width: 100%; text-align: left; margin: 0 0 1px 0; &.selected { background-color: var(--btn-selected-background-color); } &.focus-visible { z-index: 10; } } } .setting-option.wallpapers { display: flex; flex-wrap: wrap; margin-right: -20px; margin-bottom: -20px; } .wallpaper-button, .wallpaper-button-transparent { outline: none; width: 120px; height: 90px; border-radius: 4px; border: none; cursor: pointer; position: relative; background-size: cover; background-position: center; margin: 0 20px 20px 0; box-shadow: 0 0 0 1px var(--wallpaper-button-box-shadow-color); } .wallpaper-button { &:focus, &:active { box-shadow: 0 0 0 4px #90caf9; } } .wallpaper-button.selected { box-shadow: 0 0 0 4px #1565c0; :focus:not(.focus-visible) { box-shadow: 0 0 0 4px #1565c0; } &.focus-visible { box-shadow: 0 0 0 4px #1565c0, 0 0 0 8px #90caf9; } ::before { background-color: #1565c0; color: #fff; } ::before { position: absolute; top: 50%; left: 50%; content: "L"; height: 24px; width: 24px; padding-top: 2px; margin-left: -12px; margin-top: -12px; border-radius: 50%; transform: scaleX(-1) rotate(-35deg); } } .wallpaper-button-transparent { cursor: initial; } #dark-wallpaper { background-color: #212121; } #light-wallpaper { background-color: #f5f5f5; } #blue-wallpaper { background-color: #bbdefb; } #brown-wallpaper { background-color: #d7ccc8; } #yellow-wallpaper { background-color: #ffe082; } #green-wallpaper { background-color: #b2dfdb; } #pink-wallpaper { background-color: #f8bbd0; } .custom-group { width: 120px; margin: 0 20px 20px 0; } button.custom { ${defaultBtn} width: 100%; } .setting-wrapper { padding: 25px 25px 25px; border-radius: 6px; margin: 25px; border: 1px solid var(--setting-wrapper-border-color); background-color: var(--setting-wrapper-background-color); } .setting-wrapper.setting-group { display: flex; justify-content: space-between; align-items: center; } .setting-title { font-weight: bold; padding-bottom: 10px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } select { ${select}; max-width: 175px; } .setting-option { &.select, &.toggle { margin-left: 20px; } } .setting-option.select { position: relative; } .setting-description { line-height: 1.5; } .switch-wrap { cursor: pointer; width: ${switchWidth}px; height: ${switchHeight}px; display: block; position: relative; border-radius: ${switchRadius}px; } .switch-wrap input { opacity: 0; width: 0; height: 0; &.focus-visible + div { box-shadow: 0 0 0 4px #90caf9; } } .switch { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: ${switchRadius}px; transition: 0.2s; background-color: var(--switch-background-color); } .switch::before { content: ""; position: absolute; left: ${switchPadding}px; bottom: ${switchPadding}px; height: ${circleSize}px; width: ${circleSize}px; border-radius: 50%; transition: 0.2s; background-color: var(--switch-before-background-color); } input:checked + .switch { background-color: #1565c0; } input:checked + .switch::before { transform: translateX(${circleSize}px); } @media (min-width: 797px) { .options-background { display: flex; align-items: center; justify-content: center; } #options { border-radius: 6px; max-height: calc(100vh - 40px); height: initial; box-shadow: var(--options-box-shadow); } main { border-radius: 6px; max-height: 949px; border: 1px solid var(--main-border-color); } .setting-wrapper { width: 732px; } header { padding: 6px 11px 11px 25px; } .background-buttons { display: flex; button { text-align: center; margin: 0 1px 0 0; :not(:first-of-type) { border-top-left-radius: 0; border-bottom-left-radius: 0; } :not(:last-of-type) { border-top-right-radius: 0; border-bottom-right-radius: 0; } :last-of-type { margin-right: 0; } } } } `;
21.820809
74
0.599735
683a912c2f32787ad05972f7e6b2f684ae637681
8,748
js
JavaScript
packages/@pollyjs/adapter/src/index.js
raghanag/pollyjs
fb76078bcd183f7f9a8c1afb415a4bb6e617869b
[ "Apache-2.0" ]
1
2020-05-07T02:42:04.000Z
2020-05-07T02:42:04.000Z
packages/@pollyjs/adapter/src/index.js
doc22940/pollyjs
93afd031b5c804be2931b80a5bcaa7b24110f518
[ "Apache-2.0" ]
null
null
null
packages/@pollyjs/adapter/src/index.js
doc22940/pollyjs
93afd031b5c804be2931b80a5bcaa7b24110f518
[ "Apache-2.0" ]
null
null
null
import { ACTIONS, MODES, EXPIRY_STRATEGIES, PollyError, Serializers, assert, getFactoryId } from '@pollyjs/utils'; import isExpired from './utils/is-expired'; import stringifyRequest from './utils/stringify-request'; import normalizeRecordedResponse from './utils/normalize-recorded-response'; const REQUEST_HANDLER = Symbol(); export default class Adapter { constructor(polly) { this.polly = polly; this.isConnected = false; } static get type() { return 'adapter'; } /* eslint-disable-next-line getter-return */ static get id() { assert('Must override the static `id` getter.'); } get defaultOptions() { return {}; } get options() { return { ...(this.defaultOptions || {}), ...((this.polly.config.adapterOptions || {})[ getFactoryId(this.constructor) ] || {}) }; } get persister() { return this.polly.persister; } connect() { if (!this.isConnected) { this.onConnect(); this.isConnected = true; } } disconnect() { if (this.isConnected) { this.onDisconnect(); this.isConnected = false; } } timeout(pollyRequest, { time }) { const { timing } = pollyRequest.config; if (typeof timing === 'function') { return timing(time); } } async handleRequest(request) { const pollyRequest = this.polly.registerRequest(request); try { pollyRequest.on('identify', (...args) => this.onIdentifyRequest(...args)); await this.onRequest(pollyRequest); await pollyRequest.init(); await this[REQUEST_HANDLER](pollyRequest); if (pollyRequest.aborted) { throw new PollyError('Request aborted.'); } await this.onRequestFinished(pollyRequest); } catch (error) { await this.onRequestFailed(pollyRequest, error); } return pollyRequest; } async [REQUEST_HANDLER](pollyRequest) { const { mode } = this.polly; const { _interceptor: interceptor } = pollyRequest; if (pollyRequest.aborted) { return; } if (pollyRequest.shouldIntercept) { await this.intercept(pollyRequest, interceptor); if (interceptor.shouldIntercept) { return; } } if ( mode === MODES.PASSTHROUGH || pollyRequest.shouldPassthrough || interceptor.shouldPassthrough ) { return this.passthrough(pollyRequest); } this.assert( 'A persister must be configured in order to record and replay requests.', !!this.persister ); if (mode === MODES.RECORD) { return this.record(pollyRequest); } if (mode === MODES.REPLAY) { return this.replay(pollyRequest); } // This should never be reached. If it did, then something screwy happened. this.assert( 'Unhandled request: \n' + stringifyRequest(pollyRequest, null, 2) ); } async passthrough(pollyRequest) { pollyRequest.action = ACTIONS.PASSTHROUGH; return this.onPassthrough(pollyRequest); } async intercept(pollyRequest, interceptor) { pollyRequest.action = ACTIONS.INTERCEPT; await pollyRequest._intercept(interceptor); if (interceptor.shouldIntercept) { return this.onIntercept(pollyRequest, pollyRequest.response); } } async record(pollyRequest) { pollyRequest.action = ACTIONS.RECORD; if ('navigator' in global && !navigator.onLine) { console.warn( '[Polly] Recording may fail because the browser is offline.\n' + `${stringifyRequest(pollyRequest)}` ); } return this.onRecord(pollyRequest); } async replay(pollyRequest) { const { config } = pollyRequest; const recordingEntry = await this.persister.findEntry(pollyRequest); if (recordingEntry) { /* Clone the recording entry so any changes will not actually persist to the stored recording. Note: Using JSON.parse/stringify instead of lodash/cloneDeep since the recording entry is stored as json. */ const clonedRecordingEntry = JSON.parse(JSON.stringify(recordingEntry)); await pollyRequest._emit('beforeReplay', clonedRecordingEntry); if (isExpired(clonedRecordingEntry.startedDateTime, config.expiresIn)) { const message = 'Recording for the following request has expired.\n' + `${stringifyRequest(pollyRequest, null, 2)}`; switch (config.expiryStrategy) { // exit into the record flow if expiryStrategy is "record". case EXPIRY_STRATEGIES.RECORD: return this.record(pollyRequest); // throw an error and exit if expiryStrategy is "error". case EXPIRY_STRATEGIES.ERROR: this.assert(message); break; // log a warning and continue if expiryStrategy is "warn". case EXPIRY_STRATEGIES.WARN: console.warn(`[Polly] ${message}`); break; // throw an error if we encounter an unsupported expiryStrategy. default: this.assert( `Invalid config option passed for "expiryStrategy": "${config.expiryStrategy}"` ); break; } } await this.timeout(pollyRequest, clonedRecordingEntry); pollyRequest.action = ACTIONS.REPLAY; return this.onReplay( pollyRequest, normalizeRecordedResponse(clonedRecordingEntry.response), clonedRecordingEntry ); } if (config.recordIfMissing) { return this.record(pollyRequest); } this.assert( 'Recording for the following request is not found and `recordIfMissing` is `false`.\n' + stringifyRequest(pollyRequest, null, 2) ); } assert(message, ...args) { assert( `[${this.constructor.type}:${getFactoryId(this.constructor)}] ${message}`, ...args ); } onConnect() { this.assert('Must implement the `onConnect` hook.'); } onDisconnect() { this.assert('Must implement the `onDisconnect` hook.'); } /** * @param {PollyRequest} pollyRequest * @returns {Object({ statusCode: number, headers: Object, body: string })} */ async passthroughRequest(/* pollyRequest */) { this.assert('Must implement the `passthroughRequest` hook.'); } /** * Make sure the response from a Polly request is delivered to the * user through the adapter interface. * * Calling `pollyjs.flush()` will await this method. * * @param {PollyRequest} pollyRequest * @param {Error} [error] */ async respondToRequest(/* pollyRequest, error */) {} /** * @param {PollyRequest} pollyRequest */ async onRecord(pollyRequest) { await this.onPassthrough(pollyRequest); if (!pollyRequest.aborted) { await this.persister.recordRequest(pollyRequest); } } /** * @param {PollyRequest} pollyRequest * @param {Object} normalizedResponse The normalized response generated from the recording entry * @param {Object} recordingEntry The entire recording entry */ async onReplay(pollyRequest, normalizedResponse) { await pollyRequest.respond(normalizedResponse); } /** * @param {PollyRequest} pollyRequest * @param {PollyResponse} pollyResponse */ async onIntercept(pollyRequest, pollyResponse) { await pollyRequest.respond(pollyResponse); } /** * @param {PollyRequest} pollyRequest */ async onPassthrough(pollyRequest) { const response = await this.passthroughRequest(pollyRequest); await pollyRequest.respond(response); } /** * @param {PollyRequest} pollyRequest */ async onIdentifyRequest(pollyRequest) { const { identifiers } = pollyRequest; // Serialize the request body so it can be properly hashed for (const type of ['blob', 'formData', 'buffer']) { identifiers.body = await Serializers[type](identifiers.body); } } /** * @param {PollyRequest} pollyRequest */ onRequest() {} /** * @param {PollyRequest} pollyRequest */ async onRequestFinished(pollyRequest) { await this.respondToRequest(pollyRequest); pollyRequest.promise.resolve(); } /** * @param {PollyRequest} pollyRequest * @param {Error} [error] */ async onRequestFailed(pollyRequest, error) { const { aborted } = pollyRequest; error = error || new PollyError('Request failed due to an unknown error.'); try { if (aborted) { await pollyRequest._emit('abort'); } else { await pollyRequest._emit('error', error); } await this.respondToRequest(pollyRequest, error); } catch (e) { // Rethrow any error not handled by `respondToRequest`. throw e; } finally { pollyRequest.promise.reject(error); } } }
25.210375
98
0.640375
683b455c3c329ff5854e16dfd09a075be17b39ad
541
js
JavaScript
web/test/feedback/reducers/paging.js
kuo77122/serverless-survey-forms
66e58e3697a9dd44a0ac2618893e069ef6b4a9eb
[ "MIT" ]
24
2016-04-30T03:06:12.000Z
2021-05-03T23:11:57.000Z
web/test/feedback/reducers/paging.js
kuo77122/serverless-survey-forms
66e58e3697a9dd44a0ac2618893e069ef6b4a9eb
[ "MIT" ]
96
2016-04-26T14:54:51.000Z
2019-08-14T17:17:12.000Z
web/test/feedback/reducers/paging.js
kuo77122/serverless-survey-forms
66e58e3697a9dd44a0ac2618893e069ef6b4a9eb
[ "MIT" ]
12
2016-05-25T06:58:59.000Z
2022-01-01T12:46:49.000Z
import expect from 'expect'; import paging from '../../../src/reducers/paging'; import * as types from '../../../src/constants/ActionTypes'; describe('[Feedback] paging reducer', () => { it('should handle paging state for default value', () => { expect( paging(undefined, { type: '' }) ).toEqual(1); }); it('should handle paging state', () => { expect( paging(1, { type: types.GO_TO_PAGE, index: 2 }) ).toEqual(2); }); });
25.761905
62
0.495379
683b6c94fc899a80d8500d91bb73ec7bd8e56fa7
448
js
JavaScript
.storybook/preview.js
heath-hamilton/microsoft-teams-ui-component-library
e16a9375eb71bdb5129c832cd2ca051aba0ec1af
[ "MIT" ]
null
null
null
.storybook/preview.js
heath-hamilton/microsoft-teams-ui-component-library
e16a9375eb71bdb5129c832cd2ca051aba0ec1af
[ "MIT" ]
null
null
null
.storybook/preview.js
heath-hamilton/microsoft-teams-ui-component-library
e16a9375eb71bdb5129c832cd2ca051aba0ec1af
[ "MIT" ]
null
null
null
import {withKnobs} from "@storybook/addon-knobs"; import {withA11y} from "@storybook/addon-a11y"; import {withStorybookTheme} from '../src/lib/withStorybookTheme' export const parameters = { options: { storySort: { order: ["UI Templates", "Components"], }, }, // Remove an additional padding in canvas body (Added in v.6) layout: "fullscreen", }; export const decorators = [ withKnobs, withA11y, withStorybookTheme, ]
22.4
64
0.685268
683b7040122c9e41530cce53e1fc9f4e56df5ed9
500
js
JavaScript
src/@newrelic/gatsby-theme-newrelic/icons/newrelic/alert.js
RavitejaSurampudi/developer-website
8012ed93574d6a7ac2ea66e4e695934f95c6a3a4
[ "Apache-2.0" ]
23
2020-06-30T16:58:24.000Z
2022-03-11T19:14:25.000Z
src/@newrelic/gatsby-theme-newrelic/icons/newrelic/alert.js
RavitejaSurampudi/developer-website
8012ed93574d6a7ac2ea66e4e695934f95c6a3a4
[ "Apache-2.0" ]
1,910
2020-06-29T23:47:00.000Z
2022-03-30T09:34:56.000Z
src/@newrelic/gatsby-theme-newrelic/icons/newrelic/alert.js
RavitejaSurampudi/developer-website
8012ed93574d6a7ac2ea66e4e695934f95c6a3a4
[ "Apache-2.0" ]
113
2020-06-30T13:48:02.000Z
2022-03-31T13:12:01.000Z
import React from 'react'; import NewRelicSVG from '../../../../components/NewRelicSVG'; const AlertIcon = (props) => ( <NewRelicSVG viewBox="0 0 16 16" {...props}> <g> <path d="M12,7V4.5C12,2,10,0,7.5,0S3,2,3,4.5V7L1,9v3h13V9L12,7z M13,11H2V9.4l2-2V4.5C4,2.6,5.6,1,7.5,1S11,2.6,11,4.5v2.9l2,2V11 z" /> <path d="M7.5,14c-0.7,0-1.2-0.4-1.4-1H5c0.2,1.1,1.3,2,2.5,2s2.3-0.9,2.5-2H8.9C8.7,13.6,8.2,14,7.5,14z" /> </g> </NewRelicSVG> ); export default AlertIcon;
29.411765
129
0.59
683c21cedc5a8dd03b7472df86f3f6497685aae0
945
js
JavaScript
lib/mods.js
yuta0801/factorio-mods-sync
a7421a39fa920ba54b2d34bd8f3fabd9eed3d1d2
[ "MIT" ]
1
2019-11-15T11:25:36.000Z
2019-11-15T11:25:36.000Z
lib/mods.js
yuta0801/factorio-mods-sync
a7421a39fa920ba54b2d34bd8f3fabd9eed3d1d2
[ "MIT" ]
1
2022-01-22T02:06:59.000Z
2022-01-22T02:06:59.000Z
lib/mods.js
yuta0801/factorio-mods-sync
a7421a39fa920ba54b2d34bd8f3fabd9eed3d1d2
[ "MIT" ]
2
2020-11-05T01:38:33.000Z
2021-09-19T04:14:07.000Z
const request = require('./request') const path = require('./path') const { _ } = require('./util') const { getCredentials } = require('./auth') const endpoint = 'https://mods.factorio.com' module.exports = { async getMod({ name, version }) { const mod = await request.fetch({ url: endpoint + '/api/mods/' + name, name: name + ' mod', }) const release = mod.releases.find(r => r.version === version) if (!release) throw _('MOD_NOT_FOUND') return { ...release, name } }, async getMods(mods) { mods = mods.filter(e => e.name !== 'base') const res = [] for (const mod of mods) res.push(await this.getMod(mod)) return res }, async downloadMods(mods) { const cred = await getCredentials() return request.downloadParallel(mods.map(mod => ({ url: endpoint + mod.download_url, qs: cred, path: path.getModPath(mod.file_name), name: mod.file_name, }))) }, }
28.636364
65
0.605291
683c94dc5ffc4b31a0f4e4a321ddfd2c57eff5a3
4,136
js
JavaScript
plugins/unload/ls.unload.js
haidaxiaocong/lazyload
e4bdb20fb19445b946af816d962db805503f198e
[ "MIT" ]
null
null
null
plugins/unload/ls.unload.js
haidaxiaocong/lazyload
e4bdb20fb19445b946af816d962db805503f198e
[ "MIT" ]
null
null
null
plugins/unload/ls.unload.js
haidaxiaocong/lazyload
e4bdb20fb19445b946af816d962db805503f198e
[ "MIT" ]
null
null
null
(function(window, document, undefined){ 'use strict'; if(!document.addEventListener){return;} var config, checkElements, expand; var unloadElements = []; var requestAnimationFrame = window.requestAnimationFrame || setTimeout; var unloader = { checkElements: function(){ var i, len, box; var vTop = expand * -1; var vLeft = vTop; var vBottom = innerHeight + expand; var vRight = innerWidth + expand; for(i = 0, len = checkElements.length; i < len; i++){ box = checkElements[i].getBoundingClientRect(); if((box.top > vBottom || box.bottom < vTop || box.left > vRight || box.right < vLeft) || (config.unloadHidden && !box.top && !box.bottom && !box.left && !box.right)){ unloadElements.push(checkElements[i]); } } requestAnimationFrame(unloader.unloadElements); }, unload: function(element){ var sources, isResponsive, i, len; var picture = element.parentNode; lazySizes.rC(element, config.loadedClass); if(element.getAttribute(config.srcsetAttr)){ element.setAttribute('srcset', config.emptySrc); isResponsive = true; } if(picture && picture.nodeName.toUpperCase() == 'PICTURE'){ sources = picture.getElementsByTagName('source'); for(i = 0, len = sources.length; i < len; i++){ sources[i].setAttribute('srcset', config.emptySrc); } isResponsive = true; } if(lazySizes.hC(element, config.autosizesClass)){ lazySizes.rC(element, config.autosizesClass); element.setAttribute(config.sizesAttr, 'auto'); } if(isResponsive || element.getAttribute(config.srcAttr)){ element.src = config.emptySrc; } lazySizes.aC(element, config.unloadedClass); lazySizes.aC(element, config.lazyClass); }, unloadElements: function(elements){ elements = Array.isArray(elements) ? elements : unloadElements; while(elements.length){ unloader.unload(elements.shift()); } }, _reload: function(e) { if(lazySizes.hC(e.target, config.unloadedClass) && e.detail){ e.detail.reloaded = true; lazySizes.rC(e.target, config.unloadedClass); } } }; function init(){ if(!window.lazySizes || checkElements){return;} var dpr = window.devicePixelRatio || 1; var throttleRun = (function(){ var running; var run = function(){ unloader.checkElements(); running = false; }; return function(){ if(!running){ running = true; setTimeout(run, 999); } }; })(); config = lazySizes.cfg; removeEventListener('lazybeforeunveil', init); if(!('unloadClass' in config)){ config.unloadClass = 'lazyunload'; } if(!('unloadedClass' in config)){ config.unloadedClass = 'lazyunloaded'; } if(!('unloadHidden' in config)){ config.unloadHidden = true; } if(!('emptySrc' in config)){ config.emptySrc = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='; } if(!('autoUnload' in config)){ config.autoUnload = true; } if(!('unloadPixelThreshold' in config)){ config.unloadPixelThreshold = Math.max( Math.min(document.documentElement.clientWidth * dpr, document.documentElement.clientHeight * dpr, 999) - 40, 210 * dpr, 310); config.unloadPixelThreshold *= config.unloadPixelThreshold / 2.5; } if(config.autoUnload){ document.documentElement.addEventListener('load', function(e){ if(e.target.naturalWidth * e.target.naturalHeight > config.unloadPixelThreshold && e.target.className && e.target.className.indexOf && e.target.className.indexOf(lazySizesConfig.loadingClass) != -1 && e.target.className.indexOf(lazySizesConfig.preloadClass) == -1){ lazySizes.aC(e.target, lazySizesConfig.unloadClass); } }, true); } lazySizes.unloader = unloader; expand = ((config.expand * config.expFactor) + 99) * 1.1; checkElements = document.getElementsByClassName([config.unloadClass, config.loadedClass].join(' ')); setInterval(throttleRun, 9999); addEventListener('lazybeforeunveil', throttleRun); addEventListener('lazybeforeunveil', unloader._reload, true); } setTimeout(init); addEventListener('lazybeforeunveil', init); })(window, document);
28.923077
169
0.683027
683d3e941f7f2bc5d65d0d5369fa05f6a045b3ba
539,492
js
JavaScript
docs/site.212e90d3e72b9f472773.js
olivianate/quark-ui
4b96ca95d82c406f67a4fafe5ce6e6bc4e7af768
[ "MIT" ]
4
2017-05-02T05:31:31.000Z
2021-04-05T11:23:11.000Z
docs/site.212e90d3e72b9f472773.js
olivianate/quark-ui
4b96ca95d82c406f67a4fafe5ce6e6bc4e7af768
[ "MIT" ]
32
2017-06-07T07:19:08.000Z
2018-08-30T09:05:30.000Z
docs/site.212e90d3e72b9f472773.js
olivianate/quark-ui
4b96ca95d82c406f67a4fafe5ce6e6bc4e7af768
[ "MIT" ]
16
2017-04-25T07:25:27.000Z
2018-01-08T01:20:23.000Z
!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,r,a){for(var i,s,u=0,c=[];u<t.length;u++)s=t[u],o[s]&&c.push(o[s][0]),o[s]=0;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);for(n&&n(t,r,a);c.length;)c.shift()()};var r={},o={1:0};t.e=function(e){function n(){s.onerror=s.onload=null,clearTimeout(u);var t=o[e];0!==t&&(t&&t[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var r=o[e];if(0===r)return new Promise(function(e){e()});if(r)return r[2];var a=new Promise(function(t,n){r=o[e]=[t,n]});r[2]=a;var i=document.getElementsByTagName("head")[0],s=document.createElement("script");s.type="text/javascript",s.charset="utf-8",s.async=!0,s.timeout=12e4,t.nc&&s.setAttribute("nonce",t.nc),s.src=t.p+""+e+"."+{0:"6304d3bec3c1efe374c4"}[e]+".js";var u=setTimeout(n,12e4);return s.onerror=s.onload=n,i.appendChild(s),a},t.m=e,t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/quark-ui/",t.oe=function(e){throw console.error(e),e},t(t.s=0)}({"+3lO":function(e,t,n){n("abPz");for(var r=n("YjQv"),o=n("aLzV"),a=n("yYxz"),i=n("hgbu")("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var c=s[u],l=r[c],f=l&&l.prototype;f&&!f[i]&&o(f,i,c),a[c]=a.Array}},"+5s2":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("DEG1"),a=r(o),i=n("hz+3"),s=r(i),u=n("309y"),c=r(u);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={allowMultiple:!1,handleNotFoundStyleName:"throw"};return(0,c.default)(e,function(e,n){if((0,s.default)(t[n]))throw new Error('Unknown configuration property "'+n+'".');if("allowMultiple"===n&&!(0,a.default)(e))throw new Error('"allowMultiple" property value must be a boolean.');if("handleNotFoundStyleName"===n&&!["throw","log","ignore"].includes(e))throw new Error('"handleNotFoundStyleName" property value must be "throw", "log" or "ignore".');t[n]=e}),t},e.exports=t.default},"+66z":function(e,t){function n(e){return o.call(e)}var r=Object.prototype,o=r.toString;e.exports=n},"+6Bu":function(e,t,n){"use strict";t.__esModule=!0,t.default=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}},"+MZ2":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"+SdG":function(e,t,n){var r=n("a/OS")("keys"),o=n("GmwO");e.exports=function(e){return r[e]||(r[e]=o(e))}},"+XH5":function(e,t,n){"use strict";function r(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}var s,u,c,l,f=n("Jmof"),p=(n.n(f),n("wLXD")),d=n.n(p),h=n("211U"),m=n.n(h),v=n("v8oQ"),y=n.n(v),b=n("BEQ0"),g=n.n(b),_=n("oiih"),E=n("Ce3I"),w=n("L28D"),O=n.n(w),P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),S=(s=m()(O.a,{allowMultiple:_.b}))((l=c=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.add=function(e){var t=e.key||y()();g()(e,{key:t}),n.setState(function(n){var r=n.messages;return r.filter(function(e){return e.key===t}).length?{messages:r}:{messages:r.concat(e)}})},n.remove=function(e){n.setState(function(t){return{messages:t.messages.filter(function(t){return t.key!==e})}})},n.state={messages:[]},n}return i(t,e),x(t,[{key:"render",value:function(){var e=this,t=this.props,n=this.state.messages.map(function(t){var n=function(){t.onClose&&t.onClose(),e.remove(t.key)};return React.createElement(E.a,P({},t,{onClose:n}),t.content)});return React.createElement("div",{styleName:"message--box",style:t.style},n)}}]),t}(f.PureComponent),c.displayName="MessageBox",c.defaultProps={},c.propTypes={},u=l))||u;S.newInstance=function(e){var t=e||{},n=t.getContainer,o=r(t,["getContainer"]),a=void 0;n?a=n():(a=document.createElement("div"),document.body.appendChild(a));var i=d.a,s=i.render(React.createElement(S,o),a);return{msg:function(e){s.add(e)},removeMsg:function(e){s.remove(e)},component:s,destroy:function(){i.unmountComponentAtNode(a),document.body.removeChild(a)}}},t.a=S},"+gg+":function(e,t,n){var r=n("TQ3y"),o=r["__core-js_shared__"];e.exports=o},"+iDZ":function(e,t,n){e.exports=n("YjQv").document&&document.documentElement},"+lhg":function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M512 64a448 448 0 1 0 .064 896.064A448 448 0 0 0 512 64zM384 704V320l320 192-320 192z"});t.a=r},"+vXH":function(e,t,n){e.exports=n("zNjz")(384)},"+zCo":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("NVLL"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a="undefined"==typeof Map?o.default:Map,i=new a;t.default=function(e,t,n){var r=void 0,o=void 0;if(o=i.get(e)){var s=o.get(t);if(s)return s}else o=new a,i.set(e,new a);r="";for(var u in t)if(t.hasOwnProperty(u)){var c=e[t[u]];if(c)r+=" "+c;else{if("throw"===n)throw new Error('"'+t[u]+'" CSS module is undefined.');"log"===n&&console.warn('"'+t[u]+'" CSS module is undefined.')}}return r=r.trim(),o.set(t,r),r},e.exports=t.default},"+zJ9":function(e,t,n){var r=n("GmwO")("meta"),o=n("8ANE"),a=n("x//u"),i=n("GCs6").f,s=0,u=Object.isExtensible||function(){return!0},c=!n("zyKz")(function(){return u(Object.preventExtensions({}))}),l=function(e){i(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},p=function(e,t){if(!a(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},d=function(e){return c&&h.NEED&&u(e)&&!a(e,r)&&l(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:p,onFreeze:d}},"/6x9":function(e,t,n){"use strict";var r=n("b7MC");n.d(t,"a",function(){return r.a})},"/GnY":function(e,t,n){function r(e){if(!o(e))return a(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}var o=n("HT7L"),a=n("W529"),i=Object.prototype,s=i.hasOwnProperty;e.exports=r},"/I3N":function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},"/XlY":function(e,t,n){"use strict";function r(){var e=[].slice.call(arguments,0);return 1===e.length?e[0]:function(){for(var t=0;t<e.length;t++)e[t]&&e[t].apply&&e[t].apply(this,arguments)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},0:function(e,t,n){e.exports=n("NS0f")},"0/jl":function(e,t,n){"use strict";var r=n("YjQv"),o=n("x//u"),a=n("qs+f"),i=n("Wdy1"),s=n("1RnF"),u=n("+zJ9").KEY,c=n("zyKz"),l=n("a/OS"),f=n("LhDF"),p=n("GmwO"),d=n("hgbu"),h=n("4DQ7"),m=n("Ntt2"),v=n("4KAD"),y=n("6rdy"),b=n("NU0k"),g=n("FKWp"),_=n("ksFB"),E=n("9MbE"),w=n("YTz9"),O=n("NZ8V"),P=n("6tLb"),x=n("rjjF"),S=n("GCs6"),C=n("pEGt"),k=x.f,R=S.f,j=P.f,T=r.Symbol,N=r.JSON,M=N&&N.stringify,D=d("_hidden"),A=d("toPrimitive"),I={}.propertyIsEnumerable,L=l("symbol-registry"),z=l("symbols"),K=l("op-symbols"),U=Object.prototype,G="function"==typeof T,B=r.QObject,W=!B||!B.prototype||!B.prototype.findChild,F=a&&c(function(){return 7!=O(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=k(U,t);r&&delete U[t],R(e,t,n),r&&e!==U&&R(U,t,r)}:R,V=function(e){var t=z[e]=O(T.prototype);return t._k=e,t},H=G&&"symbol"==typeof T.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof T},Y=function(e,t,n){return e===U&&Y(K,t,n),g(e),t=E(t,!0),g(n),o(z,t)?(n.enumerable?(o(e,D)&&e[D][t]&&(e[D][t]=!1),n=O(n,{enumerable:w(0,!1)})):(o(e,D)||R(e,D,w(1,{})),e[D][t]=!0),F(e,t,n)):R(e,t,n)},J=function(e,t){g(e);for(var n,r=y(t=_(t)),o=0,a=r.length;a>o;)Y(e,n=r[o++],t[n]);return e},q=function(e,t){return void 0===t?O(e):J(O(e),t)},Q=function(e){var t=I.call(this,e=E(e,!0));return!(this===U&&o(z,e)&&!o(K,e))&&(!(t||!o(this,e)||!o(z,e)||o(this,D)&&this[D][e])||t)},X=function(e,t){if(e=_(e),t=E(t,!0),e!==U||!o(z,t)||o(K,t)){var n=k(e,t);return!n||!o(z,t)||o(e,D)&&e[D][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=j(_(e)),r=[],a=0;n.length>a;)o(z,t=n[a++])||t==D||t==u||r.push(t);return r},$=function(e){for(var t,n=e===U,r=j(n?K:_(e)),a=[],i=0;r.length>i;)!o(z,t=r[i++])||n&&!o(U,t)||a.push(z[t]);return a};G||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===U&&t.call(K,n),o(this,D)&&o(this[D],e)&&(this[D][e]=!1),F(this,e,w(1,n))};return a&&W&&F(U,e,{configurable:!0,set:t}),V(e)},s(T.prototype,"toString",function(){return this._k}),x.f=X,S.f=Y,n("2m2c").f=P.f=Z,n("bSeU").f=Q,n("THEY").f=$,a&&!n("c8Kh")&&s(U,"propertyIsEnumerable",Q,!0),h.f=function(e){return V(d(e))}),i(i.G+i.W+i.F*!G,{Symbol:T});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)d(ee[te++]);for(var ee=C(d.store),te=0;ee.length>te;)m(ee[te++]);i(i.S+i.F*!G,"Symbol",{for:function(e){return o(L,e+="")?L[e]:L[e]=T(e)},keyFor:function(e){if(H(e))return v(L,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),i(i.S+i.F*!G,"Object",{create:q,defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),N&&i(i.S+i.F*(!G||c(function(){var e=T();return"[null]"!=M([e])||"{}"!=M({a:e})||"{}"!=M(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!H(e)){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);return t=r[1],"function"==typeof t&&(n=t),!n&&b(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!H(t))return t}),r[1]=t,M.apply(N,r)}}}),T.prototype[A]||n("aLzV")(T.prototype,A,T.prototype.valueOf),f(T,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},"037f":function(e,t,n){var r=n("1oyr"),o=n("p0bc"),a=n("wSKX"),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},"0BLv":function(e,t){},"0DSl":function(e,t,n){function r(e){return o(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,s&&a(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,i)}return t})}var o=n("YkxI"),a=n("zBOP");e.exports=r},"0E+m":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("pFYg"),a=r(o),i=n("Dd8w"),s=r(i),u=n("Jmof"),c=r(u),l=n("KSGD"),f=r(l),p=n("DT0+"),d=r(p),h=n("BuW1"),m=r(h),v=n("Z+TA"),y=r(v),b=(0,d.default)({displayName:"SubPopupMenu",propTypes:{onSelect:f.default.func,onClick:f.default.func,onDeselect:f.default.func,onOpenChange:f.default.func,onDestroy:f.default.func,openTransitionName:f.default.string,openAnimation:f.default.oneOfType([f.default.string,f.default.object]),openKeys:f.default.arrayOf(f.default.string),closeSubMenuOnMouseLeave:f.default.bool,visible:f.default.bool,children:f.default.any},mixins:[m.default],onDeselect:function(e){this.props.onDeselect(e)},onSelect:function(e){this.props.onSelect(e)},onClick:function(e){this.props.onClick(e)},onOpenChange:function(e){this.props.onOpenChange(e)},onDestroy:function(e){this.props.onDestroy(e)},onItemHover:function(e){var t=e.openChanges,n=void 0===t?[]:t;n=n.concat(this.getOpenChangesOnItemHover(e)),n.length&&this.onOpenChange(n)},getOpenTransitionName:function(){return this.props.openTransitionName},renderMenuItem:function(e,t,n){if(!e)return null;var r=this.props,o={openKeys:r.openKeys,selectedKeys:r.selectedKeys,openSubMenuOnMouseEnter:!0};return this.renderCommonMenuItem(e,t,n,o)},render:function(){var e=this.renderFirst;if(this.renderFirst=1,this.haveOpened=this.haveOpened||this.props.visible,!this.haveOpened)return null;var t=!0;!e&&this.props.visible&&(t=!1);var n=(0,s.default)({},this.props);n.className+=" "+n.prefixCls+"-sub";var r={};return n.openTransitionName?r.transitionName=n.openTransitionName:"object"===(0,a.default)(n.openAnimation)&&(r.animation=(0,s.default)({},n.openAnimation),t||delete r.animation.appear),c.default.createElement(y.default,(0,s.default)({},r,{showProp:"visible",component:"",transitionAppear:t}),this.renderRoot(n))}});t.default=b,e.exports=t.default},"0HOK":function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M984.436 113.664L524.477 910.337 64.518 113.664z"});t.a=r},"0Lvz":function(e,t,n){var r=n("W6Rd"),o=n("+MZ2");e.exports=function(e){return function(t,n){var a,i,s=String(o(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(a=s.charCodeAt(u),a<55296||a>56319||u+1===c||(i=s.charCodeAt(u+1))<56320||i>57343?e?s.charAt(u):a:e?s.slice(u,u+2):i-56320+(a-55296<<10)+65536)}}},"0ghZ":function(e,t,n){function r(e){return a(e)?i(e):o(e)}var o=n("PfJA"),a=n("iYj9"),i=n("KGqH");e.exports=r},"0jLv":function(e,t,n){e.exports=n("zNjz")(470)},"0rn1":function(e,t,n){"use strict";var r=n("F8kA"),o=n("Z5El"),a=n.n(o),i=n("Atfj"),s=n.n(i),u=n("R2KL"),c=n("9mps"),l=n("lVK7"),f=n("EHyi"),p=n("MGiy"),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=Object.keys(l).map(function(e){return e}),m=function(e){return React.createElement("ul",{className:s.a.aside__nav},e.filter(function(e){return-1!==h.indexOf(e.name)}).map(function(e){return React.createElement("li",{className:s.a.aside__navItem,key:e.name},React.createElement(r.c,{to:"/component/"+a()(e.name)},e.name,React.createElement("span",null,e.title)))}))},v=function(){return React.createElement("ul",{styleName:"aside__menu"},f.a.data.map(function(e){return React.createElement("li",{className:s.a.aside__group,key:e.group},React.createElement("div",{className:s.a.aside__title},e.group),m(e.page))}))},y=function(e){return React.createElement(p.a,e,React.createElement("main",{className:s.a.main},React.createElement("div",{className:s.a.content},React.createElement(r.d,{path:"/component/:name",component:function(e){var t=e.match;return React.createElement("div",null,React.createElement(u.a,d({key:t.params.name},e)),React.createElement(c.a,{componentName:t.params.name}))}})),React.createElement("aside",{className:s.a.aside},v())))};t.a=y},"16tV":function(e,t,n){function r(e){for(var t=a(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,o(i)]}return t}var o=n("tO4o"),a=n("ktak");e.exports=r},"1C0P":function(e,t,n){"use strict";var r=n("bOdI"),o=n.n(r),a=n("Dd8w"),i=n.n(a),s=n("Zrlr"),u=n.n(s),c=n("wxAW"),l=n.n(c),f=n("zwoO"),p=n.n(f),d=n("Pf15"),h=n.n(d),m=n("Jmof"),v=n.n(m),y=n("KSGD"),b=n.n(y),g=n("wLXD"),_=n.n(g),E=n("HW6M"),w=n.n(E),O=n("mNwc"),P=n("GvBW"),x=n.n(P),S={position:"absolute",top:0,opacity:0,filter:"alpha(opacity=0)",left:0,zIndex:9999},C=function(e){function t(){var e,n,r,o;u()(this,t);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=r=p()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={uploading:!1},r.file={},r.onLoad=function(){if(r.state.uploading){var e=r,t=e.props,n=e.file,o=void 0;try{var a=r.getIframeDocument(),i=a.getElementsByTagName("script")[0];i&&i.parentNode===a.body&&a.body.removeChild(i),o=a.body.innerHTML,t.onSuccess(o,n)}catch(e){x()(!1,"cross domain error for Upload. Maybe server should return document.domain script. see Note from https://github.com/react-component/upload"),o="cross-domain",t.onError(e,null,n)}r.endUpload()}},r.onChange=function(){var e=r.getFormInputNode(),t=r.file={uid:Object(O.a)(),name:e.value};r.startUpload();var n=r,o=n.props;if(!o.beforeUpload)return r.post(t);var a=o.beforeUpload(t);a&&a.then?a.then(function(){r.post(t)},function(){r.endUpload()}):!1!==a?r.post(t):r.endUpload()},o=n,p()(r,o)}return h()(t,e),l()(t,[{key:"componentDidMount",value:function(){this.updateIframeWH(),this.initIframe()}},{key:"componentDidUpdate",value:function(){this.updateIframeWH()}},{key:"getIframeNode",value:function(){return this.refs.iframe}},{key:"getIframeDocument",value:function(){return this.getIframeNode().contentDocument}},{key:"getFormNode",value:function(){return this.getIframeDocument().getElementById("form")}},{key:"getFormInputNode",value:function(){return this.getIframeDocument().getElementById("input")}},{key:"getFormDataNode",value:function(){return this.getIframeDocument().getElementById("data")}},{key:"getFileForMultiple",value:function(e){return this.props.multiple?[e]:e}},{key:"getIframeHTML",value:function(e){var t="",n="";return e&&(t='<script>document.domain="'+e+'";<\/script>',n='<input name="_documentDomain" value="'+e+'" />'),'\n <!DOCTYPE html>\n <html>\n <head>\n <meta http-equiv="X-UA-Compatible" content="IE=edge" />\n <style>\n body,html {padding:0;margin:0;border:0;overflow:hidden;}\n </style>\n '+t+'\n </head>\n <body>\n <form method="post"\n encType="multipart/form-data"\n action="'+this.props.action+'" id="form"\n style="display:block;height:9999px;position:relative;overflow:hidden;">\n <input id="input" type="file"\n name="'+this.props.name+'"\n style="position:absolute;top:0;right:0;height:9999px;font-size:9999px;cursor:pointer;"/>\n '+n+'\n <span id="data"></span>\n </form>\n </body>\n </html>\n '}},{key:"initIframeSrc",value:function(){this.domain&&(this.getIframeNode().src="javascript:void((function(){\n var d = document;\n d.open();\n d.domain='"+this.domain+"';\n d.write('');\n d.close();\n })())")}},{key:"initIframe",value:function(){var e=this.getIframeNode(),t=e.contentWindow,n=void 0;this.domain=this.domain||"",this.initIframeSrc();try{n=t.document}catch(r){this.domain=document.domain,this.initIframeSrc(),t=e.contentWindow,n=t.document}n.open("text/html","replace"),n.write(this.getIframeHTML(this.domain)),n.close(),this.getFormInputNode().onchange=this.onChange}},{key:"endUpload",value:function(){this.state.uploading&&(this.file={},this.state.uploading=!1,this.setState({uploading:!1}),this.initIframe())}},{key:"startUpload",value:function(){this.state.uploading||(this.state.uploading=!0,this.setState({uploading:!0}))}},{key:"updateIframeWH",value:function(){var e=_.a.findDOMNode(this),t=this.getIframeNode();t.style.height=e.offsetHeight+"px",t.style.width=e.offsetWidth+"px"}},{key:"abort",value:function(e){if(e){var t=e;e&&e.uid&&(t=e.uid),t===this.file.uid&&this.endUpload()}else this.endUpload()}},{key:"post",value:function(e){var t=this.getFormNode(),n=this.getFormDataNode(),r=this.props.data,o=this.props.onStart;"function"==typeof r&&(r=r(e));var a=document.createDocumentFragment();for(var i in r)if(r.hasOwnProperty(i)){var s=document.createElement("input");s.setAttribute("name",i),s.value=r[i],a.appendChild(s)}n.appendChild(a),t.submit(),n.innerHTML="",o(e)}},{key:"render",value:function(){var e,t=this.props,n=t.component,r=t.disabled,a=t.className,s=t.prefixCls,u=t.children,c=t.style,l=i()({},S,{display:this.state.uploading||r?"none":""}),f=w()((e={},o()(e,s,!0),o()(e,s+"-disabled",r),o()(e,a,a),e));return v.a.createElement(n,{className:f,style:i()({position:"relative",zIndex:0},c)},v.a.createElement("iframe",{ref:"iframe",onLoad:this.onLoad,style:l}),u)}}]),t}(m.Component);C.propTypes={component:b.a.string,style:b.a.object,disabled:b.a.bool,prefixCls:b.a.string,className:b.a.string,accept:b.a.string,onStart:b.a.func,multiple:b.a.bool,children:b.a.any,data:b.a.oneOfType([b.a.object,b.a.func]),action:b.a.string,name:b.a.string},t.a=C},"1HXQ":function(e,t,n){"use strict";function r(e){return e<58?e-48:e<71?e-55:e-87}function o(e){var t="#"===e[0]?1:0,n=e.length;if(n-t<3)throw new Error("hex input must be at least three chars long");var o,a,i,s=r(e.charCodeAt(0+t)),u=r(e.charCodeAt(1+t)),c=r(e.charCodeAt(2+t));if(n-t>=6?(o=(s<<4)+u,a=(c<<4)+r(e.charCodeAt(3+t)),i=(r(e.charCodeAt(4+t))<<4)+r(e.charCodeAt(5+t))):(o=(s<<4)+s,a=(u<<4)+u,i=(c<<4)+c),o<0||o>255||a<0||a>255||i<0||i>255)throw new Error("hex input is invalid");return[o,a,i]}function a(e){return"#"+("000000"+((e[0]<<16)+(e[1]<<8)+e[2]).toString(16)).slice(-6)}function i(e){var t,n,r,o=e[0]/255,a=e[1]/255,i=e[2]/255,s=Math.min(o,a,i),u=Math.max(o,a,i),c=u-s;return u===s?t=0:o===u?t=(a-i)/c:a===u?t=2+(i-o)/c:i===u&&(t=4+(o-a)/c),t=Math.min(60*t,360),t<0&&(t+=360),r=(s+u)/2,n=u===s?0:r<=.5?c/(u+s):c/(2-u-s),[t,100*n,100*r]}function s(e){var t,n,r,o=e[0],a=e[1],i=e[2],s=Math.min(o,a,i),u=Math.max(o,a,i),c=u-s;return n=0===u?0:c/u*100,u===s?t=0:o===u?t=(a-i)/c:a===u?t=2+(i-o)/c:i===u&&(t=4+(o-a)/c),t=Math.min(60*t,360),t<0&&(t+=360),r=u/255*100,[t,n,r]}function u(e){var t,n,r,o=e[0]/360,a=e[1]/100,i=e[2]/100;if(0===a)t=n=r=i;else{var s,u=i<.5?i*(a+1):i+a-i*a,c=2*i-u;s=o+1/3,s<0?s+=1:s>1&&(s-=1),t=s<1/6?c+(u-c)*s*6:s<.5?u:s<2/3?c+(u-c)*(2/3-s)*6:c,s=o,s<0?s+=1:s>1&&(s-=1),n=s<1/6?c+(u-c)*s*6:s<.5?u:s<2/3?c+(u-c)*(2/3-s)*6:c,s=o-1/3,s<0?s+=1:s>1&&(s-=1),r=s<1/6?c+(u-c)*s*6:s<.5?u:s<2/3?c+(u-c)*(2/3-s)*6:c}return[255*t,255*n,255*r]}function c(e){var t,n,r=e[0],o=e[1]/100,a=e[2]/100;return 0===o?[r,0,100*a]:0===a?[r,0,0]:(a*=2,o*=a<=1?a:2-a,n=(a+o)/2,t=2*o/(a+o),[r,100*t,100*n])}function l(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,a=t-Math.floor(t),i=255*r*(1-n),s=255*r*(1-n*a),u=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,u,i];case 1:return[s,r,i];case 2:return[i,r,u];case 3:return[i,s,r];case 4:return[u,i,r];case 5:return[r,i,s]}}function f(e){var t,n,r=e[0],o=e[1]/100,a=e[2]/100;return 0===o?[r,0,100*a]:0===a?[r,0,0]:(n=(2-o)*a,t=o*a,t/=n<=1?n:2-n,n/=2,[r,100*t,100*n])}function p(e){return[e,e,e]}function d(e){return(299*e[0]+587*e[1]+114*e[2])/1e3}e.exports={grayscale:{rgb:p},hex:{rgb:o},rgb:{hsl:i,hsv:s,hex:a,grayscale:d},hsl:{rgb:u,hsv:c},hsv:{rgb:l,hsl:f}}},"1LGv":function(e,t){e.exports={ReactCodeMirror:"qFEGfu9","ReactCodeMirror--focused":"_3ijwfvj"}},"1NOR":function(e,t,n){function r(e){var t=o[e];return t?n.e(t[1]).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}var o={"./alert/demo/index":["cjKs",0],"./animation/demo/index":["yHpG",0],"./breadcrumb/demo/index":["xiJQ",0],"./button/demo/index":["5xuW",0],"./checkbox/demo/index":["1ptM",0],"./datePicker/demo/index":["RPTQ",0],"./dropdown/demo/index":["Sf3G",0],"./icon/demo/index":["Uy2q",0],"./input/demo/index":["qeLS",0],"./inputNumber/demo/index":["DAzN",0],"./menu/demo/index":["YCo2",0],"./message/demo/index":["BtTj",0],"./modal/demo/index":["w+gr",0],"./pagination/demo/index":["Mdu8",0],"./progress/demo/index":["iBQZ",0],"./radio/demo/index":["WL//",0],"./select/demo/index":["Rloj",0],"./spin/demo/index":["8wBc",0],"./steps/demo/index":["SfWF",0],"./tabs/demo/index":["fgYh",0],"./trigger/demo/index":["W6RA",0],"./upload/demo/index":["PgBk",0]};r.keys=function(){return Object.keys(o)},r.id="1NOR",e.exports=r},"1Oj9":function(e,t,n){e.exports=n.p+"545a5d815c64e8907635d952ba9c64e8.jpg"},"1RnF":function(e,t,n){e.exports=n("aLzV")},"1S3F":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i=n("Jmof"),s=n.n(i),u=n("KSGD"),c=n.n(u),l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return a(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.perform=function(){var e=this.context.router.history,t=this.props,n=t.push,r=t.to;n?e.push(r):e.replace(r)},t.prototype.render=function(){return null},t}(s.a.Component);l.propTypes={push:c.a.bool,from:c.a.string,to:c.a.oneOfType([c.a.string,c.a.object])},l.defaultProps={push:!1},l.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired}).isRequired,staticContext:c.a.object}).isRequired}},"1Yb9":function(e,t,n){var r=n("mgnk"),o=n("UnEC"),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},"1ip3":function(e,t,n){e.exports=n("zNjz")(309)},"1oyr":function(e,t){function n(e){return function(){return e}}e.exports=n},"211U":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("gGqR"),a=r(o),i=n("myDN"),s=r(i),u=n("Ep/F"),c=r(u),l=n("+5s2"),f=r(l),p=function(e){return"prototype"in e&&(0,a.default)(e.prototype.render)},d=function(e,t,n){var r=void 0,o=(0,f.default)(n);return r=p(e)?(0,s.default)(e,t,o):(0,c.default)(e,t,o),e.displayName?r.displayName=e.displayName:r.displayName=e.name,r},h=function(e,t){return function(n){return d(n,e,t)}};t.default=function(){return(0,a.default)(arguments.length<=0?void 0:arguments[0])?d(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]):h(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])},e.exports=t.default},2247:function(e,t,n){function r(e,t){return(s(e)?o:i)(e,a(t,3))}var o=n("Hxdr"),a=n("JyYQ"),i=n("yzuE"),s=n("NGEn");e.exports=r},"22B7":function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},"2Hvv":function(e,t,n){function r(e){return o(this.__data__,e)>-1}var o=n("imBK");e.exports=r},"2MIV":function(e,t,n){e.exports=n("bFAv")},"2QIw":function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M848.034 959.882H428.098c-67.471 0-123.942-47.981-137.11-111.639l-.126-.104H176.143c-61.912 0-112.101-50.19-112.101-112.101V175.785c0-61.861 50.148-112.009 112.009-112.009h420.074c67.493 0 123.942 47.998 137.11 111.639l.126.104h114.674c61.937 0 112.146 50.21 112.146 112.146v560.07c0 61.937-50.21 112.147-112.147 112.147zm-251.91-840.08H176.006c-30.903 0-55.955 25.052-55.955 55.955V736.02c0 30.979 25.114 56.093 56.093 56.093H287.94l.137-.137V287.665c0-61.937 50.21-112.146 112.146-112.146h274.185c-11.723-32.3-41.996-55.717-78.284-55.717zm308.048 167.863c0-30.995-25.126-56.121-56.121-56.121H400.178c-30.979 0-56.093 25.114-56.093 56.093v560.098c0 30.995 25.126 56.121 56.121 56.121h447.873c30.979 0 56.093-25.114 56.093-56.093V287.665zM820.797 763.79H427.46c-15.442 0-28.083-12.602-28.083-28.01v-.006c0-15.408 12.641-28.01 28.083-28.01h393.338c15.447 0 28.083 12.602 28.083 28.01v.006c-.001 15.408-12.636 28.01-28.084 28.01zm0-168.082H427.46c-15.442 0-28.083-12.608-28.083-28.01s12.641-28.01 28.083-28.01h393.338c15.447 0 28.083 12.608 28.083 28.01s-12.636 28.01-28.084 28.01zm0-168.077H427.46c-15.442 0-28.083-12.608-28.083-28.016 0-15.397 12.641-28.004 28.083-28.004h393.338c15.447 0 28.083 12.608 28.083 28.004-.001 15.408-12.636 28.016-28.084 28.016z"});t.a=r},"2VmA":function(e,t,n){function r(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=i,this.__views__=[]}var o=n("VORN"),a=n("KMSM"),i=4294967295;r.prototype=o(a.prototype),r.prototype.constructor=r,e.exports=r},"2X2u":function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}e.exports=n},"2m2c":function(e,t,n){var r=n("DvwR"),o=n("B5V0").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"2tft":function(e,t,n){"use strict";var r=n("HDB8");n.d(t,"a",function(){return r.a})},"309y":function(e,t,n){function r(e,t){return(s(e)?o:a)(e,i(t))}var o=n("PqYH"),a=n("v9aJ"),i=n("CxPB"),s=n("NGEn");e.exports=r},"3Did":function(e,t,n){function r(e){return function(t){return o(t,e)}}var o=n("uCi2");e.exports=r},"3IRH":function(e,t,n){e.exports=n("zNjz")(258)},"3fMt":function(e,t,n){var r=n("SWGL");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"3ggi":function(e,t,n){n("Ntt2")("asyncIterator")},"3r6y":function(e,t,n){"use strict";function r(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}var o=n("Jmof"),a=n.n(o),i=n("KSGD"),s=n.n(i),u=n("CIox"),c=n("yL62"),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f="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},p=function(e){var t=e.to,n=e.exact,o=e.strict,i=e.location,s=e.activeClassName,p=e.className,d=e.activeStyle,h=e.style,m=e.isActive,v=r(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive"]);return a.a.createElement(u.a,{path:"object"===(void 0===t?"undefined":f(t))?t.pathname:t,exact:n,strict:o,location:i,children:function(e){var n=e.location,r=e.match,o=!!(m?m(r,n):r);return a.a.createElement(c.a,l({to:t,className:o?[s,p].filter(function(e){return e}).join(" "):p,style:o?l({},h,d):h},v))}})};p.propTypes={to:c.a.propTypes.to,exact:s.a.bool,strict:s.a.bool,location:s.a.object,activeClassName:s.a.string,className:s.a.string,activeStyle:s.a.object,style:s.a.object,isActive:s.a.func},p.defaultProps={activeClassName:"active"},t.a=p},"3uoo":function(e,t){e.exports="## Quick Start\n\n### 方式一\n\n直接在页面中引入 cdn 上的 universal 包,这个时候需注意全局 windows 对象中需包含 `React` 和 `ReactDOM`\n\n```html\n<link href=\"https://unpkg.com/quark-ui/lib/index.css\" /> \n<script src=\"https://unpkg.com/quark-ui/lib/index.js\"><\/script>\n``` \n\n### 方式二\n\n1. 使用 npm 安装到项目依赖中。\n\n```sh\nnpm i -S quark-ui\n```\n\n2. 推荐使用 `webpack` 作为依赖解析环境,配合 esmodule 语法加载对应组件,按需加载组件,避免整包引入。\n\n```js\nimport 'quark-ui/lib/button.css';\nimport Button from 'quark-ui/lib/button';\n\nReactDOM.render(<Button>按钮</Button>, document.getElementById('App'));\n``` \n\n3. 主题选择\n\nQuarkUI 支持多主体,目前自带 `蓝色` 和 `橙色` 两套主题色,可在引入 css 时选择。\n后续也考虑支持更多的主题色,包括完全自定义方案,以满足不同设计风格需求。\n\n```js\n// 默认蓝色主题\nimport 'quark-ui/lib/button.css';\n// 橙色主题\nimport 'quark-ui/lib/button.orange.css';\n```"},"4/hK":function(e,t){},"4DQ7":function(e,t,n){t.f=n("hgbu")},"4KAD":function(e,t,n){var r=n("pEGt"),o=n("ksFB");e.exports=function(e,t){for(var n,a=o(e),i=r(a),s=i.length,u=0;s>u;)if(a[n=i[u++]]===t)return n}},"4ZU1":function(e,t,n){e.exports=n("zNjz")(387)},"4ajQ":function(e,t,n){var r=n("Wdy1");r(r.S+r.F*!n("qs+f"),"Object",{defineProperty:n("GCs6").f})},"4dmN":function(e,t,n){"use strict";var r=n("c8Kh"),o=n("Wdy1"),a=n("1RnF"),i=n("aLzV"),s=n("x//u"),u=n("yYxz"),c=n("I7B8"),l=n("LhDF"),f=n("VD8v"),p=n("hgbu")("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,m,v,y,b){c(n,t,m);var g,_,E,w=function(e){if(!d&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",P="values"==v,x=!1,S=e.prototype,C=S[p]||S["@@iterator"]||v&&S[v],k=C||w(v),R=v?P?w("entries"):k:void 0,j="Array"==t?S.entries||C:C;if(j&&(E=f(j.call(new e)))!==Object.prototype&&(l(E,O,!0),r||s(E,p)||i(E,p,h)),P&&C&&"values"!==C.name&&(x=!0,k=function(){return C.call(this)}),r&&!b||!d&&!x&&S[p]||i(S,p,k),u[t]=k,u[O]=h,v)if(g={values:P?k:w("values"),keys:y?k:w("keys"),entries:R},b)for(_ in g)_ in S||a(S,_,g[_]);else o(o.P+o.F*(d||x),t,g);return g}},5183:function(e,t,n){var r=n("bIbi"),o=r&&new r;e.exports=o},"52Em":function(e,t,n){"use strict";n("CIox")},"52Wt":function(e,t,n){e.exports=n("zNjz")(376)},"55x7":function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},a="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,n){if("string"!=typeof t){var i=Object.getOwnPropertyNames(t);a&&(i=i.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;++s)if(!(r[i[s]]||o[i[s]]||n&&n[i[s]]))try{e[i[s]]=t[i[s]]}catch(e){}}return e}},"5AF/":function(e,t,n){"use strict";var r=n("+6Bu"),o=n.n(r),a=n("Zrlr"),i=n.n(a),s=n("wxAW"),u=n.n(s),c=n("zwoO"),l=n.n(c),f=n("Pf15"),p=n.n(f),d=n("Jmof"),h=n.n(d),m=n("KSGD"),v=n.n(m),y=n("zMcl"),b=function(e){function t(){return i()(this,t),l()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p()(t,e),u()(t,[{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.disabled,r=o()(e,["prefixCls","disabled"]);return h.a.createElement(y.a,{disabled:n,activeClassName:t+"-handler-active"},h.a.createElement("span",r))}}]),t}(d.Component);b.propTypes={prefixCls:v.a.string,disabled:v.a.bool},t.a=b},"5DDM":function(e,t,n){function r(e){var t=i(e),n=s[t];if("function"!=typeof n||!(t in o.prototype))return!1;if(e===n)return!0;var r=a(n);return!!r&&e===r[0]}var o=n("2VmA"),a=n("wKps"),i=n("K96V"),s=n("6xqu");e.exports=r},"5IAE":function(e,t,n){!function(e){!function(e){"use strict";function t(e,t,n){return/^(?:operator|sof|keyword c|case|new|export|default|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}e.defineMode("javascript",function(n,r){function o(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function a(e,t,n){return xe=e,Se=n,t}function i(e,n){var r=e.next();if('"'==r||"'"==r)return n.tokenize=s(r),n.tokenize(e,n);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return a("number","number");if("."==r&&e.match(".."))return a("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return a(r);if("="==r&&e.eat(">"))return a("=>","operator");if("0"==r&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),a("number","number");if("0"==r&&e.eat(/o/i))return e.eatWhile(/[0-7]/i),a("number","number");if("0"==r&&e.eat(/b/i))return e.eatWhile(/[01]/i),a("number","number");if(/\d/.test(r))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),a("number","number");if("/"==r)return e.eat("*")?(n.tokenize=u,u(e,n)):e.eat("/")?(e.skipToEnd(),a("comment","comment")):t(e,n,1)?(o(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),a("regexp","string-2")):(e.eatWhile(De),a("operator","operator",e.current()));if("`"==r)return n.tokenize=c,c(e,n);if("#"==r)return e.skipToEnd(),a("error","error");if(De.test(r))return">"==r&&n.lexical&&">"==n.lexical.type||e.eatWhile(De),a("operator","operator",e.current());if(Ne.test(r)){e.eatWhile(Ne);var i=e.current();if("."!=n.lastType){if(Me.propertyIsEnumerable(i)){var l=Me[i];return a(l.type,l.style,i)}if("async"==i&&e.match(/^\s*[\(\w]/,!1))return a("async","keyword",i)}return a("variable","variable",i)}}function s(e){return function(t,n){var r,o=!1;if(Re&&"@"==t.peek()&&t.match(Ae))return n.tokenize=i,a("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||o);)o=!o&&"\\"==r;return o||(n.tokenize=i),a("string","string")}}function u(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=i;break}r="*"==n}return a("comment","comment")}function c(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=i;break}r=!r&&"\\"==n}return a("quasi","string-2",e.current())}function l(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(Te){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var o=0,a=!1,i=n-1;i>=0;--i){var s=e.string.charAt(i),u=Ie.indexOf(s);if(u>=0&&u<3){if(!o){++i;break}if(0==--o){"("==s&&(a=!0);break}}else if(u>=3&&u<6)++o;else if(Ne.test(s))a=!0;else{if(/["'\/]/.test(s))return;if(a&&!o){++i;break}}}a&&!o&&(t.fatArrowAt=i)}}function f(e,t,n,r,o,a){this.indented=e,this.column=t,this.type=n,this.prev=o,this.info=a,null!=r&&(this.align=r)}function p(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(var n=r.vars;n;n=n.next)if(n.name==t)return!0}function d(e,t,n,r,o){var a=e.cc;for(ze.state=e,ze.stream=o,ze.marked=null,ze.cc=a,ze.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((a.length?a.pop():je?O:w)(n,r)){for(;a.length&&a[a.length-1].lex;)a.pop()();return ze.marked?ze.marked:"variable"==n&&p(e,r)?"variable-2":t}}function h(){for(var e=arguments.length-1;e>=0;e--)ze.cc.push(arguments[e])}function m(){return h.apply(null,arguments),!0}function v(e){function t(t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}var n=ze.state;if(ze.marked="def",n.context){if(t(n.localVars))return;n.localVars={name:e,next:n.localVars}}else{if(t(n.globalVars))return;r.globalVars&&(n.globalVars={name:e,next:n.globalVars})}}function y(){ze.state.context={prev:ze.state.context,vars:ze.state.localVars},ze.state.localVars=Ke}function b(){ze.state.localVars=ze.state.context.vars,ze.state.context=ze.state.context.prev}function g(e,t){var n=function(){var n=ze.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var o=n.lexical;o&&")"==o.type&&o.align;o=o.prev)r=o.indented;n.lexical=new f(r,ze.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function _(){var e=ze.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function E(e){function t(n){return n==e?m():";"==e?h():m(t)}return t}function w(e,t){return"var"==e?m(g("vardef",t.length),Z,E(";"),_):"keyword a"==e?m(g("form"),x,w,_):"keyword b"==e?m(g("form"),w,_):"{"==e?m(g("}"),V,_):";"==e?m():"if"==e?("else"==ze.state.lexical.info&&ze.state.cc[ze.state.cc.length-1]==_&&ze.state.cc.pop()(),m(g("form"),x,w,_,re)):"function"==e?m(ce):"for"==e?m(g("form"),oe,w,_):"variable"==e?Te&&"type"==t?(ze.marked="keyword",m(Y,E("operator"),Y,E(";"))):m(g("stat"),z):"switch"==e?m(g("form"),x,E("{"),g("}","switch"),V,_,_):"case"==e?m(O,E(":")):"default"==e?m(E(":")):"catch"==e?m(g("form"),y,E("("),le,E(")"),w,_,b):"class"==e?m(g("form"),pe,_):"export"==e?m(g("stat"),ve,_):"import"==e?m(g("stat"),be,_):"module"==e?m(g("form"),$,E("{"),g("}"),V,_,_):"async"==e?m(w):"@"==t?m(O,w):h(g("stat"),O,E(";"),_)}function O(e){return S(e,!1)}function P(e){return S(e,!0)}function x(e){return"("!=e?h():m(g(")"),O,E(")"),_)}function S(e,t){if(ze.state.fatArrowAt==ze.stream.start){var n=t?D:M;if("("==e)return m(y,g(")"),W($,")"),_,E("=>"),n,b);if("variable"==e)return h(y,$,E("=>"),n,b)}var r=t?j:R;return Le.hasOwnProperty(e)?m(r):"function"==e?m(ce,r):"class"==e?m(g("form"),fe,_):"keyword c"==e||"async"==e?m(t?k:C):"("==e?m(g(")"),C,E(")"),_,r):"operator"==e||"spread"==e?m(t?P:O):"["==e?m(g("]"),Oe,_,r):"{"==e?F(U,"}",null,r):"quasi"==e?h(T,r):"new"==e?m(A(t)):m()}function C(e){return e.match(/[;\}\)\],]/)?h():h(O)}function k(e){return e.match(/[;\}\)\],]/)?h():h(P)}function R(e,t){return","==e?m(O):j(e,t,!1)}function j(e,t,n){var r=0==n?R:j,o=0==n?O:P;return"=>"==e?m(y,n?D:M,b):"operator"==e?/\+\+|--/.test(t)?m(r):"?"==t?m(O,E(":"),o):m(o):"quasi"==e?h(T,r):";"!=e?"("==e?F(P,")","call",r):"."==e?m(K,r):"["==e?m(g("]"),C,E("]"),_,r):Te&&"as"==t?(ze.marked="keyword",m(Y,r)):void 0:void 0}function T(e,t){return"quasi"!=e?h():"${"!=t.slice(t.length-2)?m(T):m(O,N)}function N(e){if("}"==e)return ze.marked="string-2",ze.state.tokenize=c,m(T)}function M(e){return l(ze.stream,ze.state),h("{"==e?w:O)}function D(e){return l(ze.stream,ze.state),h("{"==e?w:P)}function A(e){return function(t){return"."==t?m(e?L:I):h(e?P:O)}}function I(e,t){if("target"==t)return ze.marked="keyword",m(R)}function L(e,t){if("target"==t)return ze.marked="keyword",m(j)}function z(e){return":"==e?m(_,w):h(R,E(";"),_)}function K(e){if("variable"==e)return ze.marked="property",m()}function U(e,t){return"async"==e?(ze.marked="property",m(U)):"variable"==e||"keyword"==ze.style?(ze.marked="property",m("get"==t||"set"==t?G:B)):"number"==e||"string"==e?(ze.marked=Re?"property":ze.style+" property",m(B)):"jsonld-keyword"==e?m(B):"modifier"==e?m(U):"["==e?m(O,E("]"),B):"spread"==e?m(O,B):":"==e?h(B):void 0}function G(e){return"variable"!=e?h(B):(ze.marked="property",m(ce))}function B(e){return":"==e?m(P):"("==e?h(ce):void 0}function W(e,t,n){function r(o,a){if(n?n.indexOf(o)>-1:","==o){var i=ze.state.lexical;return"call"==i.info&&(i.pos=(i.pos||0)+1),m(function(n,r){return n==t||r==t?h():h(e)},r)}return o==t||a==t?m():m(E(t))}return function(n,o){return n==t||o==t?m():h(e,r)}}function F(e,t,n){for(var r=3;r<arguments.length;r++)ze.cc.push(arguments[r]);return m(g(t,n),W(e,t),_)}function V(e){return"}"==e?m():h(w,V)}function H(e,t){if(Te){if(":"==e)return m(Y);if("?"==t)return m(H)}}function Y(e){return"variable"==e?(ze.marked="type",m(X)):"string"==e||"number"==e||"atom"==e?m(X):"{"==e?m(g("}"),W(q,"}",",;"),_,X):"("==e?m(W(Q,")"),J):void 0}function J(e){if("=>"==e)return m(Y)}function q(e,t){return"variable"==e||"keyword"==ze.style?(ze.marked="property",m(q)):"?"==t?m(q):":"==e?m(Y):"["==e?m(O,H,E("]"),q):void 0}function Q(e){return"variable"==e?m(Q):":"==e?m(Y):void 0}function X(e,t){return"<"==t?m(g(">"),W(Y,">"),_,X):"|"==t||"."==e?m(Y):"["==e?m(E("]"),X):"extends"==t?m(Y):void 0}function Z(){return h($,H,te,ne)}function $(e,t){return"modifier"==e?m($):"variable"==e?(v(t),m()):"spread"==e?m($):"["==e?F($,"]"):"{"==e?F(ee,"}"):void 0}function ee(e,t){return"variable"!=e||ze.stream.match(/^\s*:/,!1)?("variable"==e&&(ze.marked="property"),"spread"==e?m($):"}"==e?h():m(E(":"),$,te)):(v(t),m(te))}function te(e,t){if("="==t)return m(P)}function ne(e){if(","==e)return m(Z)}function re(e,t){if("keyword b"==e&&"else"==t)return m(g("form","else"),w,_)}function oe(e){if("("==e)return m(g(")"),ae,E(")"),_)}function ae(e){return"var"==e?m(Z,E(";"),se):";"==e?m(se):"variable"==e?m(ie):h(O,E(";"),se)}function ie(e,t){return"in"==t||"of"==t?(ze.marked="keyword",m(O)):m(R,se)}function se(e,t){return";"==e?m(ue):"in"==t||"of"==t?(ze.marked="keyword",m(O)):h(O,E(";"),ue)}function ue(e){")"!=e&&m(O)}function ce(e,t){return"*"==t?(ze.marked="keyword",m(ce)):"variable"==e?(v(t),m(ce)):"("==e?m(y,g(")"),W(le,")"),_,H,w,b):Te&&"<"==t?m(g(">"),W(Y,">"),_,ce):void 0}function le(e){return"spread"==e?m(le):h($,H,te)}function fe(e,t){return"variable"==e?pe(e,t):de(e,t)}function pe(e,t){if("variable"==e)return v(t),m(de)}function de(e,t){return"<"==t?m(g(">"),W(Y,">"),_,de):"extends"==t||"implements"==t||Te&&","==e?m(Te?Y:O,de):"{"==e?m(g("}"),he,_):void 0}function he(e,t){return"variable"==e||"keyword"==ze.style?("async"==t||"static"==t||"get"==t||"set"==t||Te&&("public"==t||"private"==t||"protected"==t||"readonly"==t||"abstract"==t))&&ze.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(ze.marked="keyword",m(he)):(ze.marked="property",m(Te?me:ce,he)):"["==e?m(O,E("]"),Te?me:ce,he):"*"==t?(ze.marked="keyword",m(he)):";"==e?m(he):"}"==e?m():"@"==t?m(O,he):void 0}function me(e,t){return"?"==t?m(me):":"==e?m(Y,te):"="==t?m(P):h(ce)}function ve(e,t){return"*"==t?(ze.marked="keyword",m(we,E(";"))):"default"==t?(ze.marked="keyword",m(O,E(";"))):"{"==e?m(W(ye,"}"),we,E(";")):h(w)}function ye(e,t){return"as"==t?(ze.marked="keyword",m(E("variable"))):"variable"==e?h(P,ye):void 0}function be(e){return"string"==e?m():h(ge,_e,we)}function ge(e,t){return"{"==e?F(ge,"}"):("variable"==e&&v(t),"*"==t&&(ze.marked="keyword"),m(Ee))}function _e(e){if(","==e)return m(ge,_e)}function Ee(e,t){if("as"==t)return ze.marked="keyword",m(ge)}function we(e,t){if("from"==t)return ze.marked="keyword",m(O)}function Oe(e){return"]"==e?m():h(W(P,"]"))}function Pe(e,t){return"operator"==e.lastType||","==e.lastType||De.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}var xe,Se,Ce=n.indentUnit,ke=r.statementIndent,Re=r.jsonld,je=r.json||Re,Te=r.typescript,Ne=r.wordCharacters||/[\w$\xa1-\uffff]/,Me=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),o=e("operator"),a={type:"atom",style:"atom"},i={if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:r,break:r,continue:r,new:e("new"),delete:r,throw:r,debugger:r,var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r};if(Te){var s={type:"variable",style:"type"},u={interface:e("class"),implements:r,namespace:r,module:e("module"),enum:e("module"),public:e("modifier"),private:e("modifier"),protected:e("modifier"),abstract:e("modifier"),string:s,number:s,boolean:s,any:s};for(var c in u)i[c]=u[c]}return i}(),De=/[+\-*&%=<>!?|~^@]/,Ae=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Ie="([{}])",Le={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},ze={state:null,column:null,marked:null,cc:null},Ke={name:"this",next:{name:"arguments"}};return _.lex=!0,{startState:function(e){var t={tokenize:i,lastType:"sof",cc:[],lexical:new f((e||0)-Ce,0,"block",!1),localVars:r.localVars,context:r.localVars&&{vars:r.localVars},indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),l(e,t)),t.tokenize!=u&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==xe?n:(t.lastType="operator"!=xe||"++"!=Se&&"--"!=Se?xe:"incdec",d(t,n,xe,Se,e))},indent:function(t,n){if(t.tokenize==u)return e.Pass;if(t.tokenize!=i)return 0;var o,a=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var c=t.cc.length-1;c>=0;--c){var l=t.cc[c];if(l==_)s=s.prev;else if(l!=re)break}for(;("stat"==s.type||"form"==s.type)&&("}"==a||(o=t.cc[t.cc.length-1])&&(o==R||o==j)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;ke&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var f=s.type,p=a==f;return"vardef"==f?s.indented+("operator"==t.lastType||","==t.lastType?s.info+1:0):"form"==f&&"{"==a?s.indented:"form"==f?s.indented+Ce:"stat"==f?s.indented+(Pe(t,n)?ke||Ce:0):"switch"!=s.info||p||0==r.doubleIndentSwitch?s.align?s.column+(p?0:1):s.indented+(p?0:Ce):s.indented+(/^(?:case|default)\b/.test(n)?Ce:2*Ce)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:je?null:"/*",blockCommentEnd:je?null:"*/",lineComment:je?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:je?"json":"javascript",jsonldMode:Re,jsonMode:je,expressionAllowed:t,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=O&&t!=P||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n("8U58"))}()},"5N57":function(e,t,n){var r=n("ICSD"),o=n("TQ3y"),a=r(o,"Set");e.exports=a},"5QVw":function(e,t,n){e.exports={default:n("tYO1"),__esModule:!0}},"5Srr":function(e,t,n){var r=n("YkxI"),o=n("efQZ"),a=n("XVfB"),i=n("akIm"),s=r(function(e,t){var n=i(t,a(s));return o(e,64,void 0,t,n)});s.placeholder={},e.exports=s},"5Zxu":function(e,t,n){function r(e){var t=o(e),n=t%1;return t===t?n?t-n:t:0}var o=n("sBat");e.exports=r},"5d4z":function(e,t,n){"use strict";var r=n("xLxO");n.d(t,"a",function(){return r.a})},"5r+a":function(e,t,n){"use strict";function r(e){var t=void 0,n=void 0,r=void 0,o=e.ownerDocument,a=o.body,i=o&&o.documentElement;return t=e.getBoundingClientRect(),n=t.left,r=t.top,n-=i.clientLeft||a.clientLeft||0,r-=i.clientTop||a.clientTop||0,{left:n,top:r}}function o(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function a(e){return o(e)}function i(e){return o(e,!0)}function s(e){var t=r(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=a(o),t.top+=i(o),t}function u(e,t,n){var r="",o=e.ownerDocument,a=n||o.defaultView.getComputedStyle(e,null);return a&&(r=a.getPropertyValue(t)||a[t]),r}function c(e,t){var n=e[P]&&e[P][t];if(w.test(n)&&!O.test(t)){var r=e.style,o=r[S],a=e[x][S];e[x][S]=e[P][S],r[S]="fontSize"===t?"1em":n||0,n=r.pixelLeft+C,r[S]=o,e[x][S]=a}return""===n?"auto":n}function l(e,t){for(var n=0;n<e.length;n++)t(e[n])}function f(e){return"border-box"===k(e,"boxSizing")}function p(e,t,n){var r={},o=e.style,a=void 0;for(a in t)t.hasOwnProperty(a)&&(r[a]=o[a],o[a]=t[a]);n.call(e);for(a in t)t.hasOwnProperty(a)&&(o[a]=r[a])}function d(e,t,n){var r=0,o=void 0,a=void 0,i=void 0;for(a=0;a<t.length;a++)if(o=t[a])for(i=0;i<n.length;i++){var s=void 0;s="border"===o?o+n[i]+"Width":o+n[i],r+=parseFloat(k(e,s))||0}return r}function h(e){return null!=e&&e==e.window}function m(e,t,n){if(h(e))return"width"===t?M.viewportWidth(e):M.viewportHeight(e);if(9===e.nodeType)return"width"===t?M.docWidth(e):M.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,a=k(e),i=f(e,a),s=0;(null==o||o<=0)&&(o=void 0,s=k(e,t),(null==s||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===n&&(n=i?N:j);var u=void 0!==o||i,c=o||s;if(n===j)return u?c-d(e,["border","padding"],r,a):s;if(u){var l=n===T?-d(e,["border"],r,a):d(e,["margin"],r,a);return c+(n===N?0:l)}return s+d(e,R.slice(n),r,a)}function v(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=m.apply(void 0,n):p(e,D,function(){t=m.apply(void 0,n)}),t}function y(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":_(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):k(e,t);for(var o in t)t.hasOwnProperty(o)&&y(e,o,t[o])}function b(e,t){"static"===y(e,"position")&&(e.style.position="relative");var n=s(e),r={},o=void 0,a=void 0;for(a in t)t.hasOwnProperty(a)&&(o=parseFloat(y(e,a))||0,r[a]=o+t[a]-n[a]);y(e,r)}var g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},E=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,w=new RegExp("^("+E+")(?!px)[a-z%]+$","i"),O=/^(top|right|bottom|left)$/,P="currentStyle",x="runtimeStyle",S="left",C="px",k=void 0;"undefined"!=typeof window&&(k=window.getComputedStyle?u:c);var R=["margin","border","padding"],j=-1,T=2,N=1,M={};l(["Width","Height"],function(e){M["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],M["viewport"+e](n))},M["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,a=r.documentElement,i=a[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}});var D={position:"absolute",visibility:"hidden",display:"block"};l(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);M["outer"+t]=function(t,n){return t&&v(t,e,n?0:N)};var n="width"===e?["Left","Right"]:["Top","Bottom"];M[e]=function(t,r){if(void 0===r)return t&&v(t,e,j);if(t){var o=k(t);return f(t)&&(r+=d(t,["padding","border"],n,o)),y(t,e,r)}}}),e.exports=g({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return s(e);b(e,t)},isWindow:h,each:l,css:y,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(h(e)){if(void 0===t)return a(e);window.scrollTo(t,i(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(h(e)){if(void 0===t)return i(e);window.scrollTo(a(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},M)},"6Fy1":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}n.d(t,"a",function(){return v});var i,s,u=n("Jmof"),c=(n.n(u),n("KSGD")),l=n.n(c),f=n("HW6M"),p=n.n(f),d=n("CwmF"),h=n.n(d),m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=(s=i=function(e){function t(){var e,n,a,i;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),a.click=function(){var e=a,t=e.context,n=t.childContext,r=a.props,o=r.value,i=r.title,s=r.children;n.onOptionSelected(o,i||s)},i=n,o(a,i)}return a(t,e),m(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.value,r=this.context,o=r.childContext,a=o.getSelectedValue()===n;return React.createElement("li",{className:p()(h.a.option,a?h.a.active:""),onClick:this.click},t)}}]),t}(u.PureComponent),i.displayName="Option",i.defaultProps={value:"",title:void 0,children:null},i.propTypes={value:l.a.string.isRequired,title:l.a.string,children:l.a.arrayOf(l.a.element)},i.contextTypes={childContext:l.a.any},s)},"6MiT":function(e,t,n){function r(e){return"symbol"==typeof e||a(e)&&o(e)==i}var o=n("aCM0"),a=n("UnEC"),i="[object Symbol]";e.exports=r},"6RRl":function(e,t,n){function r(e){if(e instanceof o)return e.clone();var t=new a(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var o=n("2VmA"),a=n("6o+p"),i=n("hrPF");e.exports=r},"6RSh":function(e,t,n){"use strict";function r(e){var t=[];return l.default.Children.forEach(e,function(e){t.push(e)}),t}function o(e,t){var n=null;return e&&e.forEach(function(e){n||e&&e.key===t&&(n=e)}),n}function a(e,t,n){var r=null;return e&&e.forEach(function(e){if(e&&e.key===t&&e.props[n]){if(r)throw new Error("two child with same key for <rc-animate> children");r=e}}),r}function i(e,t,n){var r=0;return e&&e.forEach(function(e){r||(r=e&&e.key===t&&!e.props[n])}),r}function s(e,t,n){var r=e.length===t.length;return r&&e.forEach(function(e,o){var a=t[o];e&&a&&(e&&!a||!e&&a?r=!1:e.key!==a.key?r=!1:n&&e.props[n]!==a.props[n]&&(r=!1))}),r}function u(e,t){var n=[],r={},a=[];return e.forEach(function(e){e&&o(t,e.key)?a.length&&(r[e.key]=a,a=[]):a.push(e)}),t.forEach(function(e){e&&r.hasOwnProperty(e.key)&&(n=n.concat(r[e.key])),n.push(e)}),n=n.concat(a)}Object.defineProperty(t,"__esModule",{value:!0}),t.toArrayChildren=r,t.findChildInChildrenByKey=o,t.findShownChildInChildrenByKey=a,t.findHiddenChildInChildrenByKey=i,t.isSameChildren=s,t.mergeChildren=u;var c=n("Jmof"),l=function(e){return e&&e.__esModule?e:{default:e}}(c)},"6cJI":function(e,t,n){"use strict";n("CIox")},"6coI":function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M230.935 512L742.429.506l51.142 51.142L333.219 512l460.352 460.352-51.142 51.142L230.935 512z"});t.a=r},"6o+p":function(e,t,n){function r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}var o=n("VORN"),a=n("KMSM");r.prototype=o(a.prototype),r.prototype.constructor=r,e.exports=r},"6rdy":function(e,t,n){var r=n("pEGt"),o=n("THEY"),a=n("bSeU");e.exports=function(e){var t=r(e),n=o.f;if(n)for(var i,s=n(e),u=a.f,c=0;s.length>c;)u.call(e,i=s[c++])&&t.push(i);return t}},"6tLb":function(e,t,n){var r=n("ksFB"),o=n("2m2c").f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(e){return i.slice()}};e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?s(e):o(r(e))}},"6xqu":function(e,t,n){function r(e){if(u(e)&&!s(e)&&!(e instanceof o)){if(e instanceof a)return e;if(f.call(e,"__wrapped__"))return c(e)}return new a(e)}var o=n("2VmA"),a=n("6o+p"),i=n("KMSM"),s=n("NGEn"),u=n("UnEC"),c=n("6RRl"),l=Object.prototype,f=l.hasOwnProperty;r.prototype=i.prototype,r.prototype.constructor=r,e.exports=r},"7I8Q":function(e,t,n){var r=n("oM53"),o=n("Zk5a"),a=o(r);e.exports=a},"7Jvp":function(e,t,n){e.exports=n("zNjz")(300)},"7NjT":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("bOdI"),a=r(o),i=n("Dd8w"),s=r(i),u=n("Jmof"),c=r(u),l=n("KSGD"),f=r(l),p=n("DT0+"),d=r(p),h=n("0E+m"),m=r(h),v=n("Gr1r"),y=r(v),b=n("HW6M"),g=r(b),_=n("eCKj"),E=0,w=(0,d.default)({displayName:"SubMenu",propTypes:{parentMenu:f.default.object,title:f.default.node,children:f.default.any,selectedKeys:f.default.array,openKeys:f.default.array,onClick:f.default.func,onOpenChange:f.default.func,rootPrefixCls:f.default.string,eventKey:f.default.string,multiple:f.default.bool,active:f.default.bool,onSelect:f.default.func,closeSubMenuOnMouseLeave:f.default.bool,openSubMenuOnMouseEnter:f.default.bool,onDeselect:f.default.func,onDestroy:f.default.func,onItemHover:f.default.func,onMouseEnter:f.default.func,onMouseLeave:f.default.func,onTitleMouseEnter:f.default.func,onTitleMouseLeave:f.default.func,onTitleClick:f.default.func},mixins:[n("rw40")],getDefaultProps:function(){return{onMouseEnter:_.noop,onMouseLeave:_.noop,onTitleMouseEnter:_.noop,onTitleMouseLeave:_.noop,onTitleClick:_.noop,title:""}},getInitialState:function(){return this.isSubMenu=1,{defaultActiveFirst:!1}},componentWillUnmount:function(){var e=this.props,t=e.onDestroy,n=e.eventKey,r=e.parentMenu;t&&t(n),r.subMenuInstance===this&&this.clearSubMenuTimers()},onDestroy:function(e){this.props.onDestroy(e)},onKeyDown:function(e){var t=e.keyCode,n=this.menuInstance,r=this.isOpen();if(t===y.default.ENTER)return this.onTitleClick(e),this.setState({defaultActiveFirst:!0}),!0;if(t===y.default.RIGHT)return r?n.onKeyDown(e):(this.triggerOpenChange(!0),this.setState({defaultActiveFirst:!0})),!0;if(t===y.default.LEFT){var o=void 0;if(!r)return;return o=n.onKeyDown(e),o||(this.triggerOpenChange(!1),o=!0),o}return!r||t!==y.default.UP&&t!==y.default.DOWN?void 0:n.onKeyDown(e)},onOpenChange:function(e){this.props.onOpenChange(e)},onMouseEnter:function(e){var t=this.props;this.clearSubMenuLeaveTimer(t.parentMenu.subMenuInstance!==this),t.onMouseEnter({key:t.eventKey,domEvent:e})},onTitleMouseEnter:function(e){var t=this.props,n=t.parentMenu,r=t.eventKey,o=this;this.clearSubMenuTitleLeaveTimer(n.subMenuInstance!==o),n.menuItemInstance&&n.menuItemInstance.clearMenuItemMouseLeaveTimer(!0);var a=[];t.openSubMenuOnMouseEnter&&a.push({key:r,item:o,trigger:"mouseenter",open:!0}),t.onItemHover({key:r,item:o,hover:!0,trigger:"mouseenter",openChanges:a}),this.setState({defaultActiveFirst:!1}),t.onTitleMouseEnter({key:r,domEvent:e})},onTitleMouseLeave:function(e){var t=this,n=this.props,r=n.parentMenu,o=n.eventKey;r.subMenuInstance=this,r.subMenuTitleLeaveFn=function(){"inline"===n.mode&&n.active&&n.onItemHover({key:o,item:t,hover:!1,trigger:"mouseleave"}),n.onTitleMouseLeave({key:n.eventKey,domEvent:e})},r.subMenuTitleLeaveTimer=setTimeout(r.subMenuTitleLeaveFn,100)},onMouseLeave:function(e){var t=this,n=this.props,r=n.parentMenu,o=n.eventKey;r.subMenuInstance=this,r.subMenuLeaveFn=function(){if("inline"!==n.mode){var r=t.isOpen();r&&n.closeSubMenuOnMouseLeave&&n.active?n.onItemHover({key:o,item:t,hover:!1,trigger:"mouseleave",openChanges:[{key:o,item:t,trigger:"mouseleave",open:!1}]}):(n.active&&n.onItemHover({key:o,item:t,hover:!1,trigger:"mouseleave"}),r&&n.closeSubMenuOnMouseLeave&&t.triggerOpenChange(!1))}n.onMouseLeave({key:o,domEvent:e})},r.subMenuLeaveTimer=setTimeout(r.subMenuLeaveFn,100)},onTitleClick:function(e){var t=this.props;t.onTitleClick({key:t.eventKey,domEvent:e}),t.openSubMenuOnMouseEnter||(this.triggerOpenChange(!this.isOpen(),"click"),this.setState({defaultActiveFirst:!1}))},onSubMenuClick:function(e){this.props.onClick(this.addKeyPath(e))},onSelect:function(e){this.props.onSelect(e)},onDeselect:function(e){this.props.onDeselect(e)},getPrefixCls:function(){return this.props.rootPrefixCls+"-submenu"},getActiveClassName:function(){return this.getPrefixCls()+"-active"},getDisabledClassName:function(){return this.getPrefixCls()+"-disabled"},getSelectedClassName:function(){return this.getPrefixCls()+"-selected"},getOpenClassName:function(){return this.props.rootPrefixCls+"-submenu-open"},saveMenuInstance:function(e){this.menuInstance=e},addKeyPath:function(e){return(0,s.default)({},e,{keyPath:(e.keyPath||[]).concat(this.props.eventKey)})},triggerOpenChange:function(e,t){var n=this.props.eventKey;this.onOpenChange({key:n,item:this,trigger:t,open:e})},clearSubMenuTimers:function(){this.clearSubMenuLeaveTimer(void 0),this.clearSubMenuTitleLeaveTimer(void 0)},clearSubMenuTitleLeaveTimer:function(){var e=this.props.parentMenu;e.subMenuTitleLeaveTimer&&(clearTimeout(e.subMenuTitleLeaveTimer),e.subMenuTitleLeaveTimer=null,e.subMenuTitleLeaveFn=null)},clearSubMenuLeaveTimer:function(){var e=this.props.parentMenu;e.subMenuLeaveTimer&&(clearTimeout(e.subMenuLeaveTimer),e.subMenuLeaveTimer=null,e.subMenuLeaveFn=null)},isChildrenSelected:function(){var e={find:!1};return(0,_.loopMenuItemRecusively)(this.props.children,this.props.selectedKeys,e),e.find},isOpen:function(){return-1!==this.props.openKeys.indexOf(this.props.eventKey)},renderChildren:function(e){var t=this.props,n={mode:"horizontal"===t.mode?"vertical":t.mode,visible:this.isOpen(),level:t.level+1,inlineIndent:t.inlineIndent,focusable:!1,onClick:this.onSubMenuClick,onSelect:this.onSelect,onDeselect:this.onDeselect,onDestroy:this.onDestroy,selectedKeys:t.selectedKeys,eventKey:t.eventKey+"-menu-",openKeys:t.openKeys,openTransitionName:t.openTransitionName,openAnimation:t.openAnimation,onOpenChange:this.onOpenChange,closeSubMenuOnMouseLeave:t.closeSubMenuOnMouseLeave,defaultActiveFirst:this.state.defaultActiveFirst,multiple:t.multiple,prefixCls:t.rootPrefixCls,id:this._menuId,ref:this.saveMenuInstance};return c.default.createElement(m.default,n,e)},render:function(){var e,t=this.isOpen();this.haveOpen=this.haveOpen||t;var n=this.props,r=this.getPrefixCls(),o=(e={},(0,a.default)(e,n.className,!!n.className),(0,a.default)(e,r+"-"+n.mode,1),e);o[this.getOpenClassName()]=t,o[this.getActiveClassName()]=n.active,o[this.getDisabledClassName()]=n.disabled,o[this.getSelectedClassName()]=this.isChildrenSelected(),this._menuId||(n.eventKey?this._menuId=n.eventKey+"$Menu":this._menuId="$__$"+ ++E+"$Menu"),o[r]=!0,o[r+"-"+n.mode]=1;var i={},u={},l={};n.disabled||(i={onClick:this.onTitleClick},u={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},l={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var f={};return"inline"===n.mode&&(f.paddingLeft=n.inlineIndent*n.level),c.default.createElement("li",(0,s.default)({className:(0,g.default)(o)},u),c.default.createElement("div",(0,s.default)({style:f,className:r+"-title"},l,i,{"aria-expanded":t,"aria-owns":this._menuId,"aria-haspopup":"true"}),n.title),this.renderChildren(n.children))}});w.isSubMenu=1,t.default=w,e.exports=t.default},"7YkW":function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o;++t<n;)this.add(e[t])}var o=n("YeCl"),a=n("Cskv"),i=n("aQOO");r.prototype.add=r.prototype.push=a,r.prototype.has=i,e.exports=r},"7e4z":function(e,t,n){function r(e,t){var n=i(e),r=!n&&a(e),l=!n&&!r&&s(e),p=!n&&!r&&!l&&c(e),d=n||r||l||p,h=d?o(e.length,String):[],m=h.length;for(var v in e)!t&&!f.call(e,v)||d&&("length"==v||l&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,m))||h.push(v);return h}var o=n("uieL"),a=n("1Yb9"),i=n("NGEn"),s=n("ggOT"),u=n("ZGh9"),c=n("YsVG"),l=Object.prototype,f=l.hasOwnProperty;e.exports=r},"7rD7":function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M64 512a86 86 0 1 0 172 0 86 86 0 1 0-172 0zM426 512a86 86 0 1 0 172 0 86 86 0 1 0-172 0zM788 512a86 86 0 1 0 172 0 86 86 0 1 0-172 0z"});t.a=r},"8++/":function(e,t){function n(e){return e!==e}e.exports=n},"89jE":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u,c,l=n("Jmof"),f=(n.n(l),n("KSGD")),p=n.n(f),d=n("211U"),h=n.n(d),m=n("PJh5"),v=n.n(m),y=n("hygk"),b=n.n(y),g=n("BEQ0"),_=n.n(g),E=n("oiih"),w=n("pS//"),O=n.n(w),P=n("vdxk"),x=n("Cs5U"),S=n("Hbpm"),C=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k=(i=h()(O.a,{allowMultiple:E.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClickField=function(){n.setState({paneVisible:!0})},n.handlePickerVisibleChange=function(e){n.setState({paneVisible:e})},n.changeDateInternal=function(e){var t=n.state.value,r=v()(t).set(e);void 0!==n.props.value?n.props.onChange(r):(n.setState({value:r}),n.props.onChange(r)),n.setState({paneVisible:!1})},n.state={value:v()(e.value||e.defaultValue),paneVisible:!1},n}return a(t,e),C(t,[{key:"componentWillReceiveProps",value:function(e){void 0!==e.value&&this.setState({value:v()(e.value)})}},{key:"shouldComponentUpdate",value:function(e,t){return!b()(e,this.props)||!this.state.value.isSame(t.value)||this.state.paneVisible!==t.paneVisible}},{key:"render",value:function(){var e=this.state,t=e.value,n=e.paneVisible,r=this.props,o=r.pickerType,a=r.disabled,i=r.format,s=r.disabledDate,u=r.fieldSize,c=r.fieldWidth,l={date:t,changeDate:this.changeDateInternal,type:o,disabledDate:s,paneVisible:n,onVisibleChange:this.handlePickerVisibleChange},f={};c&&_()(f,{width:c});var p={disabled:a,value:t.format(i),size:u,style:f,onClick:this.handleClickField};return a?React.createElement(x.a,p):React.createElement(S.a,l,React.createElement(x.a,p))}}]),t}(l.PureComponent),u.displayName="DatePicker",u.defaultProps=_()({},P.a,{pickerType:"date",disabledDate:function(){}}),u.propTypes=_()(P.b,{pickerType:p.a.oneOf(["date","month","range"]),disabledDate:p.a.func}),s=c))||s;t.a=k},"8ANE":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"8AZL":function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},"8NDG":function(e,t){function n(e,t,n,o){for(var a=-1,i=e.length,s=-1,u=n.length,c=-1,l=t.length,f=r(i-u,0),p=Array(f+l),d=!o;++a<f;)p[a]=e[a];for(var h=a;++c<l;)p[h+c]=t[c];for(;++s<u;)(d||a<i)&&(p[h+n[s]]=e[a++]);return p}var r=Math.max;e.exports=n},"8QhD":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i=n("Jmof"),s=n.n(i),u=n("KSGD"),c=n.n(u),l=n("ciQf"),f=n.n(l),p=n("CIox"),d=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=a=o(this,e.call.apply(e,[this].concat(u))),a.history=f()(a.props),i=n,o(a,i)}return a(t,e),t.prototype.render=function(){return s.a.createElement(p.b,{history:this.history,children:this.props.children})},t}(s.a.Component);d.propTypes={basename:c.a.string,forceRefresh:c.a.bool,getUserConfirmation:c.a.func,keyLength:c.a.number,children:c.a.node},t.a=d},"8RmA":function(e,t,n){"use strict";function r(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}var s,u,c,l,f=n("Jmof"),p=(n.n(f),n("Ngpj")),d=n.n(p),h=n("KSGD"),m=n.n(h),v=n("211U"),y=n.n(v),b=n("oiih"),g=n("s16o"),_=n.n(g),E=n("qoUc"),w=n("sfwK"),O=n("Mfsv"),P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),S=(s=y()(_.a,{allowMultiple:b.b}))((l=c=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n}return i(t,e),x(t,[{key:"shouldComponentUpdate",value:function(e,t,n){return!d()(this.props,e)||!d()(this.state,t)||!d()(this.context.radioGroup,n.radioGroup)}},{key:"render",value:function(){var e=this.props,t=this.context,n=e.children,o=e.prefixCls,a=r(e,["children","prefixCls"]),i=t.radioGroup,s=a;return i&&(s.onChange=i.onChange,s.checked=e.value==i.value,s.disabled=e.disabled||i.disabled),React.createElement(E.a,P({},s,{prefixCls:o}),void 0!==n?n:null)}}]),t}(f.PureComponent),c.Group=w.a,c.Button=O.a,c.displayName="Radio",c.defaultProps={type:"radio",prefixCls:"radio"},c.propTypes={type:m.a.string},c.contextTypes={radioGroup:m.a.any},u=l))||u;t.a=S},"8U58":function(e,t,n){e.exports=n("zNjz")(257)},"8Vmw":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("RyI1"),a=r(o),i=n("iMIp"),s=r(i),u={};t.default=function(e,t){var n=void 0;if(u[e]?n=u[e]:(n=(0,s.default)(e).split(/\s+/),n=(0,a.default)(n),u[e]=n),!1===t&&n.length>1)throw new Error('ReactElement styleName property defines multiple module names ("'+e+'").');return n},e.exports=t.default},"8qqi":function(e,t){function n(e){if("function"!=typeof e)throw new Error(a.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(a.invalidPredicate);var n=e.bind(null,!1,t);return n.isRequired=e.bind(null,!0,t),n},t}function r(e,t,n){return new Error("The prop `"+e+"` "+a.requiredCore+" in `"+t+"`, but its value is `"+n+"`.")}function o(e,t,o,i){function s(n,s,u,c,l,f,p){var d=u[c],h=typeof d,m=void 0===d,v=null===d;if(n){if(l=l||a.anonymousMessage,p=p||c,m)return r(p,l,"undefined");if(v)return r(p,l,"null")}if(m||v)return null;if(t&&!t(d))return new Error(a.invalidTypeCore+": `"+c+"` of type `"+h+"` supplied to `"+l+"`, expected `"+e+"`.");if(!o(d))return new Error(a.baseInvalidMessage+f+" `"+c+"` of type `"+h+"` supplied to `"+l+"`, expected `"+i+"`.");if(s&&!s(d)){var y=s.name||a.anonymousMessage;return new Error(a.baseInvalidMessage+f+" `"+c+"` of type `"+h+"` supplied to `"+l+"`. "+a.predicateFailureCore+" `"+y+"`.")}return null}return n(s)}var a={invalidPredicate:"`predicate` must be a function",invalidPropValidator:"`propValidator` must be a function",requiredCore:"is marked as required",invalidTypeCore:"Invalid input type",predicateFailureCore:"Failed to succeed with predicate",anonymousMessage:"<<anonymous>>",baseInvalidMessage:"Invalid "};e.exports={constructPropValidatorVariations:n,createMomentChecker:o,messages:a}},"8rJT":function(e,t,n){"use strict";function r(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,a=n.onlyScrollIfNeeded,i=n.alignWithTop,s=n.alignWithLeft,u=n.offsetTop||0,c=n.offsetLeft||0,l=n.offsetBottom||0,f=n.offsetRight||0;r=void 0===r||r;var p=o.isWindow(t),d=o.offset(e),h=o.outerHeight(e),m=o.outerWidth(e),v=void 0,y=void 0,b=void 0,g=void 0,_=void 0,E=void 0,w=void 0,O=void 0,P=void 0,x=void 0;p?(w=t,x=o.height(w),P=o.width(w),O={left:o.scrollLeft(w),top:o.scrollTop(w)},_={left:d.left-O.left-c,top:d.top-O.top-u},E={left:d.left+m-(O.left+P)+f,top:d.top+h-(O.top+x)+l},g=O):(v=o.offset(t),y=t.clientHeight,b=t.clientWidth,g={left:t.scrollLeft,top:t.scrollTop},_={left:d.left-(v.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-c,top:d.top-(v.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-u},E={left:d.left+m-(v.left+b+(parseFloat(o.css(t,"borderRightWidth"))||0))+f,top:d.top+h-(v.top+y+(parseFloat(o.css(t,"borderBottomWidth"))||0))+l}),_.top<0||E.top>0?!0===i?o.scrollTop(t,g.top+_.top):!1===i?o.scrollTop(t,g.top+E.top):_.top<0?o.scrollTop(t,g.top+_.top):o.scrollTop(t,g.top+E.top):a||(i=void 0===i||!!i,i?o.scrollTop(t,g.top+_.top):o.scrollTop(t,g.top+E.top)),r&&(_.left<0||E.left>0?!0===s?o.scrollLeft(t,g.left+_.left):!1===s?o.scrollLeft(t,g.left+E.left):_.left<0?o.scrollLeft(t,g.left+_.left):o.scrollLeft(t,g.left+E.left):a||(s=void 0===s||!!s,s?o.scrollLeft(t,g.left+_.left):o.scrollLeft(t,g.left+E.left)))}var o=n("5r+a");e.exports=r},"9+aC":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}function o(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}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function s(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)}n.d(t,"a",function(){return O});var u,c,l,f,p=n("Jmof"),d=(n.n(p),n("KSGD")),h=n.n(d),m=n("HW6M"),v=n.n(m),y=n("gUOz"),b=n("GmAb"),g=n.n(b),_=n("JCVn"),E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),O=(u=Object(y.a)())((f=l=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={popupVisible:e.visible},n}return s(t,e),w(t,[{key:"componentWillReceiveProps",value:function(e){e.visible&&!this.props.visible&&this.setState({popupVisible:!0})}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,a=t.popupRef,i=t.position,s=t.visible,u=o(t,["children","popupRef","position","visible"]),c=this.state.popupVisible,l=E({ref:a,className:v()(g.a.popup,r({},g.a["popup--hidden"],!c))},u);return React.createElement(_.a,{duration:300,timingFunction:"ease-in-out",in:s,motion:"fade",mountOnEnter:!0,appear:!0,onExited:function(){e.setState({popupVisible:!1})},style:{position:"absolute",left:i[0],top:i[1]}},React.createElement("div",l,n))}}]),t}(p.PureComponent),l.displayName="Popup",l.defaultProps={position:[0,0],popupRef:null,visible:!1,onMouseEnter:function(){},onMouseLeave:function(){}},l.propTypes={position:h.a.arrayOf(h.a.number),popupRef:h.a.func,visible:h.a.bool,onMouseEnter:h.a.func,onMouseLeave:h.a.func},c=f))||c},"92I6":function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},"94sX":function(e,t,n){function r(){this.__data__=o?o(null):{},this.size=0}var o=n("dCZQ");e.exports=r},"9MbE":function(e,t,n){var r=n("8ANE");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},"9P2o":function(e,t,n){"use strict";var r=n("F8kA"),o=n("zpMW"),a=n("0jLv"),i=n.n(a),s=n("Atfj"),u=(n.n(s),n("raSw")),c=n("0rn1"),l=n("i4Or"),f=n("qTBW"),p=n.n(f),d=n("3uoo"),h=n.n(d),m=n("j6zi"),v=n.n(m),y=Object(o.b)(function(){return{html:i()(h.a).html}})(l.a),b=Object(o.b)(function(){return{html:i()(p.a).html}})(l.a),g=Object(o.b)(function(){return{html:i()(v.a).html}})(l.a);t.a=function(){return React.createElement(r.a,{basename:"/quark-ui"},React.createElement("div",null,React.createElement(r.d,{path:"/",component:u.a,exact:!0}),React.createElement(r.d,{path:"/component",component:c.a}),React.createElement(r.d,{path:"/usage",component:y}),React.createElement(r.d,{path:"/changes",component:b}),React.createElement(r.d,{path:"/design",component:g})))}},"9hop":function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c,l)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M475.52 13.504l497.728 497.728-498.496 498.496-45.248-45.248 453.248-453.248-452.608-452.48z"}),l=i("path",{d:"M112 13.504l497.728 497.728-498.496 498.496-45.248-45.248 453.248-453.248-452.48-452.48z"});t.a=r},"9mGU":function(e,t,n){e.exports=n("zNjz")(396)},"9mmO":function(e,t,n){e.exports=n("zNjz")(374)},"9mps":function(module,__webpack_exports__,__webpack_require__){"use strict";function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function _asyncToGenerator(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,a){try{var i=t[o](a),s=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)});e(s)}return r("next")})}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(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}function _inherits(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)}__webpack_require__.d(__webpack_exports__,"a",function(){return PlayGround});var __WEBPACK_IMPORTED_MODULE_0_codemirror_lib_codemirror_css__=__webpack_require__("4/hK"),__WEBPACK_IMPORTED_MODULE_0_codemirror_lib_codemirror_css___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_codemirror_lib_codemirror_css__),__WEBPACK_IMPORTED_MODULE_1_codemirror_theme_material_css__=__webpack_require__("epNC"),__WEBPACK_IMPORTED_MODULE_1_codemirror_theme_material_css___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_codemirror_theme_material_css__),__WEBPACK_IMPORTED_MODULE_2_react__=__webpack_require__("Jmof"),__WEBPACK_IMPORTED_MODULE_2_react___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__),__WEBPACK_IMPORTED_MODULE_3_react_dom__=__webpack_require__("wLXD"),__WEBPACK_IMPORTED_MODULE_3_react_dom___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_dom__),__WEBPACK_IMPORTED_MODULE_4_babel_standalone__=__webpack_require__("IzCJ"),__WEBPACK_IMPORTED_MODULE_4_babel_standalone___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_standalone__),__WEBPACK_IMPORTED_MODULE_5_classnames__=__webpack_require__("HW6M"),__WEBPACK_IMPORTED_MODULE_5_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__),__WEBPACK_IMPORTED_MODULE_6_codemirror_mode_jsx_jsx__=__webpack_require__("KR8v"),__WEBPACK_IMPORTED_MODULE_6_codemirror_mode_jsx_jsx___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_codemirror_mode_jsx_jsx__),__WEBPACK_IMPORTED_MODULE_7_prop_types__=__webpack_require__("KSGD"),__WEBPACK_IMPORTED_MODULE_7_prop_types___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__),__WEBPACK_IMPORTED_MODULE_8_react_transition_group_Transition__=__webpack_require__("TAxY"),__WEBPACK_IMPORTED_MODULE_8_react_transition_group_Transition___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react_transition_group_Transition__),__WEBPACK_IMPORTED_MODULE_9__Codemirror__=__webpack_require__("sblh"),__WEBPACK_IMPORTED_MODULE_10__src_index__=__webpack_require__("lVK7"),__WEBPACK_IMPORTED_MODULE_11__icons_run_svg__=__webpack_require__("+lhg"),__WEBPACK_IMPORTED_MODULE_12__raw_loader_repl_default__=__webpack_require__("CFF0"),__WEBPACK_IMPORTED_MODULE_12__raw_loader_repl_default___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12__raw_loader_repl_default__),__WEBPACK_IMPORTED_MODULE_13__PlayGround_css__=__webpack_require__("jrzw"),__WEBPACK_IMPORTED_MODULE_13__PlayGround_css___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13__PlayGround_css__),_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_class,_temp2,PlayGround=(_temp2=_class=function(_Component){function PlayGround(){var e,t,n,r;_classCallCheck(this,PlayGround);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return t=n=_possibleConstructorReturn(this,(e=PlayGround.__proto__||Object.getPrototypeOf(PlayGround)).call.apply(e,[this].concat(a))),n.state={repl:"",errorMsg:null,active:!1},n.handleClickTrgger=function(){n.setState({active:!n.state.active})},r=t,_possibleConstructorReturn(n,r)}return _inherits(PlayGround,_Component),_createClass(PlayGround,[{key:"componentDidMount",value:function(){this.loadRepl()}},{key:"compileCode",value:function(e){var t=this.props.scope,n="\n (function("+Object.keys(t).join(", ")+"){\n "+e+"\n });";return Object(__WEBPACK_IMPORTED_MODULE_4_babel_standalone__.transform)(n,{presets:["es2015","react","stage-1"]}).code}},{key:"buildScope",value:function(){var e=this.props.scope;return Object.keys(e).map(function(t){return e[t]})}},{key:"loadRepl",value:function(){function e(){return t.apply(this,arguments)}var t=_asyncToGenerator(regeneratorRuntime.mark(function e(){var t,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props.componentName,e.prev=1,e.next=4,__webpack_require__("qorW")("./"+t);case 4:n=e.sent,this.setState({repl:n}),this.executeCode(n),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(1),this.setState({repl:__WEBPACK_IMPORTED_MODULE_12__raw_loader_repl_default___default.a}),this.executeCode(__WEBPACK_IMPORTED_MODULE_12__raw_loader_repl_default___default.a);case 13:case"end":return e.stop()}},e,this,[[1,9]])}));return e}()},{key:"executeCode",value:function executeCode(code){var scope=this.buildScope();try{__WEBPACK_IMPORTED_MODULE_3_react_dom___default.a.unmountComponentAtNode(this.mount)}catch(e){console.error(e)}try{var compiledResult=this.compileCode(code);__WEBPACK_IMPORTED_MODULE_3_react_dom___default.a.render(eval(compiledResult).apply(void 0,_toConsumableArray(scope)),this.mount),this.state.errorMsg&&this.setState({errorMsg:null})}catch(e){this.setState({errorMsg:e.toString()})}}},{key:"render",value:function(){var e=this,t=this.state,n=t.errorMsg,r=t.repl,o=t.active,a={value:r,onChange:function(t){e.executeCode(t)},options:{mode:"jsx",lineNumbers:!0,theme:"material",tabSize:2,viewportMargin:1/0}};return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8_react_transition_group_Transition___default.a,{in:o,timeout:625},function(t){return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("div",{className:__WEBPACK_IMPORTED_MODULE_5_classnames___default()(__WEBPACK_IMPORTED_MODULE_13__PlayGround_css___default.a.PlayGround__Pane,__WEBPACK_IMPORTED_MODULE_13__PlayGround_css___default.a["PlayGround__Pane--"+t])},__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("div",{className:__WEBPACK_IMPORTED_MODULE_13__PlayGround_css___default.a.PlayGround__Editor},__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__Codemirror__.a,a)),null!==n?__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("p",{className:__WEBPACK_IMPORTED_MODULE_13__PlayGround_css___default.a.PlayGround__ErrorMsg},n):null,__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("div",{className:__WEBPACK_IMPORTED_MODULE_13__PlayGround_css___default.a.PlayGround__Preview,ref:function(t){return e.mount=t}}),__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("button",{className:__WEBPACK_IMPORTED_MODULE_13__PlayGround_css___default.a.PlayGround__Trigger,onClick:e.handleClickTrgger},__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__icons_run_svg__.a,{width:30,height:30})))})}}]),PlayGround}(__WEBPACK_IMPORTED_MODULE_2_react__.Component),_class.defaultProps={componentName:null,scope:_extends({React:__WEBPACK_IMPORTED_MODULE_2_react___default.a},__WEBPACK_IMPORTED_MODULE_10__src_index__)},_class.propTypes={componentName:__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string.isRequired,scope:__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object},_temp2)},"9q7S":function(e,t,n){"use strict";function r(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}var s,u,c=n("TAxY"),l=n.n(c),f=n("Jmof"),p=(n.n(f),n("KSGD")),d=n.n(p),h=n("HW6M"),m=n.n(h),v=n("Yu0Y"),y=n.n(v),b=n("YSWR"),g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=(u=s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),_(t,[{key:"render",value:function(){var e=this.props,t=e.duration,n=e.motion,o=e.timingFunction,a=e.style,i=e.children,s=r(e,["duration","motion","timingFunction","style","children"]),u=g({in:this.props.in,timeout:t},s),c=g({},a,{animationDuration:t+"ms",animationTimingFunction:b.a[o]});return React.createElement(l.a,u,function(e){return React.createElement("div",{style:c,className:m()(y.a[n],y.a[n+"--"+e])},i)})}}]),t}(f.PureComponent),s.displayName="Animation",s.defaultProps={duration:500,motion:"fade",timingFunction:"linear",style:void 0,in:d.a.bool,mountOnEnter:!1,unmountOnExit:!1,enter:!0,exit:!0,onEnter:function(){},onEntering:function(){},onEntered:function(){},onExit:function(){},onExiting:function(){},onExited:function(){}},s.propTypes={duration:d.a.number,motion:d.a.oneOf(b.b),timingFunction:d.a.oneOf(Object.keys(b.a)),style:d.a.object,in:d.a.bool,mountOnEnter:d.a.bool,unmountOnExit:d.a.bool,enter:d.a.bool,exit:d.a.bool,onEnter:d.a.func,onEntering:d.a.func,onEntered:d.a.func,onExit:d.a.func,onExiting:d.a.func,onExited:d.a.func},u);t.a=E},"9uhF":function(e,t,n){"use strict";n("CIox")},"9vc3":function(e,t,n){e.exports=n("zNjz")(361)},"9xIj":function(e,t,n){e.exports=n("zNjz")(305)},"9xe4":function(e,t,n){e.exports=n.p+"7e612164f4745e0a6c97f5275bcf105a.jpg"},"A0n/":function(e,t,n){e.exports=n("zNjz")(262)},A1ng:function(e,t,n){e.exports=n("zNjz")(294)},A52B:function(e,t,n){e.exports=n("zNjz")(391)},A9mX:function(e,t,n){function r(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}var o=n("pTUa");e.exports=r},AFOY:function(e,t,n){n("CZee");var r=n("iANj").Object;e.exports=function(e,t){return r.create(e,t)}},ANuJ:function(e,t,n){var r=n("BUAs"),o=n("uZLI"),a=o.staticVariables,i=o.hsv,s=o.getBrandColors,u={h:206,s:74,v:88},c=s(u);e.exports=r({"brand-primary":i(u),"brand-primary-light":i(c.BRAND_COLOR_LIGHT),"brand-primary-lighter":i(c.BRAND_COLOR_LIGHTER),"brand-primary-lightest":i(c.BRAND_COLOR_LIGHTEST),"brand-primary-dark":i(c.BRAND_COLOR_DARK)},a)},AQlU:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u,c,l=n("Jmof"),f=(n.n(l),n("KSGD")),p=n.n(f),d=n("BEQ0"),h=n.n(d),m=n("211U"),v=n.n(m),y=n("HW6M"),b=n.n(y),g=n("PJh5"),_=n.n(g),E=n("iB3Z"),w=n.n(E),O=n("Pp2j"),P=n("oiih"),x=n("pS//"),S=n.n(x),C=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k=(i=v()(S.a,{allowMultiple:P.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleSubtractCentury=function(){n.onJumpCentury(!0)},n.handleAddCentury=function(){n.onJumpCentury(!1)},n.state=n.getDecadeRange(e),n}return a(t,e),C(t,[{key:"componentWillReceiveProps",value:function(e){this.setState(this.getDecadeRange(e))}},{key:"getDecadeRange",value:function(e){var t=e.decadeYear,n=100*Math.floor(t/100);return{startYear:n,endYear:n+99,decadeYear:t}}},{key:"onChangeDecade",value:function(e){this.props.changeYear(e),this.props.showYearPane()}},{key:"onJumpCentury",value:function(e){var t=this.state,n=t.startYear,r=t.endYear,o=t.decadeYear,a={};e?h()(a,{startYear:n-100,endYear:r-100,decadeYear:o-100}):h()(a,{startYear:n+100,endYear:r+100,decadeYear:o+100}),this.setState(a)}},{key:"renderDecadeHead",value:function(){var e=this.state.decadeYear,t=10*Math.floor(e/10),n=[t,t+9];return React.createElement("div",{styleName:"datePicker__decadePaneHead"},React.createElement("button",{styleName:"datePicker__headControlBtn",onClick:this.handleSubtractCentury},React.createElement(O.a,{name:"arrow-left",size:14})),React.createElement("span",{styleName:"datePicker__decadePane--current"},n.join("-")),React.createElement("button",{styleName:"datePicker__headControlBtn",onClick:this.handleAddCentury},React.createElement(O.a,{name:"arrow-right",size:14})))}},{key:"renderDecades",value:function(){for(var e=[],t=this.state,n=t.startYear,r=t.endYear,o=t.decadeYear,a=n-10;a<=r+1;a+=10){var i={key:a,styleName:b()("datePicker__decadeGrid",{"datePicker__decadeGrid--jump":a===n-10||a===r+1,"datePicker__decadeGrid--active":o>=a&&o<=a+9})};a===n-10||a===r+1?h()(i,{onClick:this.onJumpCentury.bind(this,a===n-10)}):h()(i,{onClick:this.onChangeDecade.bind(this,a)}),e.push(React.createElement("button",i,[a,a+9].join("-")))}return React.createElement("div",{styleName:"datePicker__decadeBody"},e)}},{key:"render",value:function(){var e=this.props.className;return React.createElement("div",{styleName:"datePicker__picker datePicker__decadePane",className:e},this.renderDecadeHead(),this.renderDecades())}}]),t}(l.PureComponent),u.displayName="DecadePane",u.defaultProps={className:"",date:_()(),decadeYear:void 0,changeYear:function(){},showYearPane:function(){}},u.propTypes={className:p.a.string,date:w.a.momentObj,decadeYear:p.a.number,changeYear:p.a.func,showYearPane:p.a.func},s=c))||s;t.a=k},AaiU:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M512 230.935l511.494 511.494-51.142 51.142L512 333.219 51.648 793.571.506 742.429 512 230.935z"});t.a=r},"Ai/T":function(e,t){function n(e){if(null!=e){try{return o.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,o=r.toString;e.exports=n},Aq0r:function(e,t){e.exports=function(){}},Aq3a:function(e,t,n){"use strict";var r=n("Dd8w"),o=n.n(r),a=n("bOdI"),i=n.n(a),s=n("Zrlr"),u=n.n(s),c=n("wxAW"),l=n.n(c),f=n("zwoO"),p=n.n(f),d=n("Pf15"),h=n.n(d),m=n("Jmof"),v=n.n(m),y=n("KSGD"),b=n.n(y),g=n("HW6M"),_=n.n(g),E=n("FfQ2"),w=n("mNwc"),O=function(e){function t(){var e,n,r,o;u()(this,t);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=r=p()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={uid:Object(w.a)()},r.reqs={},r.onChange=function(e){var t=e.target.files;r.uploadFiles(t),r.reset()},r.onClick=function(){var e=r.refs.file;e&&e.click()},r.onKeyDown=function(e){"Enter"===e.key&&r.onClick()},r.onFileDrop=function(e){if("dragover"===e.type)return void e.preventDefault();var t=e.dataTransfer.files;r.uploadFiles(t),e.preventDefault()},o=n,p()(r,o)}return h()(t,e),l()(t,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"uploadFiles",value:function(e){for(var t=Array.prototype.slice.call(e),n=t.length,r=0;r<n;r++){var o=t[r];o.uid=Object(w.a)(),this.upload(o,t)}}},{key:"upload",value:function(e,t){var n=this,r=this.props;if(!r.beforeUpload)return setTimeout(function(){return n.post(e)},0);var o=r.beforeUpload(e,t);o&&o.then?o.then(function(t){var r=Object.prototype.toString.call(t);"[object File]"===r||"[object Blob]"===r?n.post(t):n.post(e)}).catch(function(e){console&&console.log(e)}):!1!==o&&setTimeout(function(){return n.post(e)},0)}},{key:"post",value:function(e){var t=this;if(this._isMounted){var n=this.props,r=n.data,o=n.onStart,a=n.onProgress;"function"==typeof r&&(r=r(e));var i=e.uid,s=n.customRequest||E.a;this.reqs[i]=s({action:n.action,filename:n.name,file:e,data:r,headers:n.headers,withCredentials:n.withCredentials,onProgress:a?function(t){a(t,e)}:null,onSuccess:function(r,o){delete t.reqs[i],n.onSuccess(r,e,o)},onError:function(r,o){delete t.reqs[i],n.onError(r,o,e)}}),o(e)}}},{key:"reset",value:function(){this.setState({uid:Object(w.a)()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e;e&&e.uid&&(n=e.uid),t[n]&&(t[n].abort(),delete t[n])}else Object.keys(t).forEach(function(e){t[e]&&t[e].abort(),delete t[e]})}},{key:"render",value:function(){var e,t=this.props,n=t.component,r=t.prefixCls,a=t.className,s=t.disabled,u=t.style,c=t.multiple,l=t.accept,f=t.children,p=_()((e={},i()(e,r,!0),i()(e,r+"-disabled",s),i()(e,a,a),e)),d=s?{}:{onClick:this.onClick,onKeyDown:this.onKeyDown,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return v.a.createElement(n,o()({},d,{className:p,role:"button",style:u}),v.a.createElement("input",{type:"file",ref:"file",key:this.state.uid,style:{display:"none"},accept:l,multiple:c,onChange:this.onChange}),f)}}]),t}(m.Component);O.propTypes={component:b.a.string,style:b.a.object,prefixCls:b.a.string,className:b.a.string,multiple:b.a.bool,disabled:b.a.bool,accept:b.a.string,children:b.a.any,onStart:b.a.func,data:b.a.oneOfType([b.a.object,b.a.func]),headers:b.a.object,beforeUpload:b.a.func,customRequest:b.a.func,onProgress:b.a.func,withCredentials:b.a.bool},t.a=O},Atfj:function(e,t){e.exports={app:"_3HlwQ0t",home__con:"_17typJq",home__stage:"_1XOmSCj",stage__grid:"_1kBI8f5",cube:"_3ueysSM",cube__squisher:"_21zEp3X",ani:"_2v0Obii",cube__face:"_2F33krP",home__box:"_1GF4fBr",bog__wrap:"_1fzIg-F",box__img:"bPfnmsn",box__exam:"_3DnH83D",explain:"_2rrBlBh",advantages:"_3FP7fKr",advantage__block:"_12IQR5g",container:"_2CeWWBz",head:"vU61OV8",head__brandTitle:"QJKgfCu",head__navigation:"_3u2kgRf",footer:"_3CyDFaB",lineDrawing:"_2f_7jc7",main:"_2eZLEoQ",content:"_37lHsk0",aside:"_2CHXYEV",aside__menu:"I4bPP_P",aside__group:"XQtg4yG",aside__title:"_3YCfCjv",aside__nav:"_3vsBYgw",aside__navItem:"_2PZkZGW",DocPage:"hcnJySF"}},B5V0:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},BEQ0:function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/* object-assign (c) Sindre Sorhus @license MIT */ var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var l in n)a.call(n,l)&&(u[l]=n[l]);if(o){s=o(n);for(var f=0;f<s.length;f++)i.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},BQO6:function(e,t,n){n("tz60"),n("+3lO"),e.exports=n("4DQ7").f("iterator")},BUAs:function(e,t,n){var r=n("i4ON"),o=n("tv3T"),a=n("0DSl"),i=n("bGc4"),s=n("HT7L"),u=n("ktak"),c=Object.prototype,l=c.hasOwnProperty,f=a(function(e,t){if(s(t)||i(t))return void o(t,u(t),e);for(var n in t)l.call(t,n)&&r(e,n,t[n])});e.exports=f},Bn4U:function(e,t,n){"use strict";var r=n("L2Pg");n.d(t,"a",function(){return r.a})},BuW1:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return!e.length||e.every(function(e){return!!e.props.disabled})}function a(e,t){var n=t,r=e.children,o=e.eventKey;if(n){var a=void 0;if((0,x.loopMenuItem)(r,function(e,t){e&&!e.props.disabled&&n===(0,x.getKeyFromChildrenIndex)(e,o,t)&&(a=!0)}),a)return n}return n=null,e.defaultActiveFirst?((0,x.loopMenuItem)(r,function(e,t){n||!e||e.props.disabled||(n=(0,x.getKeyFromChildrenIndex)(e,o,t))}),n):n}function i(e,t,n){n&&(void 0!==t?(this.instanceArray[e]=this.instanceArray[e]||[],this.instanceArray[e][t]=n):this.instanceArray[e]=n)}Object.defineProperty(t,"__esModule",{value:!0});var s=n("bOdI"),u=r(s),c=n("Dd8w"),l=r(c),f=n("Jmof"),p=r(f),d=n("KSGD"),h=r(d),m=n("wLXD"),v=r(m),y=n("Gr1r"),b=r(y),g=n("/XlY"),_=r(g),E=n("HW6M"),w=r(E),O=n("Kw5M"),P=r(O),x=n("eCKj"),S=n("aGZZ"),C=r(S),k={propTypes:{focusable:h.default.bool,multiple:h.default.bool,style:h.default.object,defaultActiveFirst:h.default.bool,visible:h.default.bool,activeKey:h.default.string,selectedKeys:h.default.arrayOf(h.default.string),defaultSelectedKeys:h.default.arrayOf(h.default.string),defaultOpenKeys:h.default.arrayOf(h.default.string),openKeys:h.default.arrayOf(h.default.string),children:h.default.any},getDefaultProps:function(){return{prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{}}},getInitialState:function(){var e=this.props;return{activeKey:a(e,e.activeKey)}},componentWillReceiveProps:function(e){var t=void 0;if("activeKey"in e)t={activeKey:a(e,e.activeKey)};else{var n=this.state.activeKey,r=a(e,n);r!==n&&(t={activeKey:r})}t&&this.setState(t)},shouldComponentUpdate:function(e){return this.props.visible||e.visible},componentWillMount:function(){this.instanceArray=[]},onKeyDown:function(e){var t=this,n=e.keyCode,r=void 0;if(this.getFlatInstanceArray().forEach(function(t){t&&t.props.active&&(r=t.onKeyDown(e))}),r)return 1;var o=null;return n!==b.default.UP&&n!==b.default.DOWN||(o=this.step(n===b.default.UP?-1:1)),o?(e.preventDefault(),this.setState({activeKey:o.props.eventKey},function(){(0,P.default)(v.default.findDOMNode(o),v.default.findDOMNode(t),{onlyScrollIfNeeded:!0})}),1):void 0===o?(e.preventDefault(),this.setState({activeKey:null}),1):void 0},getOpenChangesOnItemHover:function(e){var t=this.props.mode,n=e.key,r=e.hover,o=e.trigger,a=this.state.activeKey;if(o&&!r&&!this.props.closeSubMenuOnMouseLeave&&e.item.isSubMenu&&"inline"!==t||this.setState({activeKey:r?n:null}),r&&"inline"!==t){var i=this.getFlatInstanceArray().filter(function(e){return e&&e.props.eventKey===a})[0];if(i&&i.isSubMenu&&i.props.eventKey!==n)return{item:i,originalEvent:e,key:i.props.eventKey,open:!1}}return[]},getFlatInstanceArray:function(){var e=this.instanceArray;return e.some(function(e){return Array.isArray(e)})&&(e=[],this.instanceArray.forEach(function(t){Array.isArray(t)?e.push.apply(e,t):e.push(t)}),this.instanceArray=e),e},renderCommonMenuItem:function(e,t,n,r){var o=this.state,a=this.props,s=(0,x.getKeyFromChildrenIndex)(e,a.eventKey,t),u=e.props,c=s===o.activeKey,f=(0,l.default)({mode:a.mode,level:a.level,inlineIndent:a.inlineIndent,renderMenuItem:this.renderMenuItem,rootPrefixCls:a.prefixCls,index:t,parentMenu:this,ref:u.disabled?void 0:(0,_.default)(e.ref,i.bind(this,t,n)),eventKey:s,closeSubMenuOnMouseLeave:a.closeSubMenuOnMouseLeave,onItemHover:this.onItemHover,active:!u.disabled&&c,multiple:a.multiple,onClick:this.onClick,openTransitionName:this.getOpenTransitionName(),openAnimation:a.openAnimation,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onDestroy:this.onDestroy,onSelect:this.onSelect},r);return"inline"===a.mode&&(f.closeSubMenuOnMouseLeave=f.openSubMenuOnMouseEnter=!1),p.default.cloneElement(e,f)},renderRoot:function(e){var t;this.instanceArray=[];var n=(t={},(0,u.default)(t,e.prefixCls,1),(0,u.default)(t,e.prefixCls+"-"+e.mode,1),(0,u.default)(t,e.className,!!e.className),t),r={className:(0,w.default)(n),role:"menu","aria-activedescendant":""};return e.id&&(r.id=e.id),e.focusable&&(r.tabIndex="0",r.onKeyDown=this.onKeyDown),p.default.createElement(C.default,(0,l.default)({style:e.style,tag:"ul",hiddenClassName:e.prefixCls+"-hidden",visible:e.visible},r),p.default.Children.map(e.children,this.renderMenuItem))},step:function(e){var t=this.getFlatInstanceArray(),n=this.state.activeKey,r=t.length;if(!r)return null;e<0&&(t=t.concat().reverse());var a=-1;if(t.every(function(e,t){return!e||e.props.eventKey!==n||(a=t,!1)}),this.props.defaultActiveFirst||-1===a||!o(t.slice(a,r-1)))for(var i=(a+1)%r,s=i;;){var u=t[s];if(u&&!u.props.disabled)return u;if((s=(s+1+r)%r)===i)return null}}};t.default=k,e.exports=t.default},BzqH:function(e,t,n){n("nclR"),e.exports=n("iANj").Object.setPrototypeOf},C0hh:function(e,t){function n(){return[]}e.exports=n},C3fY:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M979.775 516.757c.271-9.781-4.69-20.431-13.95-29.474L546.847 77.86c-19.272-18.844-50.552-18.844-69.823 0L58.04 487.284c-10.503 10.26-15.995 21.627-14.211 32.055a20.34 20.34 0 0 0-.204 2.728c0 11.49 9.53 20.807 21.293 20.807h110.525c-2.79 6.103-4.063 13.175-4.063 20.723v353.805c0 22.982 19.064 41.612 42.585 41.612h596.197c23.52 0 42.585-18.63 42.585-41.612V563.597c.287-8.266-.705-15.118-2.859-20.723h109.32c11.762 0 21.293-9.318 21.293-20.807 0-1.838-.269-3.611-.727-5.31zM810.162 875.785c0 22.987-19.064 41.617-42.585 41.617H256.551c-23.521 0-42.585-18.63-42.585-41.617v-353.8h-.004c-.046-11.45-9.554-20.725-21.288-20.725h-85.059l369.408-360.983c19.272-18.837 50.552-18.837 69.823.007l369.407 360.975h-84.797c-11.735 0-21.243 9.275-21.288 20.725h-.004v353.801z"});t.a=r},C4MV:function(e,t,n){e.exports={default:n("rKx+"),__esModule:!0}},CEFT:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("yCNF"),a=r(o),i=n("gGqR"),s=r(i),u="undefined"!=typeof Symbol&&(0,s.default)(Symbol)&&Symbol.iterator;t.default=function(e){var t=void 0;return!!(0,a.default)(e)&&(t=u?e[u]:e["@@iterator"],(0,s.default)(t))},e.exports=t.default},CFF0:function(e,t){e.exports="class Playground extends React.Component {\n render() {\n return <div>PlayGround</div>;\n }\n}\n\nreturn <Playground />;"},CIox:function(e,t,n){"use strict";var r=(n("onEH"),n("p5BY"),n("1S3F"),n("s4hp"));n.d(t,"a",function(){return r.a});var o=n("twkG");n.d(t,"b",function(){return o.a}),n("t1d2"),n("bXVx"),n("Een0"),n("vC7t")},CSeo:function(e,t,n){function r(e,t){for(var n=e.length,r=i(t.length,n),s=o(e);r--;){var u=t[r];e[r]=a(u,n)?s[u]:void 0}return e}var o=n("hrPF"),a=n("ZGh9"),i=Math.min;e.exports=r},"CVR+":function(e,t,n){e.exports=n("zNjz")(385)},CW5P:function(e,t,n){function r(){this.size=0,this.__data__={hash:new o,map:new(i||a),string:new o}}var o=n("T/bE"),a=n("duB3"),i=n("POb3");e.exports=r},CZee:function(e,t,n){var r=n("Wdy1");r(r.S,"Object",{create:n("NZ8V")})},Ce3I:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u,c,l=n("Jmof"),f=(n.n(l),n("KSGD")),p=n.n(f),d=n("HW6M"),h=n.n(d),m=n("211U"),v=n.n(m),y=n("Pp2j"),b=n("oiih"),g=n("L28D"),_=n.n(g),E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),w=(i=v()(_.a,{allowMultiple:b.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.clearCloseTimer=function(){n.closeTimer&&(clearTimeout(n.closeTimer),n.closeTimer=null)},n.close=function(){n.clearCloseTimer(),n.props.onClose()},n.state={},n}return a(t,e),E(t,[{key:"componentDidMount",value:function(){var e=this;this.props.duration&&(this.closeTimer=setTimeout(function(){e.close()},1e3*this.props.duration))}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"render",value:function(){var e=this.props,t=e.type,n=e.children;return React.createElement("div",{styleName:h()("message","message__"+t)},React.createElement("span",{styleName:"message--icon"},React.createElement(y.a,{name:t,size:14})),React.createElement("div",{styleName:"message--content"},n))}}]),t}(l.PureComponent),u.displayName="Message",u.defaultProps={onClose:function(){},duration:1.8,type:"info"},u.propTypes={duration:p.a.number,onClose:p.a.func,type:p.a.oneOf(["info","success","error","warning"])},s=c))||s;t.a=w},Cs5U:function(e,t,n){"use strict";var r=n("XFRO"),o=n("mkCw");r.a.Search=o.a,t.a=r.a},Cskv:function(e,t){function n(e){return this.__data__.set(e,r),this}var r="__lodash_hash_undefined__";e.exports=n},CvWX:function(e,t,n){e.exports=n("zNjz")(324)},CwmF:function(e,t){e.exports={select:"_2D7oHJo",selection:"_1eA_hRH",selectionClose:"_2VrW67D",selectionDownIcon:"_2rJhLTb",selectionCloseIcon:"_2WFFW7r",placeholder:"_2y2eMaK",comboboxInput:"_2qf1_gi",disabled:"_1vBDpEz",dropdown:"_3o8aQDc",option:"cedYGLy",active:"_277sAcu",nooption:"_2VOOJRO",groupname:"_2l6K4Hj"}},CxPB:function(e,t,n){function r(e){return"function"==typeof e?e:o}var o=n("wSKX");e.exports=r},DEG1:function(e,t,n){function r(e){return!0===e||!1===e||a(e)&&o(e)==i}var o=n("aCM0"),a=n("UnEC"),i="[object Boolean]";e.exports=r},"DT0+":function(e,t,n){"use strict";var r=n("Jmof"),o=n("wqO5");if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var a=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,a)},Dc0G:function(e,t,n){(function(e){var r=n("blYT"),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i&&r.process,u=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(t,n("3IRH")(e))},Dcdm:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c,l)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M512 0C229.235 0 0 229.235 0 512s229.235 512 512 512 512-229.235 512-512S794.765 0 512 0zm0 934.4C278.72 934.4 89.6 745.28 89.6 512 89.6 278.72 278.72 89.6 512 89.6S934.4 278.72 934.4 512c0 233.28-189.12 422.4-422.4 422.4z"}),l=i("path",{d:"M448 729.6a5 5 0 1 0 128 0 5 5 0 1 0-128 0zM469.338 567.86c2.56 26.585 19.481 46.54 42.662 46.54 23.18 0 40.102-21.35 42.662-46.54l20.43-264.833c.588-3.417.908-10.893.908-14.451 0-34.304-28.66-58.176-64-58.176s-64 23.872-64 58.176c0 3.558.307 11.034.896 14.438l20.442 264.845z"});t.a=r},Dd8w:function(e,t,n){"use strict";t.__esModule=!0;var r=n("woOf"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=o.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},Di3q:function(e,t){function n(e,t,n,o){for(var a=-1,i=e.length,s=n.length,u=-1,c=t.length,l=r(i-s,0),f=Array(c+l),p=!o;++u<c;)f[u]=t[u];for(;++a<s;)(p||a<i)&&(f[n[a]]=e[a]);for(;l--;)f[u++]=e[a++];return f}var r=Math.max;e.exports=n},DsLQ:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0zm153.6 729.6L467.2 531.2V140.8H560v352l172.8 172.8-67.2 64z"});t.a=r},DuR2:function(e,t,n){e.exports=n("zNjz")(472)},Dv2r:function(e,t,n){function r(e,t){var n=o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var o=n("pTUa");e.exports=r},DvwR:function(e,t,n){var r=n("x//u"),o=n("ksFB"),a=n("PbQV")(!1),i=n("+SdG")("IE_PROTO");e.exports=function(e,t){var n,s=o(e),u=0,c=[];for(n in s)n!=i&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~a(c,n)||c.push(n));return c}},E4Hj:function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},E7AL:function(e,t,n){"use strict";function r(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}var s,u,c,l,f=n("Jmof"),p=n.n(f),d=n("KSGD"),h=(n.n(d),n("211U")),m=n.n(h),v=n("oiih"),y=n("Jfof"),b=n("U0vi"),g=n.n(b),_=n("XcCD"),E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),O=(s=m()(g.a,{allowMultiple:v.b}))((l=c=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),w(t,[{key:"render",value:function(){var e=r(this.props,[]);return p.a.createElement(_.a,e)}}]),t}(f.PureComponent),c.displayName="Progress",c.defaultProps=E({},y.a),c.propTypes=E({},y.b),u=l))||u;t.a=O},EHRO:function(e,t,n){function r(e,t,n,r,o,O,x){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!O(new a(e),new a(t)));case p:case d:case v:return i(+e,+t);case h:return e.name==t.name&&e.message==t.message;case y:case g:return e==t+"";case m:var S=u;case b:var C=r&l;if(S||(S=c),e.size!=t.size&&!C)return!1;var k=x.get(e);if(k)return k==t;r|=f,x.set(e,t);var R=s(S(e),S(t),r,o,O,x);return x.delete(e),R;case _:if(P)return P.call(e)==P.call(t)}return!1}var o=n("NkRn"),a=n("qwTf"),i=n("22B7"),s=n("FhcP"),u=n("WFiI"),c=n("octw"),l=1,f=2,p="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Map]",v="[object Number]",y="[object RegExp]",b="[object Set]",g="[object String]",_="[object Symbol]",E="[object ArrayBuffer]",w="[object DataView]",O=o?o.prototype:void 0,P=O?O.valueOf:void 0;e.exports=r},EHyi:function(e,t,n){"use strict";t.a={data:[{group:"Basic",page:[{name:"Button",icon:"button",title:"按钮"},{name:"Icon",icon:"icon",title:"图标"},{name:"Animation",icon:"animation",title:"动画"}]},{group:"Form",page:[{name:"Input",icon:"input",title:"输入框"},{name:"DatePicker",icon:"datePicker",title:"日期选择器"},{name:"Upload",icon:"Upload",title:"文件上传"},{name:"InputNumber",icon:"inputnumber",title:"数字输入框"},{name:"Checkbox",icon:"checkbox",title:"多选框"},{name:"Radio",icon:"radio",title:"单选框"},{name:"Select",icon:"select",title:"选择器"}]},{group:"View",page:[{name:"Alert",icon:"alert",title:"提示"},{name:"Message",icon:"message",title:"全局提示"},{name:"Modal",icon:"modal",title:"对话框"},{name:"Progress",icon:"progress",title:"进度条"}]},{group:"Navigation",page:[{name:"Breadcrumb",icon:"breadcrumb",title:"面包屑"},{name:"Menu",icon:"menu",title:"导航菜单"},{name:"Pagination",icon:"pagination",title:"分页"},{name:"Steps",icon:"steps",title:"步骤条"},{name:"Tabs",icon:"tabs",title:"标签页"},{name:"Dropdown",icon:"dropdown",title:"标签页"}]},{group:"other",page:[{name:"Spin",icon:"Spin",title:"加载中"},{name:"Trigger",icon:"trigger",title:"弹出层"}]}]}},EMDh:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("Jmof"),a=r(o),i=n("KSGD"),s=r(i),u=n("DT0+"),c=r(u),l=(0,c.default)({displayName:"MenuItemGroup",propTypes:{renderMenuItem:s.default.func,index:s.default.number,className:s.default.string,rootPrefixCls:s.default.string},getDefaultProps:function(){return{disabled:!0}},renderInnerMenuItem:function(e,t){var n=this.props;return(0,n.renderMenuItem)(e,n.index,t)},render:function(){var e=this.props,t=e.className,n=void 0===t?"":t,r=e.rootPrefixCls,o=r+"-item-group-title",i=r+"-item-group-list";return a.default.createElement("li",{className:n+" "+r+"-item-group"},a.default.createElement("div",{className:o},e.title),a.default.createElement("ul",{className:i},a.default.Children.map(e.children,this.renderInnerMenuItem)))}});l.isMenuItemGroup=!0,t.default=l,e.exports=t.default},ETT3:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",viewBox:"0 0 25 25"},e),u)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("path",{d:"M13.5 11.5V0h-2v11.5H0v2h11.5V25h2V13.5H25v-2H13.5z"});t.a=r},EWRu:function(e,t,n){var r=n("W6Rd"),o=Math.max,a=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):a(e,t)}},EagF:function(e,t,n){function r(e,t,n){var r=t+"";return i(e,a(r,s(o(r),n)))}var o=n("EjY5"),a=n("MGe3"),i=n("WHce"),s=n("gY9g");e.exports=r},EbnM:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M511.996 9.862C234.668 9.862 9.862 234.675 9.862 512c0 277.328 224.806 502.138 502.134 502.138 277.321 0 502.138-224.81 502.138-502.138.004-277.325-224.813-502.138-502.138-502.138zM824.89 388.75L473.502 727.583a56.476 56.476 0 0 1-15.588 11.03c-22.066 15.76-52.916 13.756-72.73-6.062L234.284 581.653c-22.065-22.066-22.065-57.833 0-79.884 22.055-22.065 57.822-22.065 79.887 0l113.292 113.285 317.532-306.192c22.061-22.062 57.832-22.062 79.883 0 22.076 22.058 22.076 57.825.01 79.887zm0 0"});t.a=r},Een0:function(e,t,n){"use strict";var r=n("Ygqm"),o=n.n(r),a={},i=0,s=function(e,t){var n=""+t.end+t.strict,r=a[n]||(a[n]={});if(r[e])return r[e];var s=[],u=o()(e,s,t),c={re:u,keys:s};return i<1e4&&(r[e]=c,i++),c},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t&&(t={path:t});var n=t,r=n.path,o=void 0===r?"/":r,a=n.exact,i=void 0!==a&&a,u=n.strict,c=void 0!==u&&u,l=s(o,{end:i,strict:c}),f=l.re,p=l.keys,d=f.exec(e);if(!d)return null;var h=d[0],m=d.slice(1),v=e===h;return i&&!v?null:{path:o,url:"/"===o&&""===h?"/":h,isExact:v,params:p.reduce(function(e,t,n){return e[t.name]=m[n],e},{})}};t.a=u},Eif7:function(e,t,n){n("JyN8"),e.exports=n("iANj").Object.assign},EiuI:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M39.564 910.336l459.959-796.673 459.959 796.673z"});t.a=r},EjY5:function(e,t){function n(e){var t=e.match(r);return t?t[1].split(o):[]}var r=/\{\n\/\* \[wrapped with (.+)\] \*/,o=/,? & /;e.exports=n},"Ep/F":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("BUAs"),a=r(o),i=n("yCNF"),s=r(i),u=n("Jmof"),c=r(u),l=n("XUwW"),f=r(l),p=n("gWyc"),d=r(p);t.default=function(e,t,n){var r=function(){for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=void 0,l=void 0,p=(0,s.default)(t);i.styles||p?(l=Object.assign({},i),u=i.styles?i.styles:t,Object.defineProperty(l,"styles",{configurable:!0,enumerable:!1,value:u,writable:!1})):(l=i,u={});var h=e.apply(void 0,[l].concat(o));return h?(0,f.default)(h,u,n):(0,d.default)(c.default.version)};return(0,a.default)(r,e),r},e.exports=t.default},EuXz:function(e,t,n){e.exports=n("zNjz")(283)},F3sI:function(e,t,n){e.exports=n("zNjz")(317)},F47E:function(e,t){function n(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}e.exports=n},F8kA:function(e,t,n){"use strict";var r=n("8QhD");n.d(t,"a",function(){return r.a});var o=(n("nT98"),n("yL62"));n.d(t,"b",function(){return o.a});var a=(n("XLvd"),n("3r6y"));n.d(t,"c",function(){return a.a});var i=(n("52Em"),n("PGPo"),n("MfZD"));n.d(t,"d",function(){return i.a}),n("dCLN"),n("9uhF"),n("6cJI"),n("yt5j"),n("tfLY")},FCuZ:function(e,t,n){function r(e,t,n){var r=t(e);return a(e)?r:o(r,n(e))}var o=n("uIr7"),a=n("NGEn");e.exports=r},FFnw:function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}var s,u,c,l,f,p=n("Jmof"),d=(n.n(p),n("KSGD")),h=n.n(d),m=n("211U"),v=n.n(m),y=n("Ngpj"),b=n.n(y),g=n("oiih"),_=n("rEdb"),E=n("pYrN"),w=n.n(E),O=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),P=(s=v()(w.a,{allowMultiple:g.b}))((l=c=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));f.call(n);var r="value"in e?e.value:e.defaultValue;return n.state={value:r},n}return i(t,e),O(t,[{key:"componentWillReceiveProps",value:function(e){"value"in e&&this.setState({value:e.value||[]})}},{key:"shouldComponentUpdate",value:function(e,t){return!b()(this.props,e)||!b()(this.state,t)}},{key:"render",value:function(){var e=this,t=this.props,n=this.state,r=t.options,o=t.children;return r&&r.length>0&&(o=this.getOptions().map(function(r){return React.createElement(_.a,{key:r.value,disabled:"disabled"in r?r.disabled:t.disabled,value:r.value,checked:-1!==n.value.indexOf(r.value),onChange:function(){e.toggleOption(r)}},r.label)})),React.createElement("div",{styleName:"checkbox--group"},o)}}]),t}(p.PureComponent),c.displayName="CheckboxGroup",c.defaultProps={type:"checkbox",defaultValue:[],optoins:[],onChange:function(){}},c.propTypes={defaultValue:h.a.array,value:h.a.array,options:h.a.array,onChange:h.a.func,disabled:h.a.bool},c.childContextTypes={checkboxGroup:h.a.any},f=function(){var e=this;this.getChildContext=function(){return{checkboxGroup:{toggleOption:e.toggleOption,value:e.state.value,disabled:e.props.disabled}}},this.getOptions=function(){return e.props.options.map(function(e){return"string"==typeof e?{label:e,value:e}:e})},this.toggleOption=function(t){var n=e.state.value.indexOf(t.value),o=[].concat(r(e.state.value));-1===n?o.push(t.value):o.splice(n,1),"value"in e.props||e.setState({value:o}),e.props.onChange&&e.props.onChange(o)}},u=l))||u;t.a=P},FJ7W:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var r=function(e,t,n){e.addEventListener(t,n,!1)},o=function(e,t,n){e.removeEventListener(t,n,!1)}},FKWp:function(e,t,n){var r=n("8ANE");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},FKfb:function(e,t,n){e.exports=n("zNjz")(412)},FKtm:function(e,t,n){"use strict";t.__esModule=!0;var 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},o=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var o=void 0===t?"undefined":r(t);if(o!==(void 0===n?"undefined":r(n)))return!1;if("object"===o){var a=t.valueOf(),i=n.valueOf();if(a!==t||i!==n)return e(a,i);var s=Object.keys(t),u=Object.keys(n);return s.length===u.length&&s.every(function(r){return e(t[r],n[r])})}return!1};t.default=o},FV3X:function(e,t,n){function r(e,t,n,r){function u(){for(var t=-1,a=arguments.length,s=-1,f=r.length,p=Array(f+a),d=this&&this!==i&&this instanceof u?l:e;++s<f;)p[s]=r[s];for(;a--;)p[s++]=arguments[++t];return o(d,c?n:this,p)}var c=t&s,l=a(e);return u}var o=n("8AZL"),a=n("iu+1"),i=n("TQ3y"),s=1;e.exports=r},"FZ+f":function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var a=r(o);return[n].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([a]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(r[a]=!0)}for(o=0;o<e.length;o++){var i=e[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},FfQ2:function(e,t,n){"use strict";function r(e,t){var n="cannot post "+e.action+" "+t.status+"'",r=new Error(n);return r.status=t.status,r.method="post",r.url=e.action,r}function o(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function a(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).map(function(t){n.append(t,e.data[t])}),n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300)return e.onError(r(e,t),o(t));e.onSuccess(o(t),t)},t.open("post",e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var a=e.headers||{};null!==a["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest");for(var i in a)a.hasOwnProperty(i)&&null!==a[i]&&t.setRequestHeader(i,a[i]);return t.send(n),{abort:function(){t.abort()}}}t.a=a},FhcP:function(e,t,n){function r(e,t,n,r,c,l){var f=n&s,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var h=l.get(e);if(h&&l.get(t))return h==t;var m=-1,v=!0,y=n&u?new o:void 0;for(l.set(e,t),l.set(t,e);++m<p;){var b=e[m],g=t[m];if(r)var _=f?r(g,b,m,t,e,l):r(b,g,m,e,t,l);if(void 0!==_){if(_)continue;v=!1;break}if(y){if(!a(t,function(e,t){if(!i(y,t)&&(b===e||c(b,e,n,r,l)))return y.push(t)})){v=!1;break}}else if(b!==g&&!c(b,g,n,r,l)){v=!1;break}}return l.delete(e),l.delete(t),v}var o=n("7YkW"),a=n("2X2u"),i=n("dmQx"),s=1,u=2;e.exports=r},Fvgr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createChangeEmitter=function(){function e(){o===r&&(o=r.slice())}function t(t){if("function"!=typeof t)throw new Error("Expected listener to be a function.");var n=!0;return e(),o.push(t),function(){if(n){n=!1,e();var r=o.indexOf(t);o.splice(r,1)}}}function n(){r=o;for(var e=r,t=0;t<e.length;t++)e[t].apply(e,arguments)}var r=[],o=r;return{listen:t,emit:n}}},G2xm:function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},G8ar:function(e,t,n){function r(e,t,n){return t===t?i(e,t,n):o(e,a,n)}var o=n("cdq7"),a=n("8++/"),i=n("i6nN");e.exports=r},GCs6:function(e,t,n){var r=n("FKWp"),o=n("LocR"),a=n("9MbE"),i=Object.defineProperty;t.f=n("qs+f")?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},GFgZ:function(e,t){e.exports={mask:"_3v9JpJU","mask--visible":"_10G5ebT",modal:"LrsEe32","modal--visible":"_3gon6Oj",modal__header:"_5faeo8s",modal__closable:"a1dhyEV",modal__footer:"yb8LdV1",modal__content:"_3lViuPm",modal__icon:"_2vid6jg","modal--info":"_2m2QgJW","modal--success":"_2Ucmr_b","modal--error":"_2KpbEF9","modal--warning":"_3KYqRkO"}},Gh7F:function(e,t,n){e.exports=n("zNjz")(322)},GhAV:function(e,t,n){var r=n("W6Rd"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},GmAb:function(e,t){e.exports={trigger:"_3A_xDs1","trigger--wrap":"_1fJcokE",popup:"_3WT1yrT","popup--hidden":"_3CuSPSp"}},GmwO:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},Gr1r:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229};r.isTextModifyingKeyEvent=function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},r.isCharacterKey=function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigation.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},t.default=r,e.exports=t.default},Gsca:function(e,t){e.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},GvBW:function(e,t,n){"use strict";var r=function(){};e.exports=r},H0mh:function(e,t,n){e.exports=n("zNjz")(315)},H2te:function(e,t,n){"use strict";var r=n("KSGD"),o=n.n(r),a=n("GFgZ"),i=n.n(a),s=function(e){var t=e.visible,n=e.children;return React.createElement("div",{className:i.a["mask"+(t?"--visible":"")]},n)};s.defaultProps={visible:!1},s.propTypes={visible:o.a.bool},t.a=s},HDB8:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}n.d(t,"a",function(){return w});var i,s,u,c=n("Jmof"),l=n.n(c),f=n("HW6M"),p=n.n(f),d=n("KSGD"),h=n.n(d),m=n("hFTO"),v=n("RfUY"),y=n("QES8"),b=n("6Fy1"),g=n("CwmF"),_=n.n(g),E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),w=(s=i=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));u.call(n);var a=n.props.value||n.props.defaultValue,i=n.getValue(n.props.children,a);return n.state={value:a,title:i||void 0,dropdownVisible:!1},n.lastState={value:n.state.value,title:n.state.title},n}return a(t,e),E(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.disabled,r=e.type,o=this.props.style.width;if(n)return l.a.createElement("div",{className:_.a.select},l.a.createElement("div",{className:p()(_.a.selection,_.a.disabled),style:{width:o}},this.state.title||l.a.createElement("span",{className:_.a.placeholder},this.props.placeholder),l.a.createElement(m.a,{name:"arrow-down",size:14,className:_.a.selectionDownIcon})));var a="";"dropdown"===r?a=this.state.title||l.a.createElement("span",{className:_.a.placeholder},this.props.placeholder):"combobox"===r&&(a=l.a.createElement("input",{type:"text",className:_.a.comboboxInput,onChange:this.onComboboxInputChanged,placeholder:this.props.placeholder,value:this.state.value}));var i=t.length,s=this.state.dropdownVisible;return l.a.createElement("div",{className:_.a.select},l.a.createElement(v.a,{action:"click",popup:l.a.createElement("div",{className:_.a.dropdown,style:{width:o}},l.a.createElement("ul",null,l.a.createElement("li",{className:p()(_.a.nooption),style:{display:0===i?"block":"none"}},"无匹配选项"),t)),placement:["tl","bl"],mouseLeaveDelay:100,popupVisible:s,onPopupVisibleChange:this.onDropdownVisibleChanged},l.a.createElement("div",{className:this.state.value?_.a.selectionClose:_.a.selection,style:{width:o}},a,l.a.createElement(m.a,{name:s?"arrow-up":"arrow-down",size:14,className:_.a.selectionDownIcon}),this.state.value?l.a.createElement(m.a,{name:"close",size:14,className:_.a.selectionCloseIcon,onClick:this.remove}):"")))}}]),t}(c.PureComponent),i.displayName="Select",i.OptGroup=y.a,i.Option=b.a,i.defaultProps={placeholder:"请选择",type:"dropdown",style:{width:200},disabled:!1,children:null,onSearch:function(){},onChange:function(){},onCancelChange:function(){}},i.propTypes={placeholder:h.a.string,type:h.a.oneOf(["dropdown","combobox"]),style:h.a.object,disabled:h.a.bool,value:h.a.string,defaultValue:h.a.string,onSearch:h.a.func,children:h.a.arrayOf(h.a.element),onChange:h.a.func,onCancelChange:h.a.func},i.childContextTypes={childContext:h.a.any},u=function(){var e=this;this.getChildContext=function(){return{childContext:{onOptionSelected:e.onOptionSelected,getSelectedValue:e.getSelectedValue}}},this.componentWillReceiveProps=function(t,n){if(t.value&&t.value!==e.state.value){var r=t.value,o=e.getValue(e.props.children,r);e.setState({value:t.value,title:o})}},this.onDropdownVisibleChanged=function(t){if(e.setState({dropdownVisible:t}),"combobox"===e.props.type){var n=e.props.onCancelChange;t||(e.setState({value:e.lastState.value,title:e.lastState.title}),n())}},this.onComboboxInputChanged=function(t){var n=t.target.value,r=e.props.onSearch;r&&r(n),n?e.setState({value:n,title:n}):(e.lastState={value:"",title:void 0},e.setState({title:"",value:void 0}))},this.onOptionSelected=function(t,n){e.setState({dropdownVisible:!1}),void 0!==e.props.value?e.props.onChange({value:t,title:n}):(e.setState({value:t,title:n}),e.props.onChange(t,n))},this.getSelectedValue=function(){return e.state.value},this.getValue=function(t,n){var r="";return l.a.Children.map(t,function(t){r||(t.type===y.a?r=e.getValue(t.props.children,n):t.type===b.a?t.props.value===n&&(r=t.props.title||t.props.children):r=e.getValue(t.props.children,n))}),r},this.remove=function(t){t&&t.stopPropagation(),e.lastState.title=void 0,e.lastState.value="",e.setState({value:"",title:void 0});var n=e.props.onChange;n&&n({})}},s)},HIVZ:function(e,t,n){"use strict";e.exports=n("M/nl")},HKGd:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("Dd8w"),a=r(o),i=n("Jmof"),s=r(i),u=n("KSGD"),c=r(u),l=n("DT0+"),f=r(l),p=n("Gr1r"),d=r(p),h=n("HW6M"),m=r(h),v=n("eCKj"),y=(0,f.default)({displayName:"MenuItem",propTypes:{rootPrefixCls:c.default.string,eventKey:c.default.string,active:c.default.bool,children:c.default.any,selectedKeys:c.default.array,disabled:c.default.bool,title:c.default.string,onSelect:c.default.func,onClick:c.default.func,onDeselect:c.default.func,parentMenu:c.default.object,onItemHover:c.default.func,onDestroy:c.default.func,onMouseEnter:c.default.func,onMouseLeave:c.default.func},getDefaultProps:function(){return{onSelect:v.noop,onMouseEnter:v.noop,onMouseLeave:v.noop}},componentWillUnmount:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey),e.parentMenu.menuItemInstance===this&&this.clearMenuItemMouseLeaveTimer()},onKeyDown:function(e){if(e.keyCode===d.default.ENTER)return this.onClick(e),!0},onMouseLeave:function(e){var t=this,n=this.props,r=n.eventKey,o=n.parentMenu;o.menuItemInstance=this,o.menuItemMouseLeaveFn=function(){n.active&&n.onItemHover({key:r,item:t,hover:!1,domEvent:e,trigger:"mouseleave"})},o.menuItemMouseLeaveTimer=setTimeout(o.menuItemMouseLeaveFn,30),n.onMouseLeave({key:r,domEvent:e})},onMouseEnter:function(e){var t=this.props,n=t.eventKey,r=t.parentMenu;this.clearMenuItemMouseLeaveTimer(r.menuItemInstance!==this),r.subMenuInstance&&r.subMenuInstance.clearSubMenuTimers(),t.onItemHover({key:n,item:this,hover:!0,domEvent:e,trigger:"mouseenter"}),t.onMouseEnter({key:n,domEvent:e})},onClick:function(e){var t=this.props,n=this.isSelected(),r=t.eventKey,o={key:r,keyPath:[r],item:this,domEvent:e};t.onClick(o),t.multiple?n?t.onDeselect(o):t.onSelect(o):n||t.onSelect(o)},getPrefixCls:function(){return this.props.rootPrefixCls+"-item"},getActiveClassName:function(){return this.getPrefixCls()+"-active"},getSelectedClassName:function(){return this.getPrefixCls()+"-selected"},getDisabledClassName:function(){return this.getPrefixCls()+"-disabled"},clearMenuItemMouseLeaveTimer:function(){var e=this.props,t=e.parentMenu;t.menuItemMouseLeaveTimer&&(clearTimeout(t.menuItemMouseLeaveTimer),t.menuItemMouseLeaveTimer=null,t.menuItemMouseLeaveFn=null)},isSelected:function(){return-1!==this.props.selectedKeys.indexOf(this.props.eventKey)},render:function(){var e=this.props,t=this.isSelected(),n={};n[this.getActiveClassName()]=!e.disabled&&e.active,n[this.getSelectedClassName()]=t,n[this.getDisabledClassName()]=e.disabled,n[this.getPrefixCls()]=!0,n[e.className]=!!e.className;var r=(0,a.default)({},e.attribute,{title:e.title,className:(0,m.default)(n),role:"menuitem","aria-selected":t,"aria-disabled":e.disabled}),o={};e.disabled||(o={onClick:this.onClick,onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter});var i=(0,a.default)({},e.style);return"inline"===e.mode&&(i.paddingLeft=e.inlineIndent*e.level),s.default.createElement("li",(0,a.default)({style:i},r,o),e.children)}});y.isMenuItem=1,t.default=y,e.exports=t.default},HSnN:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o="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},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("rnpr"),s=r(i),u=n("Izpu"),c=n("xIPz"),l=n("tqq1"),f=r(l),p=function(e,t,n){return Math.min(Math.max(e,t),n)},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,i=e.initialIndex,l=void 0===i?0:i,d=e.keyLength,h=void 0===d?6:d,m=(0,f.default)(),v=function(e){a(R,e),R.length=R.entries.length,m.notifyListeners(R.location,R.action)},y=function(){return Math.random().toString(36).substr(2,h)},b=p(l,0,r.length-1),g=r.map(function(e){return"string"==typeof e?(0,c.createLocation)(e,void 0,y()):(0,c.createLocation)(e,void 0,e.key||y())}),_=u.createPath,E=function(e,n){(0,s.default)(!("object"===(void 0===e?"undefined":o(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,c.createLocation)(e,n,y(),R.location);m.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=R.index,n=t+1,o=R.entries.slice(0);o.length>n?o.splice(n,o.length-n,r):o.push(r),v({action:"PUSH",location:r,index:n,entries:o})}})},w=function(e,n){(0,s.default)(!("object"===(void 0===e?"undefined":o(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,c.createLocation)(e,n,y(),R.location);m.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(R.entries[R.index]=r,v({action:"REPLACE",location:r}))})},O=function(e){var n=p(R.index+e,0,R.entries.length-1),r=R.entries[n];m.confirmTransitionTo(r,"POP",t,function(e){e?v({action:"POP",location:r,index:n}):v()})},P=function(){return O(-1)},x=function(){return O(1)},S=function(e){var t=R.index+e;return t>=0&&t<R.entries.length},C=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return m.setPrompt(e)},k=function(e){return m.appendListener(e)},R={length:g.length,action:"POP",location:g[b],index:b,entries:g,createHref:_,push:E,replace:w,go:O,goBack:P,goForward:x,canGo:S,block:C,listen:k};return R};t.default=d},HT7L:function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=n},HW6M:function(e,t,n){var r,o;/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var i in r)a.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}var a={}.hasOwnProperty;void 0!==e&&e.exports?e.exports=n:(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},Ha6d:function(e,t,n){"use strict";function r(e){return{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.filename||e.name,size:e.size,type:e.type,uid:e.uid,response:e.response,error:e.error,percent:0,originFileObj:e,status:null}}function o(){var e=.1;return function(t){var n=t;return n>=.98?n:(n+=e,e-=.01,e<.001&&(e=.001),100*n)}}function a(e,t){var n=e.uid?"uid":"name";return t.filter(function(t){return t[n]===e[n]})[0]}function i(e,t){var n=e.uid?"uid":"name",r=t.filter(function(t){return t[n]!==e[n]});return r.length===t.length?null:r}t.a=r,t.b=o,t.c=a,t.d=i},Hbpm:function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}var s,u,c,l,f=n("Jmof"),p=(n.n(f),n("KSGD")),d=n.n(p),h=n("211U"),m=n.n(h),v=n("PJh5"),y=n.n(v),b=n("iB3Z"),g=n.n(b),_=n("BEQ0"),E=n.n(_),w=n("5Srr"),O=n.n(w),P=n("myQc"),x=n("oiih"),S=n("pS//"),C=n.n(S),k=n("XWNV"),R=n("ciS7"),j=n("UMRL"),T=n("AQlU"),N=n("lkey"),M=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),D=(s=m()(C.a,{allowMultiple:x.b}))((l=c=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onPaneVisibleChange=function(e){n.props.onVisibleChange(e)},n.onSetDecade=function(e,t,o,a){if("range"===n.props.type){var i=[].concat(r(n.state.currentRangePane)),s=[].concat(r(n.state.decadeYears));i[a]="decade",s[a]=e,n.setState({currentRangePane:i,decadeYears:s})}else n.setState({currentPane:"decade",decadeYear:e})},n.onSetYear=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];if("range"===n.props.type){var a=[].concat(r(n.state.currentRangePane));a[t[t.length-1]]="year",n.setState({currentRangePane:a})}else n.setState({currentPane:"year"})},n.onSetMonth=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];if("range"===n.props.type){var a=[].concat(r(n.state.currentRangePane));a[t[t.length-1]]="month",n.setState({currentRangePane:a})}else n.setState({currentPane:"month"})},n.onSetDate=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];var a=void 0;switch(n.props.type){case"range":a=[].concat(r(n.state.currentRangePane)),a[t[t.length-1]]="date",n.setState({currentRangePane:a});break;case"month":break;case"date":default:n.setState({currentPane:"date"})}},n.cancelAction=function(){n.props.onVisibleChange(!1)},n.confirmAction=function(){n.props.changeDate(n.state.rangeDate),n.props.onVisibleChange(!1)},n.changeDate=function(e,t,r,o){var a={year:e,month:t,date:r};if("range"===n.props.type){var i=n.state.rangeDate.slice(0);i[o]=y()(a),n.setState({rangeDate:i})}else n.props.changeDate(a)},n.changeMonth=function(e,t){switch(n.props.type){case"range":var r=n.state.rangeDate;r[t].set("month",e),n.setState({rangeDate:r});break;case"month":n.props.changeDate({month:e});break;case"date":default:n.state.date.set("month",e)}},n.changeYear=function(e,t){"range"===n.props.type?n.state.rangeDate[t].set("year",e):n.state.date.set("year",e)},n.manipulateDate=function(e,t,o,a){if("range"===n.props.type){var i=[].concat(r(n.state.rangeDate));i[a]=y()(i[a])[e](t,o),n.setState({rangeDate:i})}else n.setState({date:y()(n.state.date)[e](t,o)})},n.state=E()({currentPane:e.type,currentRangePane:["date","date"],decadeYear:void 0,decadeYears:[void 0,void 0]},n.getDateFromProps(e)),n}return i(t,e),M(t,[{key:"componentWillReceiveProps",value:function(e){this.setState(this.getDateFromProps(e))}},{key:"setRange",value:function(e){var t=[];switch(e){case"today":default:var n=y()();t.push(n),t.push(n);break;case"week":t.push(y()().startOf("week")),t.push(y()().endOf("week"));break;case"month":t.push(y()().startOf("month")),t.push(y()().endOf("month"))}this.setState({rangeDate:t})}},{key:"getDateFromProps",value:function(e){return"range"===e.type?{date:null,rangeDate:e.rangeDate.map(function(e){return y()(e)})}:{date:y()(e.date),rangeDate:null}}},{key:"renderPane",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=this.props.type,i=this.state.rangeDate,s={date:e,manipulateDate:O()(this.manipulateDate,r)},u=void 0,c=void 0;switch(t){case"date":default:"range"===a?(c=function(e){return 1===r?e.isBefore(i[0]):e.isAfter(i[1])},E()(s,{inRange:function(e){return e.isBetween(i[0],i[1])},alwaysShowEqualWeeks:!0})):c=this.props.disabledDate,E()(s,{changeDate:O()(this.changeDate,r),showYearPane:O()(this.onSetYear,r),showMonthPane:O()(this.onSetMonth,r),disabledDate:c,className:o}),u=k.a;break;case"month":E()(s,{changeMonth:O()(this.changeMonth,r),showYearPane:O()(this.onSetYear,r),showDatePane:O()(this.onSetDate,r)}),u=R.a;break;case"year":E()(s,{changeYear:O()(this.changeYear,r),showMonthPane:O()(this.onSetMonth,r),showDecadePane:O()(this.onSetDecade,r)}),u=j.a;break;case"decade":E()(s,{changeYear:O()(this.changeYear,r),showYearPane:O()(this.onSetYear,r),decadeYear:n}),u=T.a}return Object(f.createElement)(u,s)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.type,o=t.paneVisible,a=this.state,i=a.date,s=a.rangeDate,u=a.decadeYear,c=a.decadeYears,l=a.currentPane,f=a.currentRangePane,p=void 0;return p="range"===r?React.createElement("div",{className:C.a.rangePicker},React.createElement("div",{className:C.a.rangePicker__picker},this.renderPane(s[0],f[0],c[0],0,C.a["picker--start"]),this.renderPane(s[1],f[1],c[1],1,C.a["picker--end"])),React.createElement("div",{className:C.a.rangePicker__quickSelect},React.createElement(N.a,{size:"small",type:"secondary",onClick:function(){e.setRange("today")}},"今天"),React.createElement(N.a,{size:"small",type:"secondary",onClick:function(){e.setRange("week")}},"本周"),React.createElement(N.a,{size:"small",type:"secondary",onClick:function(){e.setRange("month")}},"本月")),React.createElement("div",{className:C.a.rangePicker__action},React.createElement(N.a,{type:"secondary",onClick:this.cancelAction},"取消"),React.createElement(N.a,{type:"primary",onClick:this.confirmAction},"确定"))):this.renderPane(i,l,u),React.createElement(P.a,{popup:p,action:"click",popupVisible:o,onPopupVisibleChange:this.onPaneVisibleChange},n)}}]),t}(f.PureComponent),c.displayName="Picker",c.defaultProps={date:y()(),rangeDate:[y()(),y()()],type:"date",changeDate:function(){},disabledDate:function(){},onVisibleChange:function(){},paneVisible:!1},c.propTypes={date:g.a.momentObj,rangeDate:d.a.arrayOf(g.a.momentObj),type:d.a.oneOf(["date","month","range"]),changeDate:d.a.func,disabledDate:d.a.func,onVisibleChange:d.a.func,paneVisible:d.a.bool},u=l))||u;t.a=D},"Hl+4":function(e,t,n){e.exports=n("zNjz")(312)},Hrs4: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}function o(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}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function s(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)}var u,c,l,f,p=n("Jmof"),d=(n.n(p),n("KSGD")),h=n.n(d),m=n("211U"),v=n.n(m),y=n("HW6M"),b=n.n(y),g=n("Pp2j"),_=n("oiih"),E=n("sA5H"),w=n.n(E),O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),x=(u=v()(w.a,{allowMultiple:_.b}))((f=l=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n}return s(t,e),P(t,[{key:"render",value:function(){var e=this.props,t=e.status,n=void 0===t?"wait":t,a=e.description,i=e.title,s=e.stepNumber,u=e.itemWidth,c=e.adjustMarginRight,l=e.isFinishIcon,f=o(e,["status","description","title","stepNumber","itemWidth","adjustMarginRight","isFinishIcon"]),p=void 0;p="finish"===n&&l?React.createElement("span",{styleName:"steps--icon"},React.createElement(g.a,{name:"check",size:14})):React.createElement("span",{styleName:"steps--icon"},s);var d=b()(r({"steps--item":!0},"steps--item__"+n,!0));return React.createElement("div",O({},f,{styleName:d,style:{width:u,marginRight:c}}),React.createElement("div",{styleName:"steps--tail"},React.createElement("i",null)),React.createElement("div",{styleName:"steps--step"},React.createElement("div",{styleName:"steps--head"},React.createElement("div",{styleName:"steps--headinner"},p)),React.createElement("div",{styleName:"steps--main"},React.createElement("div",{styleName:"steps--title"},i),a?React.createElement("div",{styleName:"steps--description"},a):null)))}}]),t}(p.PureComponent),l.displayName="Step",l.defaultProps={status:"",title:"",description:"",stepNumber:"",itemWidth:0,adjustMarginRight:0,isFinishIcon:!1},l.propTypes={status:h.a.string,title:h.a.string,description:h.a.string,stepNumber:h.a.string,itemWidth:h.a.oneOfType([h.a.number,h.a.string]),adjustMarginRight:h.a.oneOfType([h.a.number,h.a.string]),isFinishIcon:h.a.bool},c=f))||c;t.a=x},Hxdr:function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}e.exports=n},HzHG:function(e,t,n){"use strict";function r(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0;if(e.constructor===Array)t=e.map(function(e){return e});else{t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}return r(t,Object.getPrototypeOf(e)),t},e.exports=t.default},I7B8:function(e,t,n){"use strict";var r=n("NZ8V"),o=n("YTz9"),a=n("LhDF"),i={};n("aLzV")(i,n("hgbu")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(i,{next:o(1,n)}),a(e,t+" Iterator")}},I7v8:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M793.065 512l-51.142 51.142-460.352 460.352-51.142-51.142L690.78 512 230.43 51.648 281.57.506l460.352 460.352L793.065 512z"});t.a=r},ICSD:function(e,t,n){function r(e,t){var n=a(e,t);return o(n)?n:void 0}var o=n("ITwD"),a=n("mTAn");e.exports=r},IGcM:function(e,t,n){function r(e,t,n){t=o(t,e);for(var r=-1,l=t.length,f=!1;++r<l;){var p=c(t[r]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++r!=l?f:!!(l=null==e?0:e.length)&&u(l)&&s(p,l)&&(i(e)||a(e))}var o=n("bIjD"),a=n("1Yb9"),i=n("NGEn"),s=n("ZGh9"),u=n("Rh28"),c=n("Ubhr");e.exports=r},ITwD:function(e,t,n){function r(e){return!(!i(e)||a(e))&&(o(e)?h:c).test(s(e))}var o=n("gGqR"),a=n("eFps"),i=n("yCNF"),s=n("Ai/T"),u=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=Function.prototype,f=Object.prototype,p=l.toString,d=f.hasOwnProperty,h=RegExp("^"+p.call(d).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},IggZ:function(e,t,n){"use strict";function r(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}var s,u,c=n("Jmof"),l=(n.n(c),n("KSGD")),f=n.n(l),p=n("az00"),d=n("VUJU"),h=(n.n(d),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}),m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=(u=s=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n}return i(t,e),m(t,[{key:"render",value:function(){var e=this.props,t=(e.className,e.size),n=r(e,["className","size"]),o="input-number-"+t;return React.createElement(p.a,h({className:o},n))}}]),t}(c.PureComponent),s.displayName="InputNumber",s.defaultProps={step:1,size:"normal"},s.propTypes={min:f.a.number,max:f.a.number,value:f.a.number,step:f.a.oneOfType([f.a.number,f.a.string]),defaultValue:f.a.number,onChange:f.a.func,disabled:f.a.bool,size:f.a.oneOf(["normal","large","small"]),formatter:f.a.func,parser:f.a.func,placeholder:f.a.string,className:f.a.string},u);t.a=v},IjVy:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length?"rgb("+m.a.fromHsvObject(t[0]).toRgbArray().join(", ")+")":"rgb("+m.a.fromHsvArray(t).toRgbArray().join(", ")+")"}n.d(t,"a",function(){return S});var s,u,c=n("BUAs"),l=n.n(c),f=n("Jmof"),p=(n.n(f),n("211U")),d=n.n(p),h=n("SgDZ"),m=n.n(h),v=n("myQc"),y=n("o9M+"),b=n("oiih"),g=n("ANuJ"),_=n.n(g),E=n("zbwT"),w=n.n(E),O=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),P={Blue:{h:206,s:74,v:88},Orange:{h:28,s:79,v:100}},x={width:18,height:18},S=(s=d()(w.a,{allowMultiple:b.b}))(u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.applyTheme(),n}return a(t,e),O(t,[{key:"applyTheme",value:function(e){var t={};if(e){var n=P[e];l()(t,{"brand-primary":i(n),"brand-primary-light":i(l()({},n,{s:n.s-17,v:n.v+3})),"brand-primary-lighter":i(l()({},n,{s:n.s-30,v:n.v+5})),"brand-primary-lightest":i(l()({},n,{s:n.s-50,v:100})),"brand-primary-dark":i(l()({},n,{s:n.s+20,v:n.v-5}))})}else l()(t,_.a);Object.keys(t).forEach(function(e){document.documentElement.style.setProperty("--"+e,t[e])})}},{key:"handleChangeTheme",value:function(e){this.applyTheme(e)}},{key:"renderPalette",value:function(){var e=this;return React.createElement("div",{className:w.a.ThemePicker__palette},Object.keys(P).map(function(t){var n={backgroundColor:i(P[t])};return React.createElement("span",{style:n,key:t,className:w.a.ThemePicker__colorGrid,onClick:e.handleChangeTheme.bind(e,t)})}))}},{key:"render",value:function(){var e={action:"click",popup:this.renderPalette(),placement:["tr","br"],offset:[0,5],mouseLeaveDelay:100};return React.createElement("div",{styleName:"ThemePicker"},React.createElement(v.a,e,React.createElement("span",{styleName:"theme__tag"},React.createElement(y.a,x),React.createElement("span",null,"主题"))))}}]),t}(f.PureComponent))||u},IttV:function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r&&o(t,e[n],0)>-1;);return n}var o=n("G8ar");e.exports=r},IzCJ:function(e,t,n){e.exports=n("zNjz")(256)},Izpu:function(e,t,n){"use strict";t.__esModule=!0;var r=(t.addLeadingSlash=function(e){return"/"===e.charAt(0)?e:"/"+e},t.stripLeadingSlash=function(e){return"/"===e.charAt(0)?e.substr(1):e},t.hasBasename=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)});t.stripBasename=function(e,t){return r(e,t)?e.substr(t.length):e},t.stripTrailingSlash=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},t.parsePath=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},t.createPath=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},"J+5T":function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M118.687 894.892l264.694-74.164 27.384-27.426-186.335-186.34-27.673 27.628-78.07 260.302zm136.793-318.98L441.845 762.27l364.217-364.264-186.336-186.342L255.48 575.912zm634.65-373.358l-74.978-74.976c-42.886-42.887-68.472-42.887-111.344 0l-53.013 53.057 186.34 186.315 53.015-53.031c42.87-42.891 42.87-68.474-.02-111.365zm-509.89-69.68c-42.886-42.89-68.497-42.89-111.383 0L91.607 310.1l-31.05-31.056 186.34-186.336c42.886-42.89 112.396-42.89 155.286 0l102.64 102.646-31.05 31.05-93.533-93.529zM169.24 325.647l62.13-62.131 31.076 31.055-62.131 62.126-3.688-3.688 34.717 34.767 93.156-93.204 31.08 31.076-93.16 93.153 9.484 9.488-31.07 31.056L91.589 310.099l31.075-31.056 46.578 46.604zm434.825 434.798l93.156 93.16 46.602 46.597 146.178-146.206c42.886-42.896 42.886-68.503 0-111.39l-98.035-98.029 31.05-31.06 107.146 107.151c42.886 42.886 42.886 112.389 0 155.285L774.88 931.234l-31.056 31.056-31.05-31.056L559.024 777.49l31.056-31.056 13.985 14.011zm124.235-62.1l-93.16 93.15-31.075-31.05 93.156-93.2 31.079 31.1zm15.523 46.553l31.056 31.075-77.633 77.632-31.05-31.075 77.627-77.632zm0 0"});t.a=r},JBvZ:function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}var o=n("imBK");e.exports=r},JCVn:function(e,t,n){"use strict";var r=n("9q7S");n.d(t,"a",function(){return r.a})},JG34:function(e,t,n){e.exports=n("zNjz")(394)},JH27:function(e,t,n){function r(e,t){var n=e[1],r=t[1],m=n|r,v=m<(u|c|p),y=r==p&&n==f||r==p&&n==d&&e[7].length<=t[8]||r==(p|d)&&t[7].length<=t[8]&&n==f;if(!v&&!y)return e;r&u&&(e[2]=t[2],m|=n&u?0:l);var b=t[3];if(b){var g=e[3];e[3]=g?o(g,b,t[4]):b,e[4]=g?i(e[3],s):t[4]}return b=t[5],b&&(g=e[5],e[5]=g?a(g,b,t[6]):b,e[6]=g?i(e[5],s):t[6]),b=t[7],b&&(e[7]=b),r&p&&(e[8]=null==e[8]?t[8]:h(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=m,e}var o=n("Di3q"),a=n("8NDG"),i=n("akIm"),s="__lodash_placeholder__",u=1,c=2,l=4,f=8,p=128,d=256,h=Math.min;e.exports=r},JJqH:function(e,t,n){"use strict";function r(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}var s,u,c,l,f,p,d,h,m=n("Jmof"),v=(n.n(m),n("KSGD")),y=n.n(v),b=n("211U"),g=n.n(b),_=n("myQc"),E=n("lkey"),w=n("oiih"),O=n("n9aI"),P=n.n(O),x=n("rI/1"),S=n("zTU1"),C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),R=(s=g()(P.a,{allowMultiple:w.b}))((l=c=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n}return i(t,e),k(t,[{key:"render",value:function(){var e=this.props,t=e.trigger,n=e.overlay,r=e.placement,o=e.children,a=S.a[r],i=a.points,s=a.offset;return React.createElement(_.a,{action:t,popup:n,offset:s,placement:i},o)}}]),t}(m.PureComponent),c.displayName="Dropdown",c.defaultProps={trigger:"click",overlay:void 0,placement:"bottomLeft"},c.propTypes={trigger:y.a.oneOf(["hover","click"]),overlay:y.a.instanceOf(x.a),placement:y.a.oneOf(["bottomLeft","bottomCenter","bottomRight","topLeft","topCenter","topRight"])},u=l))||u,j=(f=g()(P.a,{allowMultiple:w.b}))((h=d=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n}return i(t,e),k(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.type,o=r(e,["children","type"]);return React.createElement("div",{styleName:"dropdown--buttonWrap"},React.createElement(E.a,{type:n},t),React.createElement(R,o,React.createElement(E.a,{type:n},"arrow")))}}]),t}(m.PureComponent),d.displayName="DropdownButton",d.defaultProps=C({},R.defaultProps,{type:E.a.defaultProps.type,placement:"bottomRight"}),d.propTypes=C({},R.propTypes,{type:E.a.propTypes.type}),p=h))||p;R.Menu=x.a,R.Button=j,t.a=R},JUs9:function(e,t,n){function r(e,t){return!!(null==e?0:e.length)&&o(e,t,0)>-1}var o=n("G8ar");e.exports=r},Jfof:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return i});var r=n("KSGD"),o=n.n(r),a={percent:0,status:"normal",size:"normal",showInfo:!0},i={percent:o.a.number,status:o.a.oneOf(["normal","exception","pause","success"]),size:o.a.oneOf(["normal","mini"]),showInfo:o.a.bool}},Jmof:function(e,t){e.exports=React},JyN8:function(e,t,n){var r=n("Wdy1");r(r.S+r.F,"Object",{assign:n("xVc6")})},JyYQ:function(e,t,n){function r(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?s(e)?a(e[0],e[1]):o(e):u(e)}var o=n("d+aQ"),a=n("eKBv"),i=n("wSKX"),s=n("NGEn"),u=n("iL3P");e.exports=r},K0JP:function(e,t,n){e.exports=n("zNjz")(381)},K96V:function(e,t,n){function r(e){for(var t=e.name+"",n=o[t],r=i.call(o,t)?n.length:0;r--;){var a=n[r],s=a.func;if(null==s||s==e)return a.name}return t}var o=n("d6Sb"),a=Object.prototype,i=a.hasOwnProperty;e.exports=r},KGqH:function(e,t){function n(e){return e.match(f)||[]}var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",u="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",a,i].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",c="[\\ufe0e\\ufe0f]?"+s+u,l="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,a,i,"[\\ud800-\\udfff]"].join("|")+")",f=RegExp(o+"(?="+o+")|"+l+c,"g");e.exports=n},KJ7Q:function(e,t,n){"use strict";var r=n("eo4W");t.a=r.a},KMSM:function(e,t){function n(){}e.exports=n},KR8v:function(e,t,n){!function(e){!function(e){"use strict";function t(e,t,n,r){this.state=e,this.mode=t,this.depth=n,this.prev=r}function n(r){return new t(e.copyState(r.mode,r.state),r.mode,r.depth,r.prev&&n(r.prev))}e.defineMode("jsx",function(r,o){function a(e){var t=e.tagName;e.tagName=null;var n=c.indent(e,"");return e.tagName=t,n}function i(e,t){return t.context.mode==c?s(e,t,t.context):u(e,t,t.context)}function s(n,o,s){if(2==s.depth)return n.match(/^.*?\*\//)?s.depth=1:n.skipToEnd(),"comment";if("{"==n.peek()){c.skipAttribute(s.state);var u=a(s.state),f=s.state.context;if(f&&n.match(/^[^>]*>\s*$/,!1)){for(;f.prev&&!f.startOfLine;)f=f.prev;f.startOfLine?u-=r.indentUnit:s.prev.state.lexical&&(u=s.prev.state.lexical.indented)}else 1==s.depth&&(u+=r.indentUnit);return o.context=new t(e.startState(l,u),l,0,o.context),null}if(1==s.depth){if("<"==n.peek())return c.skipAttribute(s.state),o.context=new t(e.startState(c,a(s.state)),c,0,o.context),null;if(n.match("//"))return n.skipToEnd(),"comment";if(n.match("/*"))return s.depth=2,i(n,o)}var p,d=c.token(n,s.state),h=n.current();return/\btag\b/.test(d)?/>$/.test(h)?s.state.context?s.depth=0:o.context=o.context.prev:/^</.test(h)&&(s.depth=1):!d&&(p=h.indexOf("{"))>-1&&n.backUp(h.length-p),d}function u(n,r,o){if("<"==n.peek()&&l.expressionAllowed(n,o.state))return l.skipExpression(o.state),r.context=new t(e.startState(c,l.indent(o.state,"")),c,0,r.context),null;var a=l.token(n,o.state);if(!a&&null!=o.depth){var i=n.current();"{"==i?o.depth++:"}"==i&&0==--o.depth&&(r.context=r.context.prev)}return a}var c=e.getMode(r,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1}),l=e.getMode(r,o&&o.base||"javascript");return{startState:function(){return{context:new t(e.startState(l),l)}},copyState:function(e){return{context:n(e.context)}},token:i,indent:function(e,t,n){return e.context.mode.indent(e.context.state,t,n)},innerMode:function(e){return e.context}}},"xml","javascript"),e.defineMIME("text/jsx","jsx"),e.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})}(n("8U58"),n("ezqs"),n("5IAE"))}()},KRSh:function(e,t){e.exports={pagination:"_1L_-sT1",pagination__ctrl:"_2tvnb-l",pagination__pages:"cfbKU8w",pagination__total:"_2KQ0PhC",pagination__jumperField:"_280nkVW","pagination--normal":"_3HZDVl5",pagination__item:"jsRFs8b",pagination__ellipsis:"_13KUpSV","pagination__item--active":"_1ZyqWB7",pagination__sizeChanger:"_3O0s4JU",pagination__jumper:"wBezPz9","pagination--small":"_2CnmpyB"}},KSGD:function(e,t,n){e.exports=n("Q4WQ")()},KmWZ:function(e,t,n){function r(){this.__data__=new o,this.size=0}var o=n("duB3");e.exports=r},Kw5M:function(e,t,n){"use strict";e.exports=n("8rJT")},L28D:function(e,t){e.exports={"message--box":"_3_LyTzy",message:"rvYOolG","message--content":"_2VEwa73","message--icon":"_1o8wQ0I",message__info:"_23xuyLQ",message__success:"_22HZ3wd",message__error:"_1XT6zY1",message__warning:"_3SWQ13b"}},L2Pg:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u,c,l,f=n("Jmof"),p=n.n(f),d=n("Z8+Z"),h=n.n(d),m=n("KSGD"),v=n.n(m),y=n("211U"),b=n.n(y),g=n("oiih"),_=n("bK9A"),E=n.n(_),w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),P=(i=b()(E.a,{allowMultiple:g.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));l.call(n);var a=null;return"defaultOpenKeys"in e?a=e.defaultOpenKeys:"openKeys"in e&&(a=e.openKeys),n.state={openKeys:a||[]},n}return a(t,e),O(t,[{key:"componentWillReceiveProps",value:function(e){"vertical-v"===this.props.type&&"vertical-v"!==e.type&&(this.switchModeFromInline=!0),"openKeys"in e&&this.setState({openKeys:e.openKeys})}},{key:"setOpenKeys",value:function(e){"openKeys"in this.props||this.setState({openKeys:e})}},{key:"render",value:function(){var e={},t=(this.props.className,"");switch(this.props.type){case"horizontal-h":t="horizontal-h";break;case"horizontal-v":t="horizontal";break;case"vertical-h":t="vertical";break;case"vertical-v":t="inline"}return e="inline"===t?{mode:t}:{openKeys:this.state.openKeys,onClick:this.handleClick,onOpenChange:this.handleOpenChange,mode:t},e.className="color-"+this.props.colorType,e.styleName="menu",e.prefixCls="menu",e.inlineIndent=18,p.a.createElement(h.a,w({},this.props,e))}}]),t}(f.PureComponent),u.SubMenu=d.SubMenu,u.Item=d.Item,u.ItemGroup=d.ItemGroup,u.displayName="Menu",u.defaultProps={type:"inline",colorType:"warm",selectedKeys:[],defaultOpenKeys:[],onClick:null},u.propTypes={type:v.a.oneOf(["horizontal-h","horizontal-v","vertical-h","vertical-v"]),colorType:v.a.oneOf(["warm","cold"]),selectedKeys:v.a.arrayOf(v.a.string),defaultOpenKeys:v.a.arrayOf(v.a.string),openKeys:v.a.arrayOf(v.a.string),onClick:v.a.func,onOpenChange:v.a.func},l=function(){var e=this;this.handleOpenChange=function(t){e.setOpenKeys(t);var n=e.props.onOpenChange;n&&n(t)},this.handleClick=function(t){e.setOpenKeys([]);var n=e.props.onClick;n&&n(t)}},s=c))||s;t.a=P},LG56:function(e,t,n){e.exports=n("zNjz")(293)},LeV5:function(e,t,n){"use strict";function r(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}var s,u,c,l,f=n("Jmof"),p=(n.n(f),n("211U")),d=n.n(p),h=n("BEQ0"),m=n.n(h),v=n("oiih"),y=n("pS//"),b=n.n(y),g=n("89jE"),_=n("vdxk"),E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),O=(s=d()(b.a,{allowMultiple:v.b}))((l=c=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),w(t,[{key:"render",value:function(){var e=this.props,t=(e.pickerType,r(e,["pickerType"])),n=E({pickerType:"month"},t);return React.createElement(g.a,n)}}]),t}(f.PureComponent),c.displayName="MonthPicker",c.defaultProps=m()({},_.a,{format:"YYYY-MM"}),c.propTypes=_.b,u=l))||u;t.a=O},LhDF:function(e,t,n){var r=n("GCs6").f,o=n("x//u"),a=n("hgbu")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},LlNE:function(e,t,n){e.exports=n("zNjz")(304)},LlVb:function(e,t,n){function r(e){return!("function"==typeof o.isMoment&&!o.isMoment(e))&&("function"==typeof e.isValid?e.isValid():!isNaN(e))}var o=n("PJh5");e.exports={isValidMoment:r}},LocR:function(e,t,n){e.exports=!n("qs+f")&&!n("zyKz")(function(){return 7!=Object.defineProperty(n("PY1i")("div"),"a",{get:function(){return 7}}).a})},Lqg1:function(e,t,n){e.exports=n("zNjz")(308)},"M/nl":function(e,t,n){"use strict";e.exports.AppContainer=n("lx7a")},M1c9:function(e,t){function n(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}e.exports=n},M6Wl:function(e,t,n){function r(e,t){return e&&o(e,t,a)}var o=n("rpnb"),a=n("ktak");e.exports=r},MGe3:function(e,t){function n(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(r,"{\n/* [wrapped with "+t+"] */\n")}var r=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=n},MGiy:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}n.d(t,"a",function(){return g});var i,s,u=n("Jmof"),c=(n.n(u),n("F8kA")),l=n("211U"),f=n.n(l),p=n("Atfj"),d=n.n(p),h=n("oiih"),m=n("IjVy"),v=n("iL3w"),y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),b={width:14,height:14},g=(i=f()(d.a,{allowMultiple:h.b}))(s=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),y(t,[{key:"render",value:function(){var e=this.props,t=(e.match,e.children);return React.createElement("div",{className:d.a.app},React.createElement("div",{styleName:"container"},React.createElement("header",{styleName:"head"},React.createElement("h1",{styleName:"head__brandTitle"},React.createElement(c.b,{to:"/"},"Quark UI")),React.createElement("nav",{styleName:"head__navigation"},React.createElement(c.c,{to:"/",exact:!0},"首页"),React.createElement(c.c,{to:"/component/alert"},"组件"),React.createElement(c.c,{to:"/usage"},"如何使用"),React.createElement(c.c,{to:"/changes"},"版本历史"),React.createElement(c.c,{to:"/design"},"视觉规范")),React.createElement(m.a,null))),u.Children.map(t,function(e){return Object(u.cloneElement)(e)}),React.createElement("footer",{styleName:"footer"},"Copyright ©     易货嘀研发中心    ",React.createElement(v.a,b),"易货嘀UED"))}}]),t}(u.PureComponent))||s},MTIv:function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=h[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(l(r.parts[a],t))}else{for(var i=[],a=0;a<r.parts.length;a++)i.push(l(r.parts[a],t));h[r.id]={id:r.id,refs:1,parts:i}}}}function o(e,t){for(var n=[],r={},o=0;o<e.length;o++){var a=e[o],i=t.base?a[0]+t.base:a[0],s=a[1],u=a[2],c=a[3],l={css:s,media:u,sourceMap:c};r[i]?r[i].parts.push(l):n.push(r[i]={id:i,parts:[l]})}return n}function a(e,t){var n=v(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=g[g.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function i(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=g.indexOf(e);t>=0&&g.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",c(t,e.attrs),a(e,t),t}function u(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",c(t,e.attrs),a(e,t),t}function c(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function l(e,t){var n,r,o,a;if(t.transform&&e.css){if(!(a=t.transform(e.css)))return function(){};e.css=a}if(t.singleton){var c=b++;n=y||(y=s(t)),r=f.bind(null,n,c,!1),o=f.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(t),r=d.bind(null,n,t),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=p.bind(null,n),o=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function f(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=E(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function p(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t,n){var r=n.css,o=n.sourceMap,a=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||a)&&(r=_(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var i=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(i),s&&URL.revokeObjectURL(s)}var h={},m=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),v=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}(function(e){return document.querySelector(e)}),y=null,b=0,g=[],_=n("mJPh");e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=m()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=o(e,t);return r(n,t),function(e){for(var a=[],i=0;i<n.length;i++){var s=n[i],u=h[s.id];u.refs--,a.push(u)}e&&r(o(e,t),t);for(var i=0;i<a.length;i++){var u=a[i];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete h[u.id]}}}};var E=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},MfZD:function(e,t,n){"use strict";var r=n("CIox");n.d(t,"a",function(){return r.a})},MfeA:function(e,t,n){e.exports=n("zNjz")(368)},MfeS:function(e,t,n){function r(e,t,n){function r(){return(this&&this!==a&&this instanceof r?u:e).apply(s?n:this,arguments)}var s=t&i,u=o(e);return r}var o=n("iu+1"),a=n("TQ3y"),i=1;e.exports=r},Mfsv:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u,c,l=n("Jmof"),f=(n.n(l),n("KSGD")),p=n.n(f),d=n("211U"),h=n.n(d),m=n("Ngpj"),v=n.n(m),y=n("8RmA"),b=n("oiih"),g=n("s16o"),_=n.n(g),E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),w=(i=h()(_.a,{allowMultiple:b.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n}return a(t,e),E(t,[{key:"shouldComponentUpdate",value:function(e,t,n){return!v()(this.props,e)||!v()(this.state,t)||!v()(this.context.radioGroup,n.radioGroup)}},{key:"render",value:function(){var e=this.props,t=this.context,n=t.radioGroup,r=e;return n&&(r.onChange=n.onChange,r.checked=e.value==n.value,r.disabled=e.disabled||n.disabled),React.createElement(y.a,r)}}]),t}(l.PureComponent),u.displayName="RadioButton",u.defaultProps={prefixCls:"radio-button"},u.propTypes={prefixCls:p.a.string},u.contextTypes={radioGroup:p.a.any},s=c))||s;t.a=w},MjHD:function(e,t,n){e.exports=n("zNjz")(313)},MjHY:function(e,t,n){"use strict";var r=n("tObA");n.d(t,"a",function(){return r.a})},MoMe:function(e,t,n){function r(e){return o(e,i,a)}var o=n("FCuZ"),a=n("l9Lx"),i=n("ktak");e.exports=r},MqYG:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"15",viewBox:"0 0 21 15"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("path",{d:"M10.5 13.8c3.117 0 6.03-1.9 8.763-5.844a.8.8 0 0 0 0-.912C16.53 3.1 13.617 1.2 10.5 1.2S4.47 3.1 1.737 7.044a.8.8 0 0 0 0 .912C4.47 11.9 7.383 13.8 10.5 13.8zm0 1.2C6.94 15 3.69 12.88.75 8.64a2 2 0 0 1 0-2.28C3.69 2.12 6.94 0 10.5 0c3.56 0 6.81 2.12 9.75 6.36a2 2 0 0 1 0 2.28C17.31 12.88 14.06 15 10.5 15z"}),c=i("path",{d:"M10.5 9.8a2.3 2.3 0 1 0 0-4.6 2.3 2.3 0 0 0 0 4.6zm0 1.2a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7z"});t.a=r},MsuQ:function(e,t,n){e.exports=n("zNjz")(237)},MyHc:function(e,t,n){e.exports=n.p+"22a4bb2708c02a0c512bd620791c9608.jpg"},MyjO:function(e,t,n){e.exports=n("zNjz")(378)},N4KQ:function(e,t,n){e.exports=n("zNjz")(311)},NGEn:function(e,t){var n=Array.isArray;e.exports=n},NMac:function(e,t,n){var r=n("8ANE"),o=n("FKWp"),a=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("3fMt")(Function.call,n("rjjF").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},NS0f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("9mmO"),o=(n.n(r),n("52Wt")),a=(n.n(o),n("TFWu")),i=(n.n(a),n("MyjO")),s=(n.n(i),n("qtRy")),u=(n.n(s),n("THnP")),c=(n.n(u),n("K0JP")),l=(n.n(c),n("NfZy")),f=(n.n(l),n("dTzs")),p=(n.n(f),n("+vXH")),d=(n.n(p),n("MsuQ")),h=(n.n(d),n("dSUw")),m=(n.n(h),n("ZDXm")),v=(n.n(m),n("V/H1")),y=(n.n(v),n("CVR+")),b=(n.n(y),n("vmSu")),g=(n.n(b),n("4ZU1")),_=(n.n(g),n("yx1U")),E=(n.n(_),n("SPtU")),w=(n.n(E),n("A52B")),O=(n.n(w),n("PuTd")),P=(n.n(O),n("dm+7")),x=(n.n(P),n("JG34")),S=(n.n(x),n("Rw4K")),C=(n.n(S),n("9mGU")),k=(n.n(C),n("bUY0")),R=(n.n(k),n("mTp7")),j=(n.n(R),n("y9m4")),T=(n.n(j),n("A0n/")),N=(n.n(T),n("n12u")),M=(n.n(N),n("nRs1")),D=(n.n(M),n("jrHM")),A=(n.n(D),n("EuXz")),I=(n.n(A),n("F3sI")),L=(n.n(I),n("bqOW")),z=(n.n(L),n("Racj")),K=(n.n(z),n("tqSY")),U=(n.n(K),n("CvWX")),G=(n.n(U),n("Y1S0")),B=(n.n(G),n("Gh7F")),W=(n.n(B),n("pd+2")),F=(n.n(W),n("MfeA")),V=(n.n(F),n("VjuZ")),H=(n.n(V),n("mJx5")),Y=(n.n(H),n("qwQ3")),J=(n.n(Y),n("beEN")),q=(n.n(J),n("xMpm")),Q=(n.n(q),n("9vc3")),X=(n.n(Q),n("WpTh")),Z=(n.n(X),n("U6qc")),$=(n.n(Z),n("No4x")),ee=(n.n($),n("WgSQ")),te=(n.n(ee),n("yuXV")),ne=(n.n(te),n("XtiL")),re=(n.n(ne),n("A1ng")),oe=(n.n(re),n("LG56")),ae=(n.n(oe),n("Stuz")),ie=(n.n(ae),n("aJ2J")),se=(n.n(ie),n("WiIn")),ue=(n.n(se),n("v2lb")),ce=(n.n(ue),n("7Jvp")),le=(n.n(ce),n("lyhN")),fe=(n.n(le),n("kBOG")),pe=(n.n(fe),n("xONB")),de=(n.n(pe),n("LlNE")),he=(n.n(de),n("9xIj")),me=(n.n(he),n("m6Yj")),ve=(n.n(me),n("wrs0")),ye=(n.n(ve),n("Lqg1")),be=(n.n(ye),n("pWGb")),ge=(n.n(be),n("1ip3")),_e=(n.n(ge),n("N4KQ")),Ee=(n.n(_e),n("Hl+4")),we=(n.n(Ee),n("MjHD")),Oe=(n.n(we),n("SRCy")),Pe=(n.n(Oe),n("H0mh")),xe=(n.n(Pe),n("gbyG")),Se=(n.n(xe),n("YVn/")),Ce=(n.n(Se),n("FKfb")),ke=(n.n(Ce),n("zmx7")),Re=(n.n(ke),n("smQ+")),je=(n.n(Re),n("m8F4")),Te=(n.n(je),n("v8VU")),Ne=(n.n(Te),n("dich")),Me=(n.n(Ne),n("fx22")),De=(n.n(Me),n("SldL")),Ae=(n.n(De),n("wLXD")),Ie=n.n(Ae),Le=n("Jmof"),ze=n.n(Le),Ke=n("rGbO"),Ue=(n.n(Ke),n("9P2o"));!function(e){Ie.a.render(ze.a.createElement(Ke.AppContainer,null,ze.a.createElement(e,null)),document.getElementById("App"))}(Ue.a)},NU0k:function(e,t,n){var r=n("NZra");e.exports=Array.isArray||function(e){return"Array"==r(e)}},NVLL:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){r(this,e),this.size=0,this.keys=[],this.values=[]}return e.prototype.get=function(e){var t=this.keys.indexOf(e);return this.values[t]},e.prototype.set=function(e,t){return this.keys.push(e),this.values.push(t),this.size=this.keys.length,t},e}();t.default=o,e.exports=t.default},NZ8V:function(e,t,n){var r=n("FKWp"),o=n("r3+g"),a=n("B5V0"),i=n("+SdG")("IE_PROTO"),s=function(){},u=function(){var e,t=n("PY1i")("iframe"),r=a.length;for(t.style.display="none",n("+iDZ").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[a[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[i]=e):n=u(),void 0===t?n:o(n,t)}},NZra:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},NfZy:function(e,t,n){e.exports=n("zNjz")(382)},Ngpj:function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<a.length;u++){var c=a[u];if(!s(c))return!1;var l=e[c],f=t[c];if(!1===(o=n?n.call(r,l,f,c):void 0)||void 0===o&&l!==f)return!1}return!0}},Ni2A:function(e,t,n){"use strict";var r=n("itjH"),o=n("P/S5"),a=n("6coI"),i=n("I7v8"),s=n("AaiU"),u=n("aI9a"),c=n("Dcdm"),l=n("OHBz"),f=n("DsLQ"),p=n("yEYY"),d=n("QLpV"),h=n("2QIw"),m=n("J+5T"),v=n("mrcQ"),y=n("9hop"),b=n("7rD7"),g=n("UTPB"),_=n("ua1c"),E=n("j+Wt"),w=n("C3fY"),O=n("e8CS"),P=n("S5ub"),x=n("ETT3"),S=n("Or8X"),C=n("WFkW"),k=n("wNtP"),R=n("Vuq1"),j=n("l0Na"),T=n("tHlN"),N=n("EbnM"),M=n("l+8+"),D=n("0HOK"),A=n("EiuI"),I=n("pJKf"),L=n("MqYG"),z=n("boXX"),K={account:r.a,"arrow-down":o.a,"arrow-left":a.a,"arrow-right":i.a,"arrow-up":s.a,attachment:u.a,caution:c.a,check:l.a,clock:f.a,close:p.a,code:d.a,copy:h.a,customise:m.a,"double-arrow-left":v.a,"double-arrow-right":y.a,ellipsis:b.a,error:g.a,fail:_.a,finance:E.a,home:w.a,info:O.a,paper:P.a,plus:x.a,question:S.a,question2:C.a,react:k.a,recycle:R.a,search:j.a,setting:T.a,success:N.a,theme:M.a,"triangle-down":D.a,"triangle-up":A.a,upload:I.a,visible:L.a,warning:z.a};t.a=K},NkRn:function(e,t,n){var r=n("TQ3y"),o=r.Symbol;e.exports=o},No4x:function(e,t,n){e.exports=n("zNjz")(362)},NqMn:function(e,t,n){function r(e,t,n){function r(){for(var a=arguments.length,p=Array(a),d=a,h=u(r);d--;)p[d]=arguments[d];var m=a<3&&p[0]!==h&&p[a-1]!==h?[]:c(p,h);return(a-=m.length)<n?s(e,t,i,r.placeholder,void 0,p,m,void 0,void 0,n-a):o(this&&this!==l&&this instanceof r?f:e,this,p)}var f=a(e);return r}var o=n("8AZL"),a=n("iu+1"),i=n("b2mn"),s=n("v0t+"),u=n("XVfB"),c=n("akIm"),l=n("TQ3y");e.exports=r},NqZt:function(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=n},Ntt2:function(e,t,n){var r=n("YjQv"),o=n("iANj"),a=n("c8Kh"),i=n("4DQ7"),s=n("GCs6").f;e.exports=function(e){var t=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:i.f(e)})}},OCGy:function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},a="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,n){if("string"!=typeof t){var i=Object.getOwnPropertyNames(t);a&&(i=i.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;++s)if(!(r[i[s]]||o[i[s]]||n&&n[i[s]]))try{e[i[s]]=t[i[s]]}catch(e){}}return e}},OEdS:function(e,t,n){(function(t){var n="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},r=function(){var e=/\blang(?:uage)?-(\w+)\b/i,t=0,r=n.Prism={util:{encode:function(e){return e instanceof o?new o(e.type,r.util.encode(e.content),e.alias):"Array"===r.util.type(e)?e.map(r.util.encode):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function(e){switch(r.util.type(e)){case"Object":var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=r.util.clone(e[n]));return t;case"Array":return e.map&&e.map(function(e){return r.util.clone(e)})}return e}},languages:{extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){o=o||r.languages;var a=o[e];if(2==arguments.length){n=arguments[1];for(var i in n)n.hasOwnProperty(i)&&(a[i]=n[i]);return a}var s={};for(var u in a)if(a.hasOwnProperty(u)){if(u==t)for(var i in n)n.hasOwnProperty(i)&&(s[i]=n[i]);s[u]=a[u]}return r.languages.DFS(r.languages,function(t,n){n===o[e]&&t!=e&&(this[t]=s)}),o[e]=s},DFS:function(e,t,n,o){o=o||{};for(var a in e)e.hasOwnProperty(a)&&(t.call(e,a,e[a],n||a),"Object"!==r.util.type(e[a])||o[r.util.objId(e[a])]?"Array"!==r.util.type(e[a])||o[r.util.objId(e[a])]||(o[r.util.objId(e[a])]=!0,r.languages.DFS(e[a],t,a,o)):(o[r.util.objId(e[a])]=!0,r.languages.DFS(e[a],t,null,o)))}},plugins:{},highlightAll:function(e,t){var n={callback:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",n);for(var o,a=n.elements||document.querySelectorAll(n.selector),i=0;o=a[i++];)r.highlightElement(o,!0===e,n.callback)},highlightElement:function(t,o,a){for(var i,s,u=t;u&&!e.test(u.className);)u=u.parentNode;u&&(i=(u.className.match(e)||[,""])[1].toLowerCase(),s=r.languages[i]),t.className=t.className.replace(e,"").replace(/\s+/g," ")+" language-"+i,u=t.parentNode,/pre/i.test(u.nodeName)&&(u.className=u.className.replace(e,"").replace(/\s+/g," ")+" language-"+i);var c=t.textContent,l={element:t,language:i,grammar:s,code:c};if(r.hooks.run("before-sanity-check",l),!l.code||!l.grammar)return l.code&&(l.element.textContent=l.code),void r.hooks.run("complete",l);if(r.hooks.run("before-highlight",l),o&&n.Worker){var f=new Worker(r.filename);f.onmessage=function(e){l.highlightedCode=e.data,r.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,a&&a.call(l.element),r.hooks.run("after-highlight",l),r.hooks.run("complete",l)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else l.highlightedCode=r.highlight(l.code,l.grammar,l.language),r.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,a&&a.call(t),r.hooks.run("after-highlight",l),r.hooks.run("complete",l)},highlight:function(e,t,n){var a=r.tokenize(e,t);return o.stringify(r.util.encode(a),n)},tokenize:function(e,t,n){var o=r.Token,a=[e],i=t.rest;if(i){for(var s in i)t[s]=i[s];delete t.rest}e:for(var s in t)if(t.hasOwnProperty(s)&&t[s]){var u=t[s];u="Array"===r.util.type(u)?u:[u];for(var c=0;c<u.length;++c){var l=u[c],f=l.inside,p=!!l.lookbehind,d=!!l.greedy,h=0,m=l.alias;if(d&&!l.pattern.global){var v=l.pattern.toString().match(/[imuy]*$/)[0];l.pattern=RegExp(l.pattern.source,v+"g")}l=l.pattern||l;for(var y=0,b=0;y<a.length;b+=a[y].length,++y){var g=a[y];if(a.length>e.length)break e;if(!(g instanceof o)){l.lastIndex=0;var _=l.exec(g),E=1;if(!_&&d&&y!=a.length-1){if(l.lastIndex=b,!(_=l.exec(e)))break;for(var w=_.index+(p?_[1].length:0),O=_.index+_[0].length,P=y,x=b,S=a.length;P<S&&x<O;++P)x+=a[P].length,w>=x&&(++y,b=x);if(a[y]instanceof o||a[P-1].greedy)continue;E=P-y,g=e.slice(b,x),_.index-=b}if(_){p&&(h=_[1].length);var w=_.index+h,_=_[0].slice(h),O=w+_.length,C=g.slice(0,w),k=g.slice(O),R=[y,E];C&&R.push(C);var j=new o(s,f?r.tokenize(_,f):_,m,_,d);R.push(j),k&&R.push(k),Array.prototype.splice.apply(a,R)}}}}}return a},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,a=0;o=n[a++];)o(t)}}},o=r.Token=function(e,t,n,r,o){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!o};if(o.stringify=function(e,t,n){if("string"==typeof e)return e;if("Array"===r.util.type(e))return e.map(function(n){return o.stringify(n,t,e)}).join("");var a={type:e.type,content:o.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n};if("comment"==a.type&&(a.attributes.spellcheck="true"),e.alias){var i="Array"===r.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(a.classes,i)}r.hooks.run("wrap",a);var s=Object.keys(a.attributes).map(function(e){return e+'="'+(a.attributes[e]||"").replace(/"/g,"&quot;")+'"'}).join(" ");return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+(s?" "+s:"")+">"+a.content+"</"+a.tag+">"},!n.document)return n.addEventListener?(n.addEventListener("message",function(e){var t=JSON.parse(e.data),o=t.language,a=t.code,i=t.immediateClose;n.postMessage(r.highlight(a,r.languages[o],o)),i&&n.close()},!1),n.Prism):n.Prism;var a=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return a&&(r.filename=a.src,document.addEventListener&&!a.hasAttribute("data-manual")&&("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(r.highlightAll):window.setTimeout(r.highlightAll,16):document.addEventListener("DOMContentLoaded",r.highlightAll))),n.Prism}();void 0!==e&&e.exports&&(e.exports=r),void 0!==t&&(t.Prism=r),r.languages.markup={comment:/<!--[\w\W]*?-->/,prolog:/<\?[\w\W]+?\?>/,doctype:/<!DOCTYPE[\w\W]+?>/i,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},r.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),r.languages.xml=r.languages.markup,r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:{pattern:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},r.languages.css.atrule.inside.rest=r.util.clone(r.languages.css),r.languages.markup&&(r.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\w\W]*?>)[\w\W]*?(?=<\/style>)/i,lookbehind:!0,inside:r.languages.css,alias:"language-css"}}),r.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|').*?\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:r.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:r.languages.css}},alias:"language-css"}},r.languages.markup.tag)),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\w\W]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:{pattern:/(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(true|false)\b/,function:/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{keyword:/\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/,function:/[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*\*?|\/|~|\^|%|\.{3}/}),r.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^\/])\/(?!\/)(\[.+?]|\\.|[^\/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0,greedy:!0}}),r.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\\\|\\?[^\\])*?`/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}}}),r.languages.markup&&r.languages.insertBefore("markup","tag",{script:{pattern:/(<script[\w\W]*?>)[\w\W]*?(?=<\/script>)/i,lookbehind:!0,inside:r.languages.javascript,alias:"language-javascript"}}),r.languages.js=r.languages.javascript,function(){"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(){var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.forEach&&Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach(function(t){for(var n,o=t.getAttribute("data-src"),a=t,i=/\blang(?:uage)?-(?!\*)(\w+)\b/i;a&&!i.test(a.className);)a=a.parentNode;if(a&&(n=(t.className.match(i)||[,""])[1]),!n){var s=(o.match(/\.(\w+)$/)||[,""])[1];n=e[s]||s}var u=document.createElement("code");u.className="language-"+n,t.textContent="",u.textContent="Loading…",t.appendChild(u);var c=new XMLHttpRequest;c.open("GET",o,!0),c.onreadystatechange=function(){4==c.readyState&&(c.status<400&&c.responseText?(u.textContent=c.responseText,r.highlightElement(u)):c.status>=400?u.textContent="✖ Error "+c.status+" while fetching file: "+c.statusText:u.textContent="✖ Error: File does not exist or is empty")},c.send(null)})},document.addEventListener("DOMContentLoaded",self.Prism.fileHighlight))}()}).call(t,n("DuR2"))},OHBz:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1025 1024",xmlns:"http://www.w3.org/2000/svg",width:"200.195",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M950.782 127.489L328.07 750.117 73.151 495.17 0 568.452l328.071 328.06L1024 200.657z"});t.a=r},OoWg:function(e,t,n){n("Ntt2")("observable")},Or8X:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c,l)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M512 0C229.218 0 0 229.218 0 512s229.218 512 512 512 512-229.218 512-512S794.782 0 512 0zm0 944C273.406 944 80 750.594 80 512S273.406 80 512 80s432 193.406 432 432-193.406 432-432 432z"}),l=i("path",{d:"M480 704h64v64h-64v-64zM635.468 300.296c-12.968-13.25-29.376-23.844-49.532-32.062C565.53 260.03 541.592 256 513.374 256c-23.938 0-45.75 4.032-65.562 12.234-19.876 8.218-37 19.546-51.376 34.25-14.25 14.578-25.344 29.016-33 49.546C355.812 372.562 352 384 352 416h65.312c0-32 8.468-56.218 25.876-77.032 17.188-20.906 40.532-29.64 70.188-29.64 28.876 0 50.468 7.828 64.344 21.876 13.75 14.046 20.782 34.172 20.782 59.594 0 19.766-6.5 37.516-19.468 52.984a509.737 509.737 0 0 1-41.688 44.876c-15.188 14.282-27.344 29.532-39.906 45.282S480 568.032 480 588.938V640h64v-27.5c0-16.406 2.406-30.624 8.812-43.032C559 557.03 566.718 545.75 576.5 535.686a368.683 368.683 0 0 1 30.938-29.656c11-9.532 21.562-19.718 31.062-30.344 9.688-10.688 17.75-22.688 23.876-35.938 6.438-13.25 9.656-28.812 9.656-46.954 0-15.75-2.844-31.782-8.782-48.078-5.812-16.42-15.188-31.184-27.782-44.42z"});t.a=r},OvRC:function(e,t,n){e.exports={default:n("AFOY"),__esModule:!0}},"P/S5":function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M512 793.065L.506 281.571l51.142-51.142L512 690.781l460.352-460.352 51.142 51.142L512 793.065z"});t.a=r},PGPo:function(e,t,n){"use strict";n("CIox")},PJh5:function(e,t,n){e.exports=n("zNjz")(1)},POb3:function(e,t,n){var r=n("ICSD"),o=n("TQ3y"),a=r(o,"Map");e.exports=a},PY1i:function(e,t,n){var r=n("8ANE"),o=n("YjQv").document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},PbQV:function(e,t,n){var r=n("ksFB"),o=n("GhAV"),a=n("EWRu");e.exports=function(e){return function(t,n,i){var s,u=r(t),c=o(u.length),l=a(i,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},"Pcr+":function(e,t,n){"use strict";var r=n("a8z9");t.a=r.a},PewI:function(e,t){e.exports={base:"_3d8Ip3y",disabled:"_23bMeMN",normal:"_2zTE3Ne",large:"_3XuYOM0",small:"_2t3xTWo",input__text:"_3hkY6oH _3d8Ip3y",input__textarea:"_1whAjSd _3d8Ip3y",input__card:"_1_MWs1W _3d8Ip3y",input__disabled:"_1SNztTO _3d8Ip3y _23bMeMN",input__large:"_3PBNxgP _3d8Ip3y _3XuYOM0",input__normal:"_1Ulh8TU _3d8Ip3y _2zTE3Ne",input__small:"jvPBoLu _3d8Ip3y _2t3xTWo",input__prefix:"_3HOujdo",input__suffix:"_2kHrSHK",input__wrapper:"_3qf4zVS",input__group:"VQEgDJZ",input__19:"_3BWtBIU",input__20:"_1k-xfqh",input__wrapper__suffix:"_1f7L6KL",input__wrapper__prefix:"_3WR4EVH"}},Pf15:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n("kiBT"),a=r(o),i=n("OvRC"),s=r(i),u=n("pFYg"),c=r(u);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,c.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(a.default?(0,a.default)(e,t):e.__proto__=t)}},PfJA:function(e,t){function n(e){return e.split("")}e.exports=n},Pp2j:function(e,t,n){"use strict";var r=n("hFTO");n.d(t,"a",function(){return r.a})},PqYH:function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}e.exports=n},PuTd:function(e,t,n){e.exports=n("zNjz")(392)},Q2wK:function(e,t,n){function r(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=a(r.length-t,0),u=Array(s);++i<s;)u[i]=r[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=r[i];return c[t]=n(u),o(e,this,c)}}var o=n("8AZL"),a=Math.max;e.exports=r},Q4WQ:function(e,t,n){"use strict";var r=n("e6+Q"),o=n("cxPT"),a=n("gt/O");e.exports=function(){function e(e,t,n,r,i,s){s!==a&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},Q7hp:function(e,t,n){function r(e,t,n){var r=null==e?void 0:o(e,t);return void 0===r?n:r}var o=n("uCi2");e.exports=r},QES8:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}n.d(t,"a",function(){return h});var i,s,u=n("Jmof"),c=(n.n(u),n("KSGD")),l=n.n(c),f=n("CwmF"),p=n.n(f),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=(s=i=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),d(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.label;return React.createElement("ul",null,React.createElement("li",{className:p.a.groupname},n),React.createElement("ul",null,t))}}]),t}(u.PureComponent),i.displayName="Option",i.defaultProps={children:null,label:""},i.propTypes={children:l.a.arrayOf(l.a.element),label:l.a.string},s)},QLpV:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1025 1024",xmlns:"http://www.w3.org/2000/svg",width:"200.195",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M293.069 755.2c-12.083 0-24.269-4.25-33.997-12.902L0 512l273.46-243.098c21.094-18.688 53.452-16.896 72.242 4.25 18.79 21.146 16.896 53.504-4.25 72.294L154.113 512l172.954 153.702c21.145 18.79 23.04 51.15 4.25 72.295-10.087 11.417-24.167 17.203-38.247 17.203zm457.984-.102L1024.512 512 765.44 281.702c-21.146-18.79-53.504-16.896-72.243 4.25-18.79 21.146-16.896 53.504 4.25 72.294L870.4 512 683.06 678.502c-21.146 18.79-23.04 51.15-4.25 72.295C688.896 762.214 702.976 768 717.056 768c12.083 0 24.269-4.25 33.997-12.902zm-239.514 72.55l102.4-614.4c4.66-27.904-14.182-54.272-42.086-58.931-28.007-4.71-54.323 14.182-58.88 42.086l-102.4 614.4c-4.66 27.904 14.182 54.272 42.086 58.931a52.65 52.65 0 0 0 8.448.666c24.576 0 46.285-17.766 50.432-42.752z"});t.a=r},Quol:function(e,t,n){"use strict";function r(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function o(e,t){var n,o,s,u,c,l,f=!1;t||(t={}),n=t.debug||!1;try{if(s=a(),u=document.createRange(),c=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",document.body.appendChild(l),u.selectNode(l),c.addRange(u),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");f=!0}catch(a){n&&console.error("unable to copy using execCommand: ",a),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData("text",e),f=!0}catch(a){n&&console.error("unable to copy using clipboardData: ",a),n&&console.error("falling back to prompt"),o=r("message"in t?t.message:i),window.prompt(o,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(u):c.removeAllRanges()),l&&document.body.removeChild(l),s()}return f}var a=n("92I6"),i="Copy to clipboard: #{key}, Enter";e.exports=o},QzNM:function(e,t,n){"use strict";function r(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}}t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0,t.transitionTimeout=r;var o=n("KSGD"),a=function(e){return e&&e.__esModule?e:{default:e}}(o);t.timeoutsShape=a.default.oneOfType([a.default.number,a.default.shape({enter:a.default.number,exit:a.default.number}).isRequired]),t.classNamesShape=a.default.oneOfType([a.default.string,a.default.shape({enter:a.default.string,exit:a.default.string,active:a.default.string}),a.default.shape({enter:a.default.string,enterActive:a.default.string,exit:a.default.string,exitActive:a.default.string})])},R2KL:function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,a){try{var i=t[o](a),s=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)});e(s)}return r("next")})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}n.d(t,"a",function(){return N});var s,u,c,l,f=n("0BLv"),p=(n.n(f),n("Jmof")),d=n.n(p),h=n("0jLv"),m=n.n(h),v=n("OEdS"),y=n.n(v),b=n("211U"),g=n.n(b),_=n("Quol"),E=n.n(_),w=n("oiih"),O=n("WApv"),P=n("rel7"),x=n("fwuy"),S=n("WB2H"),C=n("Pp2j"),k=n("UMry"),R=n.n(k),j=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),T={width:18,height:18},N=(s=g()(R.a,{allowMultiple:w.b}))((l=c=function(e){function t(){var e,n,r,i;o(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={readme:"",demo:void 0,demoSourceCode:"",showCode:!0},r.copyCode=function(){E()(r.state.demoSourceCode),S.a.success("Success",1)},r.toggleCodeBlock=function(){r.setState({showCode:!r.state.showCode})},i=n,a(r,i)}return i(t,e),j(t,[{key:"componentWillMount",value:function(){var e=this.props.match;this.load(e.params.name)}},{key:"load",value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function e(t){var r,o,a,i,s;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.props.scope,e.next=3,n("nPRO")("./"+t+"/README.md");case 3:return o=e.sent,e.next=6,n("vwZB")("./"+t+"/demo/index");case 6:return a=e.sent,e.next=9,n("1NOR")("./"+t+"/demo/index");case 9:i=e.sent,s=i.default,this.setState({readme:o,demo:s,demoSourceCode:a});case 12:case"end":return e.stop()}},e,this)}));return e}()},{key:"buildScope",value:function(){var e=this.props.scope;return Object.keys(e).map(function(t){return e[t]})}},{key:"render",value:function(){var e=this.props.match,n=this.state,r=n.readme,o=n.demo,a=n.demoSourceCode;if(!r)return null;var i=m()(r),s=i.meta,u=i.html;return d.a.createElement("div",{styleName:"Component__wrap"},t.renderMetaData(s,e),d.a.createElement("section",{className:"markdown-block",styleName:"Component__doc",dangerouslySetInnerHTML:{__html:u}}),d.a.createElement("section",{styleName:"Component__demo"},d.a.createElement("div",{styleName:"Component__demoHead"},d.a.createElement("h3",null,"DEMO"),d.a.createElement("span",null,d.a.createElement(C.a,{name:"code",size:20,title:"show code",onClick:this.toggleCodeBlock}),d.a.createElement(C.a,{name:"copy",size:20,title:"copy code",onClick:this.copyCode}))),d.a.createElement("div",{className:"markdown-demo"},this.state.showCode?d.a.createElement("div",{styleName:"Component__demoCode",className:"markdown-code"},d.a.createElement("pre",{className:"language-javascript"},d.a.createElement("code",{className:"language-javascript",dangerouslySetInnerHTML:{__html:y.a.highlight(a,y.a.languages.javascript)}}))):null,o?d.a.createElement("div",{styleName:"Component__demoBox"},Object(p.createElement)(o)):null)))}}]),t}(p.Component),c.renderMetaData=function(e,t){var n=e.author,r=void 0===n?{}:n,o=r.name,a=r.homepage,i=r.email;return d.a.createElement("div",{styleName:"Component__meta"},d.a.createElement("span",{styleName:"meta__tag"},d.a.createElement(O.a,T),d.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/quark-ui/quark-ui/tree/master/src/components/"+t.params.name},"HomePage")),d.a.createElement("span",{styleName:"meta__tag"},d.a.createElement(P.a,T),d.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:a||i},o)),i?d.a.createElement("span",{styleName:"meta__tag"},d.a.createElement(x.a,T),d.a.createElement("a",{href:"mailto:"+i},"Email")):null)},u=l))||u},RGrk:function(e,t,n){function r(e){var t=this.__data__;return o?void 0!==t[e]:i.call(t,e)}var o=n("dCZQ"),a=Object.prototype,i=a.hasOwnProperty;e.exports=r},Racj:function(e,t,n){e.exports=n("zNjz")(320)},RfUY:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u,c,l,f=n("Jmof"),p=(n.n(f),n("KSGD")),d=n.n(p),h=n("211U"),m=n.n(h),v=n("BEQ0"),y=n.n(v),b=n("oiih"),g=n("9+aC"),_=n("GmAb"),E=n.n(_),w=n("FJ7W"),O=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),P=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),x=(i=m()(E.a,{allowMultiple:b.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return l.call(n),n.state={position:[],active:t.getVisibleStateByProps(e),ready:!1},n}return a(t,e),P(t,[{key:"componentDidMount",value:function(){this.applyPlacement(this.props)}},{key:"componentWillReceiveProps",value:function(e){var n=this;t.isPopupVisibleDefined(e)&&this.setState({active:t.getVisibleStateByProps(e)},function(){n.state.active?Object(w.b)(document.body,"click",n.checkClosable):Object(w.a)(document.body,"click",n.checkClosable)})}},{key:"componentDidUpdate",value:function(e,t){var n=this;!t.active&&this.state.active&&setTimeout(function(){n.applyPlacement(n.props)},100)}},{key:"applyPlacement",value:function(e){if(this.node&&this.popNode){var n=O(e.placement,2),r=n[0],o=n[1],a=t.getTargetRect(this.node),i=t.getTargetRect(this.popNode);if(0===i.width&&0===i.height)return void this.setState({ready:!1});var s=window.pageXOffset||document.documentElement.scrollLeft,u=window.pageYOffset||document.documentElement.scrollTop,c=s,l=u;switch(o[0]){case"t":l+=a.top;break;case"b":l+=a.bottom;break;case"c":default:l+=a.top+a.height/2}switch(o[1]){case"l":c+=a.left;break;case"r":c+=a.right;break;case"c":default:c+=a.left+a.width/2}switch(r[0]){case"t":default:break;case"b":l-=i.height;break;case"c":l-=i.height/2}switch(r[1]){case"l":default:break;case"r":c-=i.width;break;case"c":c-=i.width/2}var f=this.props.offset,p=this.state.position,d={ready:!0},h=[c+f[0],l+f[1]];p[0]===h[0]&&p[0]===h[0]||y()(d,{position:h}),this.setState(d)}}},{key:"renderPopup",value:function(){var e=this,t=this.props.action,n=this.state,r=n.position,o=n.active,a={ref:function(t){return e.popup=t},popupRef:function(t){return e.popNode=t},position:r,visible:o};return"hover"===t&&y()(a,{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}),React.createElement(g.a,a,this.props.popup)}},{key:"render",value:function(){var e=this,t=this.props,n=t.action,r=t.children,o={ref:function(t){return e.node=t},styleName:"trigger--wrap"};return"hover"===n?y()(o,{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}):"click"===n&&y()(o,{onClick:this.handleClickTrigger}),React.createElement("div",{styleName:"trigger"},React.createElement("span",o,r),this.renderPopup())}}]),t}(f.PureComponent),u.displayName="Trigger",u.defaultProps={action:"hover",placement:["tl","bl"],offset:[0,0],popup:"",popupVisible:void 0,mouseEnterDelay:0,mouseLeaveDelay:100,onPopupVisibleChange:function(){}},u.propTypes={action:d.a.oneOf(["hover","click"]),placement:d.a.arrayOf(d.a.oneOf(Array.from(b.a))),offset:d.a.arrayOf(d.a.number),popup:d.a.oneOfType([d.a.string,d.a.element]).isRequired,popupVisible:d.a.bool,mouseEnterDelay:d.a.number,mouseLeaveDelay:d.a.number,onPopupVisibleChange:d.a.func},u.getTargetRect=function(e){return e.getBoundingClientRect()},u.getVisibleStateByProps=function(e){return!!x.isPopupVisibleDefined(e)&&e.popupVisible},u.isPopupVisibleDefined=function(e){return void 0!==e.popupVisible},l=function(){var e=this;this.checkClosable=function(t){e.node&&!e.node.contains(t.target)&&e.popNode&&!e.popNode.contains(t.target)&&e.handleClickTrigger()},this.handleMouseEnter=function(){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null);var t=e.props.mouseEnterDelay;e.enterTimer=setTimeout(function(){x.isPopupVisibleDefined(e.props)?e.props.onPopupVisibleChange(!0):e.setState({active:!0},function(){e.props.onPopupVisibleChange(!0)})},t)},this.handleMouseLeave=function(){e.enterTimer&&(clearTimeout(e.enterTimer),e.enterTimer=null);var t=e.props.mouseLeaveDelay;e.leaveTimer=setTimeout(function(){x.isPopupVisibleDefined(e.props)?e.props.onPopupVisibleChange(!1):e.setState({active:!1},function(){e.props.onPopupVisibleChange(!1)})},t)},this.handleClickTrigger=function(t){t&&t.preventDefault(),x.isPopupVisibleDefined(e.props)?e.props.onPopupVisibleChange(!e.state.active):e.setState({active:!e.state.active},function(){e.state.active?Object(w.b)(document.body,"click",e.checkClosable):Object(w.a)(document.body,"click",e.checkClosable),e.props.onPopupVisibleChange(e.state.active)})}},s=c))||s;t.a=x},RfZv:function(e,t,n){function r(e,t){return null!=e&&a(e,t,o)}var o=n("SOZo"),a=n("IGcM");e.exports=r},Rh28:function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},Rw4K:function(e,t,n){e.exports=n("zNjz")(395)},RyI1:function(e,t,n){function r(e,t){return(s(e)?o:a)(e,i(t,3))}var o=n("lb6C"),a=n("eShC"),i=n("JyYQ"),s=n("NGEn");e.exports=r},S5ub:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M1024 256L768 0H298.667c-62.976 0-85.334 29.013-85.334 85.333v64h-128C7.936 149.333 0 190.123 0 256v661.333C0 983.211 7.936 1024 85.333 1024h625.75C788.48 1024 832 940.544 832 874.667h85.333C994.731 874.667 1024 833.877 1024 768V256zM917.333 832H320a63.744 63.744 0 0 1-64-64V106.667c0-41.302 21.333-64 64-64h405.333c-.597 73.728 0 149.333 0 149.333 0 66.475 28.758 106.667 106.667 106.667h149.333V768c0 32.597-25.6 64-64 64zm-128 42.667c0 52.65-46.933 106.666-85.333 106.666H85.333c-38.4 0-42.666-31.402-42.666-64V256c0-30.464 4.266-64 42.666-64h128v576c0 65.877 29.27 106.667 106.667 106.667h469.333zM768 192V64l192 192H832a63.061 63.061 0 0 1-64-64zM448 516.096a21.59 21.59 0 0 0-21.333 21.333c0 11.776 9.813 21.334 21.333 21.334h298.667c11.776 0 21.333-9.899 21.333-21.334a21.504 21.504 0 0 0-21.333-21.333H448zm0-128a21.59 21.59 0 0 0-21.333 21.333c0 11.776 9.813 21.334 21.333 21.334h298.667c11.776 0 21.333-9.899 21.333-21.334a21.504 21.504 0 0 0-21.333-21.333H448z"});t.a=r},S7p9:function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},SHWz:function(e,t,n){function r(e,t,n,r,i,u){var c=n&a,l=o(e),f=l.length;if(f!=o(t).length&&!c)return!1;for(var p=f;p--;){var d=l[p];if(!(c?d in t:s.call(t,d)))return!1}var h=u.get(e);if(h&&u.get(t))return h==t;var m=!0;u.set(e,t),u.set(t,e);for(var v=c;++p<f;){d=l[p];var y=e[d],b=t[d];if(r)var g=c?r(b,y,d,t,e,u):r(y,b,d,e,t,u);if(!(void 0===g?y===b||i(y,b,n,r,u):g)){m=!1;break}v||(v="constructor"==d)}if(m&&!v){var _=e.constructor,E=t.constructor;_!=E&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof E&&E instanceof E)&&(m=!1)}return u.delete(e),u.delete(t),m}var o=n("MoMe"),a=1,i=Object.prototype,s=i.hasOwnProperty;e.exports=r},SOZo:function(e,t){function n(e,t){return null!=e&&t in Object(e)}e.exports=n},SPtU:function(e,t,n){e.exports=n("zNjz")(390)},SQfk:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){var r=u.default.unstable_batchedUpdates?function(e){u.default.unstable_batchedUpdates(n,e)}:n;return(0,i.default)(e,t,r)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n("ds30"),i=r(a),s=n("wLXD"),u=r(s);e.exports=t.default},SRCy:function(e,t,n){e.exports=n("zNjz")(314)},SWGL:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},SgDZ:function(e,t,n){"use strict";function r(){if(this instanceof r==0)return new r;this._={}}function o(e){return Math.max(Math.min(e,100),0)}function a(e){return Math.max(Math.min(e,255),0)}function i(e,t,n){return[Math.max(Math.min(e,255),0),Math.max(Math.min(t,255),0),Math.max(Math.min(n,255),0)]}function s(e,t,n){return[Math.max(Math.min(e,360),0),Math.max(Math.min(t,100),0),Math.max(Math.min(n,100),0)]}var u=n("1HXQ");r.fromHex=function(e){return(new r).fromHex(e)},r.fromGrayscale=function(e){return(new r).fromGrayscale(e)},r.fromRgb=function(e,t,n){return(new r).fromRgb(e,t,n)},r.fromRgbArray=function(e){return(new r).fromRgb(e[0],e[1],e[2])},r.fromRgbObject=function(e){return(new r).fromRgb(e.r,e.g,e.b)},r.fromHsl=function(e,t,n){return(new r).fromHsl(e,t,n)},r.fromHslArray=function(e){return(new r).fromHsl(e[0],e[1],e[2])},r.fromHslObject=function(e){return(new r).fromHsl(e.h,e.s,e.l)},r.fromHsv=function(e,t,n){return(new r).fromHsv(e,t,n)},r.fromHsvArray=function(e){return(new r).fromHsv(e[0],e[1],e[2])},r.fromHsvObject=function(e){return(new r).fromHsv(e.h,e.s,e.v)},r.prototype.fromHex=function(e){var t=u.hex.rgb(e);return this._={rgb:t},this},r.prototype.fromGrayscale=function(e){e=a(e);var t=u.grayscale.rgb(e);return this._={rgb:t},this},r.prototype.fromRgb=function(e,t,n){if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n)throw new Error("Arguments must be numbers");var r=i(e,t,n);return this._={rgb:r},this},r.prototype.fromRgbArray=function(e){return this.fromRgb(e[0],e[1],e[2])},r.prototype.fromRgbObject=function(e){return this.fromRgb(e.r,e.g,e.b)},r.prototype.fromHsl=function(e,t,n){if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n)throw new Error("Arguments must be numbers");return this._={hsl:s(e,t,n)},this},r.prototype.fromHslArray=function(e){return this.fromHsl(e[0],e[1],e[2])},r.prototype.fromHslObject=function(e){return this.fromHsl(e.h,e.s,e.l)},r.prototype.fromHsv=function(e,t,n){if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n)throw new Error("Arguments must be numbers");return this._={hsv:s(e,t,n)},this},r.prototype.fromHsvArray=function(e){return this.fromHsv(e[0],e[1],e[2])},r.prototype.fromHsvObject=function(e){return this.fromHsv(e.h,e.s,e.v)},r.prototype.toHex=function(){var e=this._.hex;if(void 0!==e)return e;var t,n=this._.rgb;t=void 0!==n?n:this.toRawRgbArray(),t[0]=Math.round(t[0]),t[1]=Math.round(t[1]),t[2]=Math.round(t[2]);var r=u.rgb.hex(t);return this._.hex=r,r},r.prototype.toGrayscale=function(){var e=this._.grayscale;if(void 0!==e)return e;var t,n=this._.rgb;t=void 0!==n?n:this.toRawRgbArray();var r=u.rgb.grayscale(t);return this._.grayscale=r,r},r.prototype.toRawRgbArray=function(){var e=this._.rgb;if(void 0!==e)return e;var t;if(void 0!==(t=this._.hsv))t=u.hsv.rgb(t);else{if(void 0===(t=this._.hsl))throw new Error("No data to convert");t=u.hsl.rgb(t)}return this._.rgb=t,t},r.prototype.toRawRgbObject=function(){var e=this.toRawRgbArray();return{r:e[0],g:e[1],b:e[2]}},r.prototype.toRgbArray=function(){var e=this.toRawRgbArray();return[Math.round(e[0]),Math.round(e[1]),Math.round(e[2])]},r.prototype.toRgbObject=function(){var e=this.toRgbArray();return{r:e[0],g:e[1],b:e[2]}},r.prototype.toRawHslArray=function(){var e=this._.hsl;if(void 0!==e)return e;var t;if(void 0!==(t=this._.hsv))t=u.hsv.hsl(t);else{if(void 0===(t=this._.rgb))throw new Error("No data to convert");t=u.rgb.hsl(t)}return this._.hsl=t,t},r.prototype.toRawHslObject=function(){var e=this.toRawHslArray();return{h:e[0],s:e[1],l:e[2]}},r.prototype.toHslArray=function(){var e=this.toRawHslArray();return[Math.round(e[0]),Math.round(e[1]),Math.round(e[2])]},r.prototype.toHslObject=function(){var e=this.toHslArray();return{h:e[0],s:e[1],l:e[2]}},r.prototype.toRawHsvArray=function(){var e=this._.hsv;if(void 0!==e)return e;var t;if(void 0!==(t=this._.hsl))t=u.hsl.hsv(t);else{if(void 0===(t=this._.rgb))throw new Error("No data to convert");t=u.rgb.hsv(t)}return this._.hsv=t,t},r.prototype.toRawHsvObject=function(){var e=this.toRawHsvArray();return{h:e[0],s:e[1],v:e[2]}},r.prototype.toHsvArray=function(){var e=this.toRawHsvArray();return[Math.round(e[0]),Math.round(e[1]),Math.round(e[2])]},r.prototype.toHsvObject=function(){var e=this.toHsvArray();return{h:e[0],s:e[1],v:e[2]}},r.prototype.lighten=function(e){var t=this.toRawHslArray();return t[2]=o(t[2]+e),this._={hsl:t},this},r.prototype.darken=function(e){var t=this.toRawHslArray();return t[2]=o(t[2]-e),this._={hsl:t},this},r.prototype.clone=function(){var e=new r;return e._.hex=this._.hex,e._.grayscale=this._.grayscale,void 0!==this._.rgb&&(e._.rgb=this._.rgb.slice(0)),void 0!==this._.hsv&&(e._.hsv=this._.hsv.slice(0)),void 0!==this._.hsl&&(e._.hsl=this._.hsl.slice(0)),e},e.exports=r},SldL:function(e,t,n){(function(t){!function(t){"use strict";function n(e,t,n,r){var a=t&&t.prototype instanceof o?t:o,i=Object.create(a.prototype),s=new d(r||[]);return i._invoke=c(e,n,s),i}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function a(){}function i(){}function s(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function u(e){function n(t,o,a,i){var s=r(e[t],e,o);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&b.call(c,"__await")?Promise.resolve(c.__await).then(function(e){n("next",e,a,i)},function(e){n("throw",e,a,i)}):Promise.resolve(c).then(function(e){u.value=e,a(u)},i)}i(s.arg)}function o(e,t){function r(){return new Promise(function(r,o){n(e,t,r,o)})}return a=a?a.then(r,r):r()}"object"==typeof t.process&&t.process.domain&&(n=t.process.domain.bind(n));var a;this._invoke=o}function c(e,t,n){var o=x;return function(a,i){if(o===C)throw new Error("Generator is already running");if(o===k){if("throw"===a)throw i;return m()}for(n.method=a,n.arg=i;;){var s=n.delegate;if(s){var u=l(s,n);if(u){if(u===R)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===x)throw o=k,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=C;var c=r(e,t,n);if("normal"===c.type){if(o=n.done?k:S,c.arg===R)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=k,n.method="throw",n.arg=c.arg)}}}function l(e,t){var n=e.iterator[t.method];if(n===v){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=v,l(e,t),"throw"===t.method))return R;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return R}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,R;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,R):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,R)}function f(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function h(e){if(e){var t=e[_];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(b.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=v,t.done=!0,t};return r.next=r}}return{next:m}}function m(){return{value:v,done:!0}}var v,y=Object.prototype,b=y.hasOwnProperty,g="function"==typeof Symbol?Symbol:{},_=g.iterator||"@@iterator",E=g.asyncIterator||"@@asyncIterator",w=g.toStringTag||"@@toStringTag",O="object"==typeof e,P=t.regeneratorRuntime;if(P)return void(O&&(e.exports=P));P=t.regeneratorRuntime=O?e.exports:{},P.wrap=n;var x="suspendedStart",S="suspendedYield",C="executing",k="completed",R={},j={};j[_]=function(){return this};var T=Object.getPrototypeOf,N=T&&T(T(h([])));N&&N!==y&&b.call(N,_)&&(j=N);var M=i.prototype=o.prototype=Object.create(j);a.prototype=M.constructor=i,i.constructor=a,i[w]=a.displayName="GeneratorFunction",P.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===a||"GeneratorFunction"===(t.displayName||t.name))},P.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,i):(e.__proto__=i,w in e||(e[w]="GeneratorFunction")),e.prototype=Object.create(M),e},P.awrap=function(e){return{__await:e}},s(u.prototype),u.prototype[E]=function(){return this},P.AsyncIterator=u,P.async=function(e,t,r,o){var a=new u(n(e,t,r,o));return P.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},s(M),M[w]="Generator",M[_]=function(){return this},M.toString=function(){return"[object Generator]"},P.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},P.values=h,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(p),!e)for(var t in this)"t"===t.charAt(0)&&b.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=v)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return a.type="throw",a.arg=e,n.next=t,r&&(n.method="next",n.arg=v),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var i=b.call(o,"catchLoc"),s=b.call(o,"finallyLoc");if(i&&s){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&b.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,R):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),R},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),R}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=v),R}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(t,n("DuR2"))},Stuz:function(e,t,n){e.exports=n("zNjz")(290)},"T+2Y":function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},a="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,n){if("string"!=typeof t){var i=Object.getOwnPropertyNames(t);a&&(i=i.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;++s)if(!(r[i[s]]||o[i[s]]||n&&n[i[s]]))try{e[i[s]]=t[i[s]]}catch(e){}}return e}},"T/bE":function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n("94sX"),a=n("ue/d"),i=n("eVIm"),s=n("RGrk"),u=n("Z2pD");r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=i,r.prototype.has=s,r.prototype.set=u,e.exports=r},T7Xq:function(e,t){e.exports={alert:"_39kAAFy","with-description":"_1ceJ84o","alert--message":"_2PlM57S","alert--close":"_2mpL-C1","no-icon":"_1jGKsJo","alert--description":"_2WVGGAD","alert--icon":"_2HsOl4s",alert__info:"_2zbvGEj",alert__success:"_1G-i0lm",alert__error:"_2IstVeW",alert__warning:"_1RLd9u1"}},TAxY:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function s(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)}function u(){}t.__esModule=!0,t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var c=n("KSGD"),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(c),f=n("Jmof"),p=r(f),d=n("wLXD"),h=r(d),m=(n("QzNM"),t.UNMOUNTED="unmounted"),v=t.EXITED="exited",y=t.ENTERING="entering",b=t.ENTERED="entered",g=t.EXITING="exiting",_=function(e){function t(n,r){a(this,t);var o=i(this,e.call(this,n,r)),s=r.transitionGroup,u=s&&!s.isMounting?n.enter:n.appear,c=void 0;return o.nextStatus=null,n.in?u?(c=v,o.nextStatus=y):c=b:c=n.unmountOnExit||n.mountOnEnter?m:v,o.state={status:c},o.nextCallback=null,o}return s(t,e),t.prototype.getChildContext=function(){return{transitionGroup:null}},t.prototype.componentDidMount=function(){this.updateStatus(!0)},t.prototype.componentWillReceiveProps=function(e){var t=this.state.status;e.in?(t===m&&this.setState({status:v}),t!==y&&t!==b&&(this.nextStatus=y)):t!==y&&t!==b||(this.nextStatus=g)},t.prototype.componentDidUpdate=function(){this.updateStatus()},t.prototype.componentWillUnmount=function(){this.cancelNextCallback()},t.prototype.getTimeouts=function(){var e=this.props.timeout,t=void 0,n=void 0,r=void 0;return t=n=r=e,null!=e&&"number"!=typeof e&&(t=e.exit,n=e.enter,r=e.appear),{exit:t,enter:n,appear:r}},t.prototype.updateStatus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.nextStatus){this.cancelNextCallback();var t=h.default.findDOMNode(this);this.nextStatus===y?this.performEnter(t,e):this.performExit(t),this.nextStatus=null}else this.props.unmountOnExit&&this.state.status===v&&this.setState({status:m})},t.prototype.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts();if(!t&&!r)return void this.safeSetState({status:b},function(){n.props.onEntered(e)});this.props.onEnter(e,o),this.safeSetState({status:y},function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a.enter,function(){n.safeSetState({status:b},function(){n.props.onEntered(e,o)})})})},t.prototype.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();if(!n)return void this.safeSetState({status:v},function(){t.props.onExited(e)});this.props.onExit(e),this.safeSetState({status:g},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:v},function(){t.props.onExited(e)})})})},t.prototype.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},t.prototype.safeSetState=function(e,t){this.setState(e,this.setNextCallback(t))},t.prototype.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},t.prototype.onTransitionEnd=function(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},t.prototype.render=function(){var e=this.state.status;if(e===m)return null;var t=this.props,n=t.children,r=o(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var a=p.default.Children.only(n);return p.default.cloneElement(a,r)},t}(p.default.Component);_.contextTypes={transitionGroup:l.object},_.childContextTypes={transitionGroup:function(){}},_.propTypes={},_.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:u,onEntering:u,onEntered:u,onExit:u,onExiting:u,onExited:u},_.UNMOUNTED=0,_.EXITED=1,_.ENTERING=2,_.ENTERED=3,_.EXITING=4,t.default=_},TDF1:function(e,t,n){"use strict";var r=n("8RmA"),o=n("sfwK");n("Mfsv"),n.d(t,"a",function(){return o.a}),t.b=r.a},TFWu:function(e,t,n){e.exports=n("zNjz")(377)},THEY:function(e,t){t.f=Object.getOwnPropertySymbols},THnP:function(e,t,n){e.exports=n("zNjz")(380)},TJez:function(e,t,n){"use strict";var r={};e.exports=r},TQ3y:function(e,t,n){var r=n("blYT"),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},TyAW:function(e,t,n){"use strict";function r(){}function o(e){return e.replace(/[^\w\.-]+/g,"")}var a=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;t.a={getDefaultProps:function(){return{max:a,min:-a,step:1,style:{},onChange:r,onKeyDown:r,onFocus:r,onBlur:r,parser:o}},getInitialState:function(){var e=void 0,t=this.props;return e="value"in t?t.value:t.defaultValue,e=this.toNumber(e),{inputValue:this.toPrecisionAsStep(e),value:e,focused:t.autoFocus}},componentWillReceiveProps:function(e){"value"in e&&this.setState({inputValue:e.value,value:e.value})},componentWillUnmount:function(){this.stop()},onChange:function(e){var t=this.props.parser(this.getValueFromEvent(e).trim());this.setState({inputValue:t}),this.props.onChange(this.toNumberWhenUserInput(t))},onFocus:function(){var e;this.setState({focused:!0}),(e=this.props).onFocus.apply(e,arguments)},onBlur:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.setState({focused:!1});var a=this.getCurrentValidValue(this.state.inputValue);e.persist(),this.setValue(a,function(){var n;(n=t.props).onBlur.apply(n,[e].concat(r))})},getCurrentValidValue:function(e){var t=e,n=this.props;return""===t?t="":this.isNotCompleteNumber(t)?t=this.state.value:(t=Number(t),t<n.min&&(t=n.min),t>n.max&&(t=n.max)),this.toNumber(t)},setValue:function(e,t){var n=this.isNotCompleteNumber(parseFloat(e,10))?void 0:parseFloat(e,10),r=n!==this.state.value;"value"in this.props?this.setState({inputValue:this.toPrecisionAsStep(this.state.value)},t):this.setState({value:n,inputValue:this.toPrecisionAsStep(e)},t),r&&this.props.onChange(n)},getPrecision:function(e){if("precision"in this.props)return this.props.precision;var t=e.toString();if(t.indexOf("e-")>=0)return parseInt(t.slice(t.indexOf("e-")+2),10);var n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n},getMaxPrecision:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if("precision"in this.props)return this.props.precision;var n=this.props.step,r=this.getPrecision(t),o=this.getPrecision(n),a=this.getPrecision(e);return e?Math.max(a,r+o):r+o},getPrecisionFactor:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.getMaxPrecision(e,t);return Math.pow(10,n)},toPrecisionAsStep:function(e){if(this.isNotCompleteNumber(e)||""===e)return e;var t=Math.abs(this.getMaxPrecision(e));return isNaN(t)?e.toString():Number(e).toFixed(t)},isNotCompleteNumber:function(e){return isNaN(e)||""===e||null===e||e&&e.toString().indexOf(".")===e.toString().length-1},toNumber:function(e){return this.isNotCompleteNumber(e)?e:"precision"in this.props?Number(Number(e).toFixed(this.props.precision)):Number(e)},toNumberWhenUserInput:function(e){return(/\.\d*0$/.test(e)||e.length>16)&&this.state.focused?e:this.toNumber(e)},upStep:function(e,t){var n=this.props,r=n.step,o=n.min,a=this.getPrecisionFactor(e,t),i=Math.abs(this.getMaxPrecision(e,t)),s=void 0;return s="number"==typeof e?((a*e+a*r*t)/a).toFixed(i):o===-1/0?r:o,this.toNumber(s)},downStep:function(e,t){var n=this.props,r=n.step,o=n.min,a=this.getPrecisionFactor(e,t),i=Math.abs(this.getMaxPrecision(e,t)),s=void 0;return s="number"==typeof e?((a*e-a*r*t)/a).toFixed(i):o===-1/0?-r:o,this.toNumber(s)},step:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t&&t.preventDefault();var r=this.props;if(!r.disabled){var o=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(o)){var a=this[e+"Step"](o,n);a>r.max?a=r.max:a<r.min&&(a=r.min),this.setValue(a),this.setState({focused:!0})}}},stop:function(){this.autoStepTimer&&clearTimeout(this.autoStepTimer)},down:function(e,t,n){var r=this;e.persist&&e.persist(),this.stop(),this.step("down",e,t),this.autoStepTimer=setTimeout(function(){r.down(e,t,!0)},n?200:600)},up:function(e,t,n){var r=this;e.persist&&e.persist(),this.stop(),this.step("up",e,t),this.autoStepTimer=setTimeout(function(){r.up(e,t,!0)},n?200:600)}}},U0vi:function(e,t){e.exports={progress__line:"nd0QJ7p",progress__showinfo:"_3JkNO59",progress__lineOuter:"IL7D3Op",progress__lineInner:"_27NBzV3",progress__lineIndicator:"_1YQZnrM","progress__line--normalSize":"_28IlOCf","progress__line--miniSize":"_2Gk1yz_","progress__line--normal":"cFwj8pO","progress-animation":"_2uAdRt5","progress__line--success":"_2iMadZh","progress__line--exception":"_1Gn0LqM","progress__line--pause":"_2rhabTG"}},U6qc:function(e,t,n){e.exports=n("zNjz")(364)},UMRL:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u,c,l=n("Jmof"),f=(n.n(l),n("KSGD")),p=n.n(f),d=n("BEQ0"),h=n.n(d),m=n("211U"),v=n.n(m),y=n("HW6M"),b=n.n(y),g=n("Pp2j"),_=n("PJh5"),E=n.n(_),w=n("iB3Z"),O=n.n(w),P=n("oiih"),x=n("pS//"),S=n.n(x),C=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k=(i=v()(S.a,{allowMultiple:P.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleSubtractDecade=function(){n.props.manipulateDate("subtract",10,"Y")},n.handleAddDecade=function(){n.props.manipulateDate("add",10,"Y")},n.state=n.getYearRange(e),n}return a(t,e),C(t,[{key:"componentWillReceiveProps",value:function(e){this.props.date.isSame(e.date)||this.setState(this.getYearRange(e))}},{key:"onChangeYear",value:function(e){this.props.changeYear(e),this.props.showMonthPane()}},{key:"onJumpDecade",value:function(e){var t=this.state,n=t.currentYear,r=t.startYear,o=t.endYear,a={};e?h()(a,{currentYear:n-10,startYear:r-10,endYear:o-10}):h()(a,{currentYear:n+10,startYear:r+10,endYear:o+10}),this.setState(a)}},{key:"getYearRange",value:function(e){var t=e.date.get("year"),n=10*Math.floor(t/10)-1;return{currentYear:t,startYear:n,endYear:n+11}}},{key:"renderYears",value:function(){var e=this.state,t=e.currentYear,n=e.startYear,r=e.endYear,o=n,a=[];for(o;o<=r;o+=1){var i={styleName:b()("datePicker__yearGrid",{"datePicker__yearGrid--active":t===o,"datePicker__yearGrid--jump":n===o||r===o}),key:o};o===n||o===r?h()(i,{onClick:this.onJumpDecade.bind(this,o===n)}):h()(i,{onClick:this.onChangeYear.bind(this,o)}),a.push(React.createElement("button",i,o))}return React.createElement("div",{styleName:"datePicker__yearBody"},a)}},{key:"renderYearHead",value:function(){var e=this.props.showDecadePane,t=this.state,n=t.currentYear,r=t.startYear,o=t.endYear,a=[r+1,o-1];return React.createElement("div",{styleName:"datePicker__yearPaneHead"},React.createElement("button",{styleName:"datePicker__headControlBtn",onClick:this.handleSubtractDecade},React.createElement(g.a,{name:"arrow-left",size:14})),React.createElement("button",{styleName:"datePicker__headJumpBtn",onClick:e.bind(this,n)},a.join("-")),React.createElement("button",{styleName:"datePicker__headControlBtn",onClick:this.handleAddDecade},React.createElement(g.a,{name:"arrow-right",size:14})))}},{key:"render",value:function(){var e=this.props.className;return React.createElement("div",{styleName:"datePicker__picker datePicker__yearPane",className:e},this.renderYearHead(),this.renderYears())}}]),t}(l.PureComponent),u.displayName="YearPane",u.defaultProps={className:"",date:E()(),showDecadePane:function(){},showMonthPane:function(){},changeYear:function(){},manipulateDate:function(){}},u.propTypes={className:p.a.string,date:O.a.momentObj,showDecadePane:p.a.func,showMonthPane:p.a.func,changeYear:p.a.func,manipulateDate:p.a.func},s=c))||s;t.a=k},UMry:function(e,t){e.exports={Component__wrap:"vpzOLLx",Component__meta:"_3vQ71Pp",Component__demoCode:"_3F1AtG7",meta__tag:"OdRRJ-8",Component__doc:"_1sBY6oL",Component__demo:"_402K4d6",Component__demoHead:"_1lN-l0I",Component__demoBox:"_2LmnaWp",Component__copy:"_26H3C1m"}},UNUE:function(e,t,n){function r(e,t){for(var n=e.length;n--&&o(t,e[n],0)>-1;);return n}var o=n("G8ar");e.exports=r},UTPB:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M512 451.67L328.832 268.5a42.667 42.667 0 0 0-60.33 60.331L451.668 512 268.501 695.168a42.667 42.667 0 0 0 60.331 60.33L512 572.332l183.168 183.168a42.667 42.667 0 0 0 60.33-60.331L572.332 512l183.168-183.168a42.667 42.667 0 1 0-60.331-60.33L512 451.668zm0 572.33C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z"});t.a=r},UZ5U:function(e,t,n){"use strict";var r=n("IggZ");n.d(t,"a",function(){return r.a})},Ubhr:function(e,t,n){function r(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}var o=n("6MiT"),a=1/0;e.exports=r},UnEC:function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},UnLw:function(e,t,n){var r=n("fMqj"),o=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=r(function(e){var t=[];return o.test(e)&&t.push(""),e.replace(a,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=s},Uz1a:function(e,t,n){function r(e,t,n,r,v,b){var g=c(e),_=c(t),E=g?h:u(e),w=_?h:u(t);E=E==d?m:E,w=w==d?m:w;var O=E==m,P=w==m,x=E==w;if(x&&l(e)){if(!l(t))return!1;g=!0,O=!1}if(x&&!O)return b||(b=new o),g||f(e)?a(e,t,n,r,v,b):i(e,t,E,n,r,v,b);if(!(n&p)){var S=O&&y.call(e,"__wrapped__"),C=P&&y.call(t,"__wrapped__");if(S||C){var k=S?e.value():e,R=C?t.value():t;return b||(b=new o),v(k,R,n,r,b)}}return!!x&&(b||(b=new o),s(e,t,n,r,v,b))}var o=n("bJWQ"),a=n("FhcP"),i=n("EHRO"),s=n("SHWz"),u=n("gHOb"),c=n("NGEn"),l=n("ggOT"),f=n("YsVG"),p=1,d="[object Arguments]",h="[object Array]",m="[object Object]",v=Object.prototype,y=v.hasOwnProperty;e.exports=r},"V/H1":function(e,t,n){e.exports=n("zNjz")(373)},VD8v:function(e,t,n){var r=n("x//u"),o=n("wXdB"),a=n("+SdG")("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},VORN:function(e,t,n){var r=n("yCNF"),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},VUJU:function(e,t){e.exports={"handler-disabled":"DOQ1glJ","rc-input-number-handler-down-inner":"_2l6KXkk","rc-input-number-handler-up-inner":"iw8GqMd"}},Vd9R:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}n.d(t,"a",function(){return P});var i,s,u,c,l=n("Jmof"),f=n.n(l),p=n("KSGD"),d=n.n(p),h=n("211U"),m=n.n(h),v=n("hFTO"),y=n("oiih"),b=n("E7AL"),g=n("njf/"),_=n.n(g),E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),O=function(e,t){var n=new FileReader;n.onloadend=function(){return t(n.result)},n.readAsDataURL(e)},P=(i=m()(_.a,{allowMultiple:y.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClose=function(e){var t=n.props.onRemove;t&&t(e)},n.handlePreview=function(e,t){var r=n.props.onPreview;r&&(t.preventDefault(),r(e))},n.state={},n}return a(t,e),w(t,[{key:"componentDidUpdate",value:function(){var e=this;"picture"!==this.props.listType&&"picture-card"!==this.props.listType||(this.props.items||[]).forEach(function(t){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&t.originFileObj instanceof File&&void 0===t.thumbUrl&&(t.thumbUrl="",O(t.originFileObj,function(n){t.thumbUrl=n,e.forceUpdate()}))})}},{key:"renderListItem",value:function(e){var t=this,n=this.props,r=n.showPreviewIcon,o=n.showRemoveIcon,a=n.locale,i=n.disabled,s=n.listType,u=n.prefixCls,c=void 0,l=f.a.createElement(v.a,{size:12,styleName:"status",name:(e.status,"attachment")});if("picture"!==s&&"picture-card"!==s||(l="uploading"===e.status||!e.thumbUrl&&!e.url?"picture-card"===s?f.a.createElement("div",{styleName:"uploading-text"},a.uploading):f.a.createElement(v.a,{className:u+"-list-item-thumbnail",type:"picture"}):f.a.createElement("a",{styleName:u+"-list-item-thumbnail",onClick:function(n){return t.handlePreview(e,n)},href:e.url||e.thumbUrl,target:"_blank",rel:"noopener noreferrer"},f.a.createElement("img",{src:e.thumbUrl||e.url,alt:e.name,styleName:"imgshow"}))),"uploading"===e.status){var p="percent"in e?f.a.createElement(b.a,E({type:"line"},this.props.progressAttr,{percent:e.percent})):null;c=f.a.createElement("div",{styleName:u+"-list-item-progress",key:"progress"},p)}var d="error"===e.status?e.response||a.uploadError:e.response,h=e.url?f.a.createElement("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",styleName:u+"-list-item-name",onClick:function(n){return t.handlePreview(e,n)},title:d},e.name):f.a.createElement("span",{styleName:u+"-list-item-name",title:d},e.name),m=e.url||e.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},y=r?f.a.createElement("a",{href:e.url||e.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:m,onClick:function(n){return t.handlePreview(e,n)},title:a.previewFile},f.a.createElement(v.a,{name:"visible",size:20,styleName:"eye"})):null,g=o&&!i?f.a.createElement("button",{title:a.removeFile,onClick:function(){return t.handleClose(e)}},f.a.createElement(v.a,{name:"recycle",size:20,styleName:"remove"})):null,_=o&&!i?f.a.createElement("button",{title:a.removeFile,onClick:function(){return t.handleClose(e)}},f.a.createElement(v.a,{name:"close",size:10,styleName:"remove"})):null,w="picture-card"===s&&"uploading"!==e.status?f.a.createElement("span",{styleName:u+"-list-item-actions"},y,g):_,O=(e.status,f.a.createElement("span",null,l,h));return f.a.createElement("div",{styleName:u+"-list-item "+u+"-list-item-"+e.status,key:e.uid},f.a.createElement("div",{styleName:u+"-list-item-info"},O),w,c)}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.items,o=void 0===r?[]:r,a=t.listType;return f.a.createElement("div",{styleName:n+"-list "+n+"-list-"+a},o.map(function(t){return e.renderListItem(t)}))}}]),t}(f.a.Component),u.displayName="UploadList",u.defaultProps={listType:"text",items:[],onRemove:null,onPreview:null,prefixCls:"upload",showRemoveIcon:!0,showPreviewIcon:!0,disabled:!1,progressAttr:{strokeWidth:2,showInfo:!1,size:"mini"},locale:{}},u.propTypes={listType:d.a.oneOf("text","picture-card"),items:d.a.arrayOf(d.a.object),onRemove:d.a.func,onPreview:d.a.func,prefixCls:d.a.string,showPreviewIcon:d.a.bool,showRemoveIcon:d.a.bool,disabled:d.a.bool,progressAttr:d.a.shape({strokeWidth:d.a.number,showInfo:d.a.bool,size:d.a.string}),locale:d.a.object},s=c))||s},VjuZ:function(e,t,n){e.exports=n("zNjz")(369)},Vuq1:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},e),u)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("path",{d:"M14.444 1.097V3.29h5.273a.284.284 0 0 1 .283.284v.836a.285.285 0 0 1-.282.285h-1.75v14.208c0 .604-.5 1.097-1.11 1.097H3.074a1.108 1.108 0 0 1-1.111-1.097V4.695H.29A.286.286 0 0 1 0 4.41v-.836c0-.155.125-.282.283-.284h5.273V1.097C5.556.493 6.055 0 6.666 0h6.668c.61 0 1.11.493 1.11 1.097zM3.334 18.643h13.332V4.66H3.334v13.982zM6.964 3.29h6.18V1.4H6.965v1.89zM5.556 15.468V7.405a.349.349 0 0 1 .104-.253.358.358 0 0 1 .256-.102h.708a.357.357 0 0 1 .256.102.348.348 0 0 1 .104.253v8.063a.349.349 0 0 1-.104.252.358.358 0 0 1-.256.102h-.708a.352.352 0 0 1-.36-.354zm4.96.354H9.8a.36.36 0 0 1-.357-.354V7.405c0-.203.16-.355.357-.355h.715a.36.36 0 0 1 .357.355v8.063c0 .202-.16.354-.357.354zm2.818-.354V7.405a.349.349 0 0 1 .104-.253.358.358 0 0 1 .256-.102h.707a.357.357 0 0 1 .257.102.348.348 0 0 1 .104.253v8.063a.349.349 0 0 1-.105.252.358.358 0 0 1-.256.102h-.707a.352.352 0 0 1-.36-.354z"});t.a=r},W529:function(e,t,n){var r=n("f931"),o=r(Object.keys,Object);e.exports=o},W6Rd:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},WApv:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M950.93 512q0 143.433-83.748 257.975T650.898 928.549q-15.433 2.852-22.6-4.023t-7.169-17.116V786.87q0-55.441-29.696-81.115 32.549-3.437 58.588-10.313t53.686-22.308 46.3-38.035 30.281-59.977 11.703-86.016q0-69.12-45.13-117.687 21.139-52.004-4.534-116.59-16.018-5.12-46.3 6.291t-52.59 25.161l-21.723 13.678Q568.54 285.11 512 285.11t-109.714 14.848q-9.143-6.29-24.284-15.433t-47.689-22.016-49.152-7.68Q256 319.415 277.138 371.42q-45.129 48.566-45.129 117.686 0 48.567 11.703 85.724t29.989 59.977 46.006 38.254 53.687 22.308 58.588 10.313q-22.82 20.553-28.014 58.88-11.995 5.705-25.746 8.558t-32.549 2.853-37.449-12.288-31.744-35.694q-10.825-18.286-27.721-29.696t-28.306-13.678l-11.41-1.682q-11.996 0-16.604 2.56t-2.853 6.583 5.12 7.972 7.46 6.876l4.024 2.852q12.58 5.705 24.868 21.724t17.993 29.11l5.706 13.166q7.46 21.724 25.16 35.109t38.254 17.115 39.717 4.023 31.744-1.975l13.166-2.267q0 21.723.292 50.834t.293 30.866q0 10.314-7.46 17.116t-22.821 4.023Q240.567 884.59 156.818 770.048T73.07 512.073q0-119.442 58.88-220.306t159.744-159.744T512 73.143t220.306 58.88T892.05 291.767t58.88 220.306z"});t.a=r},WB2H:function(e,t,n){"use strict";function r(){return u=u||a.a.newInstance({style:{top:s},getContainer:c})}function o(){}var a=n("+XH5"),i=1.5,s=50,u=void 0,c=void 0;t.a={info:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;r().msg({type:"info",content:e,duration:t,onClose:n})},success:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;r().msg({type:"success",content:e,duration:t,onClose:n})},error:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;r().msg({type:"error",content:e,duration:t,onClose:n})},warning:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;r().msg({type:"warning",content:e,duration:t,onClose:n})},config:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.top&&(s=e.top,u=null),void 0!==e.duration&&(i=e.duration),void 0!==e.getContainer&&(c=e.getContainer)},destroy:function(){u&&(u.destroy(),u=null)}}},WFiI:function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}e.exports=n},WFkW:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M511.872.96C231.006.96 3.294 229.95 3.294 512.48c0 282.465 227.712 511.52 508.578 511.52s508.642-229.055 508.642-511.52C1020.45 229.95 792.738.96 511.872.96zm49.636 790.979c0 18.101-15.735 27.696-52.578 27.696h-28.017c-36.843 0-52.642-9.53-52.642-27.696v-79.572c0-18.165 15.8-27.696 52.642-27.696h28.017c36.843 0 52.578 9.467 52.578 27.696v79.572zm-9.594-189.462c-5.246 18.23-17.527 23.41-46.502 23.41h-20.085c-30.639 0-42.92-6.907-42.92-25.137 0-108.93 135.86-178.907 135.86-232.573-.064-30.255-20.213-48.357-64.924-48.357-50.851 0-85.903 26.737-98.12 26.737-24.627 0-55.265-52.77-55.265-70.872 0-51.043 96.457-70.105 164.835-70.105 117.374 0 190.229 58.783 190.229 153.898 0 132.341-147.31 160.038-163.108 243z"});t.a=r},WG9z:function(e,t,n){"use strict";var r=n("vsXA"),o=n("Zsme");r.a.Item=o.a,t.a=r.a},WHce:function(e,t,n){var r=n("037f"),o=n("Zk5a"),a=o(r);e.exports=a},WKZb:function(e,t){e.exports={tabs__wrap:"Q4sxpvX",tabs__bar:"_2YCIwDA",tabs__tab:"_37S7qK8",active:"_1-_7_w9",disabled:"_2T7bEco",tabs__con:"_2hU1MuY",tabs__panel:"c57w49P",inactive:"_16UZ8XT",tabs__small:"_3SDTaN3",tabs__button:"_3zluHoE",tabs__left:"_2FxI-4O",clearfix:"FLgZnNp",tabs__card:"QTFO3vB",tab__del:"_2GpfxLN"}},WRjI:function(e,t,n){e.exports=n.p+"a67484d64b7196aed978ac187414e9e6.jpg"},WaPW:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var n=window.getComputedStyle(e,null),r="",o=0;o<h.length&&!(r=n.getPropertyValue(h[o]+t));o++);return r}function a(e){if(p){var t=parseFloat(o(e,"transition-delay"))||0,n=parseFloat(o(e,"transition-duration"))||0,r=parseFloat(o(e,"animation-delay"))||0,a=parseFloat(o(e,"animation-duration"))||0,i=Math.max(n+t,a+r);e.rcEndAnimTimeout=setTimeout(function(){e.rcEndAnimTimeout=null,e.rcEndListener&&e.rcEndListener()},1e3*i+200)}}function i(e){e.rcEndAnimTimeout&&(clearTimeout(e.rcEndAnimTimeout),e.rcEndAnimTimeout=null)}Object.defineProperty(t,"__esModule",{value:!0});var s="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},u=n("xw40"),c=r(u),l=n("onlG"),f=r(l),p=0!==c.default.endEvents.length,d=["Webkit","Moz","O","ms"],h=["-webkit-","-moz-","-o-","ms-",""],m=function(e,t,n){var r="object"===(void 0===t?"undefined":s(t)),o=r?t.name:t,u=r?t.active:t+"-active",l=n,p=void 0,d=void 0,h=(0,f.default)(e);return n&&"[object Object]"===Object.prototype.toString.call(n)&&(l=n.end,p=n.start,d=n.active),e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),i(e),h.remove(o),h.remove(u),c.default.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,l&&l())},c.default.addEndEventListener(e,e.rcEndListener),p&&p(),h.add(o),e.rcAnimTimeout=setTimeout(function(){e.rcAnimTimeout=null,h.add(u),d&&setTimeout(d,0),a(e)},30),{stop:function(){e.rcEndListener&&e.rcEndListener()}}};m.style=function(e,t,n){e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),i(e),c.default.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,n&&n())},c.default.addEndEventListener(e,e.rcEndListener),e.rcAnimTimeout=setTimeout(function(){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);e.rcAnimTimeout=null,a(e)},0)},m.setTransition=function(e,t,n){var r=t,o=n;void 0===n&&(o=r,r=""),r=r||"",d.forEach(function(t){e.style[t+"Transition"+r]=o})},m.isCssAnimationSupported=p,t.default=m,e.exports=t.default},Wdy1:function(e,t,n){var r=n("YjQv"),o=n("iANj"),a=n("3fMt"),i=n("aLzV"),s=function(e,t,n){var u,c,l,f=e&s.F,p=e&s.G,d=e&s.S,h=e&s.P,m=e&s.B,v=e&s.W,y=p?o:o[t]||(o[t]={}),b=y.prototype,g=p?r:d?r[t]:(r[t]||{}).prototype;p&&(n=t);for(u in n)(c=!f&&g&&void 0!==g[u])&&u in y||(l=c?g[u]:n[u],y[u]=p&&"function"!=typeof g[u]?n[u]:m&&c?a(l,r):v&&g[u]==l?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(l):h&&"function"==typeof l?a(Function.call,l):l,h&&((y.virtual||(y.virtual={}))[u]=l,e&s.R&&b&&!b[u]&&i(b,u,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},WgSQ:function(e,t,n){e.exports=n("zNjz")(93)},Wh6c:function(e,t,n){function r(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:o(e,t,n)}var o=n("M1c9");e.exports=r},WiIn:function(e,t,n){e.exports=n("zNjz")(295)},WkfU: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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}function s(){}var u,c,l,f,p=n("Jmof"),d=(n.n(p),n("KSGD")),h=n.n(d),m=n("211U"),v=n.n(m),y=n("HW6M"),b=n.n(y),g=n("Pp2j"),_=n("oiih"),E=n("T7Xq"),w=n.n(E),O=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),P=(u=v()(w.a,{allowMultiple:_.b}))((f=l=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClose=function(e){e.preventDefault(),n.setState({closed:!0}),(n.props.onClose||s)(e)},n.state={closed:!1},n}return i(t,e),O(t,[{key:"render",value:function(){var e,t=this.props,n=t.description,o=t.type,a=t.message,i=t.showIcon,s=t.closeText;s&&(this.props.closable=!0);var u=b()((e={alert:!0},r(e,"alert__"+o,!0),r(e,"with-description",!!n),r(e,"no-icon",!i),e));return this.state.closed?null:React.createElement("div",{styleName:u},i?React.createElement(g.a,{styleName:"alert--icon",name:o,size:18}):null,React.createElement("span",{styleName:"alert--message"},a),React.createElement("span",{styleName:"alert--description"},n),this.props.closable?React.createElement("span",{onClick:this.handleClose,styleName:"alert--close"},s||React.createElement(g.a,{name:"close",size:14})):null)}}]),t}(p.PureComponent),l.displayName="Alert",l.defaultProps={type:"info",closable:!1,showIcon:!1,closeText:"",message:"",description:"",onClose:function(){}},l.propTypes={type:h.a.oneOf(["info","success","error","warning"]),closable:h.a.bool,showIcon:h.a.bool,closeText:h.a.oneOfType([h.a.string,h.a.element]),message:h.a.oneOfType([h.a.string,h.a.element]),description:h.a.oneOfType([h.a.string,h.a.element]),onClose:h.a.func},c=f))||c;t.a=P},WpTh:function(e,t,n){e.exports=n("zNjz")(363)},Wpbd:function(e,t,n){"use strict";var r=function(e){return"/"===e.charAt(0)},o=function(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],a=t&&t.split("/")||[],i=e&&r(e),s=t&&r(t),u=i||s;if(e&&r(e)?a=n:n.length&&(a.pop(),a=a.concat(n)),!a.length)return"/";var c=void 0;if(a.length){var l=a[a.length-1];c="."===l||".."===l||""===l}else c=!1;for(var f=0,p=a.length;p>=0;p--){var d=a[p];"."===d?o(a,p):".."===d?(o(a,p),f++):f&&(o(a,p),f--)}if(!u)for(;f--;f)a.unshift("..");!u||""===a[0]||a[0]&&r(a[0])||a.unshift("");var h=a.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h};e.exports=a},WuRR:function(e,t,n){"use strict";var r=function(){};e.exports=r},WxI4:function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},XFRO:function(e,t,n){"use strict";function r(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}function s(e){return void 0===e||null===e?"":e}var u,c,l,f,p=n("Jmof"),d=(n.n(p),n("KSGD")),h=n.n(d),m=n("BEQ0"),v=n.n(m),y=n("211U"),b=n.n(y),g=n("HW6M"),_=n.n(g),E=n("oiih"),w=n("bIRp"),O=n("PewI"),P=n.n(O),x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),C=(u=b()(P.a,{allowMultiple:E.b}))((f=l=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.textareaChange=function(e){"value"in n.props||n.resizeTextarea();var t=n.props.onChange;t&&t(e)},n.resizeTextarea=function(){var e=n.props,t=e.type,r=e.autosize;if("textarea"===t&&r&&n.input){var o=Object(w.a)(n.input,!1);n.setState({textareaStyles:o})}},n.state={textareaStyles:{}},n}return i(t,e),S(t,[{key:"renderLabeledIcon",value:function(e){var t=this.props,n=t.type,r=t.prefix,o=t.suffix,a=t.style;if("textarea"===n||!("prefix"in this.props||"suffix"in this.props))return e;var i=r?React.createElement("span",{styleName:"input__prefix"},r):null,s=o?React.createElement("span",{styleName:"input__suffix"},o):null,u={styleName:_()("input__wrapper",{input__wrapper__prefix:r,input__wrapper__suffix:o})};return React.createElement("span",x({},u,{style:a}),i,Object(p.cloneElement)(e),s)}},{key:"render",value:function(){var e=this,t=this.props,n=t.type,o=t.size,a=t.disabled,i=(t.suffix,t.autosize,r(t,["type","size","disabled","suffix","autosize"])),u=x({},i,{styleName:"input__"+(a?"disabled":n)+" input__"+o,ref:function(t){return e.input=t},disabled:a});return"value"in t&&(i.value=s(t.value),delete i.defaultValue),"textarea"===n?React.createElement("textarea",x({},u,{style:v()({},t.style,this.state.textareaStyles),onChange:this.textareaChange})):this.renderLabeledIcon(React.createElement("input",u))}}]),t}(p.PureComponent),l.displayName="Input",l.defaultProps={type:"text",size:"normal",disabled:!1,autosize:!1,prefix:void 0,suffix:void 0,onChange:function(){}},l.propTypes={type:h.a.oneOf(["text","textarea"]),size:h.a.oneOf(["normal","large","small"]),disabled:h.a.bool,autosize:h.a.bool,prefix:h.a.node,suffix:h.a.node,onChange:h.a.func},c=f))||c;t.a=C},XLvd:function(e,t,n){"use strict";n("CIox")},XUwW:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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}Object.defineProperty(t,"__esModule",{value:!0});var a=n("yCNF"),i=r(a),s=n("2247"),u=r(s),c=n("NGEn"),l=r(c),f=n("309y"),p=r(f),d=n("Jmof"),h=r(d),m=n("HzHG"),v=r(m),y=n("CEFT"),b=r(y),g=n("8Vmw"),_=r(g),E=n("+zCo"),w=r(E),O=function e(t,n,r){return(0,p.default)(t,function(o,a){h.default.isValidElement(o)?t[a]=P(h.default.Children.only(o),n,r):(0,l.default)(o)&&(t[a]=e(o,n,r))}),t},P=function e(t,n,r){var a=void 0,i=void 0,s=void 0;s=t,Object.isFrozen&&Object.isFrozen(s)&&(i=!0,s=(0,v.default)(s),s.props=(0,v.default)(s.props));var c=(0,_.default)(s.props.styleName||"",r.allowMultiple),f=s.props,d=f.children,m=o(f,["children"]);return h.default.isValidElement(d)?s.props.children=e(h.default.Children.only(d),n,r):((0,l.default)(d)||(0,b.default)(d))&&(s.props.children=h.default.Children.map(d,function(t){return h.default.isValidElement(t)?e(h.default.Children.only(t),n,r):t})),(0,p.default)(m,function(t,o){h.default.isValidElement(t)?s.props[o]=e(h.default.Children.only(t),n,r):(0,l.default)(t)&&(s.props[o]=(0,u.default)(t,function(t){return h.default.isValidElement(t)?e(h.default.Children.only(t),n,r):(0,l.default)(t)?O(t,n,r):t}))}),c.length&&(a=(0,w.default)(n,c,r.handleNotFoundStyleName))&&(s.props.className&&(a=s.props.className+" "+a),s.props.className=a),delete s.props.styleName,i&&(Object.freeze(s.props),Object.freeze(s)),s};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,i.default)(e)?P(e,t,n):e},e.exports=t.default},XVfB:function(e,t){function n(e){return e.placeholder}e.exports=n},XWNV:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u,c,l=n("Jmof"),f=(n.n(l),n("KSGD")),p=n.n(f),d=n("BEQ0"),h=n.n(d),m=n("211U"),v=n.n(m),y=n("HW6M"),b=n.n(y),g=n("PJh5"),_=n.n(g),E=n("iB3Z"),w=n.n(E),O=n("Pp2j"),P=n("oiih"),x=n("pS//"),S=n.n(x),C=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k=(i=v()(S.a,{allowMultiple:P.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleSubtractYear=function(){n.props.manipulateDate("subtract",1,"Y")},n.handleSubtractMonth=function(){n.props.manipulateDate("subtract",1,"M")},n.handleAddYear=function(){n.props.manipulateDate("add",1,"Y")},n.handleAddMonth=function(){n.props.manipulateDate("add",1,"M")},n.state={},n}return a(t,e),C(t,[{key:"handleClickDate",value:function(e,t,n){this.props.changeDate(e,t,n)}},{key:"renderWeekTitle",value:function(){var e=_.a.weekdaysMin();return React.createElement("div",{styleName:"datePicker_weekTitle"},e.map(function(e){return React.createElement("div",{styleName:"datePicker__weekTitleGrid",key:e},e)}))}},{key:"renderPaneHead",value:function(){var e=this.props,t=e.date,n=e.showYearPane,r=e.showMonthPane;return React.createElement("div",{styleName:"datePicker__datePaneHead"},React.createElement("button",{styleName:"datePicker__headControlBtn",onClick:this.handleSubtractYear},React.createElement(O.a,{name:"double-arrow-left",size:14})),React.createElement("button",{styleName:"datePicker__headControlBtn",onClick:this.handleSubtractMonth},React.createElement(O.a,{name:"arrow-left",size:14})),React.createElement("div",{styleName:"datePicker__headJump"},React.createElement("button",{styleName:"datePicker__headJumpBtn",onClick:r},t.format("MMM")),React.createElement("button",{styleName:"datePicker__headJumpBtn",onClick:n},t.format("YYYY"))),React.createElement("button",{styleName:"datePicker__headControlBtn",onClick:this.handleAddMonth},React.createElement(O.a,{name:"arrow-right",size:14})),React.createElement("button",{styleName:"datePicker__headControlBtn",onClick:this.handleAddYear},React.createElement(O.a,{name:"double-arrow-right",size:14})))}},{key:"renderWeekDays",value:function(){for(var e=this.props,t=e.date,n=e.disabledDate,r=e.inRange,o=e.alwaysShowEqualWeeks,a=t.date(),i=_()(t).startOf("month"),s=_()(t).endOf("month"),u=i.weekday(),c=_()(i).subtract(u,"d"),l=s.date(),f=t.month(),p=[],d=-u,m=[];;){var v={key:d},y=void 0,g=t.year();if(d<0)y=c.date(),h()(v,{styleName:"datePicker__dayGrid datePicker__dayGrid--lastMonth",onClick:this.handleClickDate.bind(this,g,f-1,y)});else if(d>=l)y=c.date(),h()(v,{styleName:"datePicker__dayGrid datePicker__dayGrid--nextMonth",onClick:this.handleClickDate.bind(this,g,f+1,y)});else{y=d+1;var E=n&&n(c);h()(v,{styleName:b()("datePicker__dayGrid","datePicker__dayGrid--curMonth",{"datePicker__dayGrid--active":y===a&&!E,"datePicker__dayGrid--disabled":E,"datePicker__dayGrid--range":r&&r(c)}),onClick:E?null:this.handleClickDate.bind(this,g,f,y)})}if(m.push(React.createElement("button",v,y)),7===m.length){if(p.push(m),d+1>=l&&(!o||p.length>=6))break;m=[]}c.add(1,"d"),d+=1}return p.map(function(e,t){return React.createElement("div",{key:t,styleName:"datePicker__weekRow"},e)})}},{key:"render",value:function(){var e=this.props.className;return React.createElement("div",{styleName:"datePicker__picker datePicker__datePane",className:e},this.renderPaneHead(),this.renderWeekTitle(),this.renderWeekDays())}}]),t}(l.PureComponent),u.displayName="DatePane",u.defaultProps={className:"",date:_()(),showYearPane:function(){},showMonthPane:function(){},changeDate:function(){},manipulateDate:function(){},disabledDate:function(){},inRange:void 0,alwaysShowEqualWeeks:!1},u.propTypes={className:p.a.string,date:w.a.momentObj,showYearPane:p.a.func,showMonthPane:p.a.func,changeDate:p.a.func,manipulateDate:p.a.func,disabledDate:p.a.func,inRange:p.a.func,alwaysShowEqualWeeks:p.a.bool},s=c))||s;t.a=k},XcCD:function(e,t,n){"use strict";var r=n("HW6M"),o=n.n(r),a=n("Jfof"),i=n("Pp2j"),s=n("U0vi"),u=n.n(s),c=function(e){var t=e.percent,n=e.status,r=e.size,a=e.showInfo;console.log(a);var s={className:o()(u.a["progress__"+(a?"showinfo":"line")],u.a["progress__line--"+r+"Size"],u.a["progress__line--"+n])},c={className:u.a.progress__lineInner,style:{width:t+"%"}},l=void 0;if(a)switch(n){case"success":l=React.createElement(i.a,{name:"success",size:14});break;case"exception":l=React.createElement(i.a,{name:"error",size:14});break;case"pause":l=React.createElement(i.a,{name:"clock",size:14});break;default:l=t+"%"}return React.createElement("div",s,React.createElement("div",{className:u.a.progress__lineOuter},React.createElement("div",c)),a?React.createElement("span",{className:u.a.progress__lineIndicator},l):null)};c.defaultProps=a.a,c.propTypes=a.b,t.a=c},XtiL:function(e,t,n){e.exports=n("zNjz")(292)},Y1S0:function(e,t,n){e.exports=n("zNjz")(321)},YDHx:function(e,t,n){function r(e,t,n,i,s){return e===t||(null==e||null==t||!a(e)&&!a(t)?e!==e&&t!==t:o(e,t,n,i,r,s))}var o=n("Uz1a"),a=n("UnEC");e.exports=r},YSWR:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=["fade","flipX","slideUp","slideDown","zoom","bounce"],o={ease:"cubic-bezier(.25, .1, .25, 1)",linear:"cubic-bezier(0,0,1,1)","ease-in":"cubic-bezier(.42,0,1,1)","ease-out":"cubic-bezier(0,0,.58,1)","ease-in-out":"cubic-bezier(.42,0,.58,1)"};t.b=r},YTz9:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"YVn/":function(e,t,n){e.exports=n("zNjz")(411)},YeCl:function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n("CW5P"),a=n("A9mX"),i=n("v8Dt"),s=n("agim"),u=n("Dv2r");r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=i,r.prototype.has=s,r.prototype.set=u,e.exports=r},Ygqm:function(e,t,n){function r(e,t){for(var n,r=[],o=0,a=0,i="",s=t&&t.delimiter||"/";null!=(n=b.exec(e));){var l=n[0],f=n[1],p=n.index;if(i+=e.slice(a,p),a=p+l.length,f)i+=f[1];else{var d=e[a],h=n[2],m=n[3],v=n[4],y=n[5],g=n[6],_=n[7];i&&(r.push(i),i="");var E=null!=h&&null!=d&&d!==h,w="+"===g||"*"===g,O="?"===g||"*"===g,P=n[2]||s,x=v||y;r.push({name:m||o++,prefix:h||"",delimiter:P,optional:O,repeat:w,partial:E,asterisk:!!_,pattern:x?c(x):_?".*":"[^"+u(P)+"]+?"})}}return a<e.length&&(i+=e.substr(a)),i&&r.push(i),r}function o(e,t){return s(r(e,t))}function a(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function i(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function s(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,r){for(var o="",s=n||{},u=r||{},c=u.pretty?a:encodeURIComponent,l=0;l<e.length;l++){var f=e[l];if("string"!=typeof f){var p,d=s[f.name];if(null==d){if(f.optional){f.partial&&(o+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(y(d)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(p=c(d[h]),!t[l].test(p))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(p)+"`");o+=(0===h?f.prefix:f.delimiter)+p}}else{if(p=f.asterisk?i(d):c(d),!t[l].test(p))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+p+'"');o+=f.prefix+p}}else o+=f}return o}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function f(e){return e.sensitive?"":"i"}function p(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(e,t)}function d(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(v(e[o],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",f(n)),t)}function h(e,t,n){return m(r(e,n),t,n)}function m(e,t,n){y(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,o=!1!==n.end,a="",i=0;i<e.length;i++){var s=e[i];if("string"==typeof s)a+=u(s);else{var c=u(s.prefix),p="(?:"+s.pattern+")";t.push(s),s.repeat&&(p+="(?:"+c+p+")*"),p=s.optional?s.partial?c+"("+p+")?":"(?:"+c+"("+p+"))?":c+"("+p+")",a+=p}}var d=u(n.delimiter||"/"),h=a.slice(-d.length)===d;return r||(a=(h?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=o?"$":r&&h?"":"(?="+d+"|$)",l(new RegExp("^"+a,f(n)),t)}function v(e,t,n){return y(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?p(e,t):y(e)?d(e,t,n):h(e,t,n)}var y=n("sOR5");e.exports=v,e.exports.parse=r,e.exports.compile=o,e.exports.tokensToFunction=s,e.exports.tokensToRegExp=m;var b=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},YjQv:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},YkxI:function(e,t,n){function r(e,t){return i(a(e,t,o),e+"")}var o=n("wSKX"),a=n("Q2wK"),i=n("WHce");e.exports=r},YsVG:function(e,t,n){var r=n("z4hc"),o=n("S7p9"),a=n("Dc0G"),i=a&&a.isTypedArray,s=i?o(i):r;e.exports=s},Yu0Y:function(e,t){e.exports={"fade--entering":"_1mp5FXi",fadeIn:"gbiUlUN","fade--entered":"_26DcFZN","fade--exiting":"_2wSC5er",fadeOut:"_2OnzTOe","fade--exited":"_2K6mlzL",flipX:"sCG0bzF","flipX--entering":"_3cdJQI5",flipInX:"_1FsXcPX","flipX--entered":"qGmSxIW","flipX--exiting":"_3NfjJC-",flipOutX:"_24wLE9d","flipX--exited":"_24MsE6n",slideUp:"_1oUCufa","slideUp--entering":"_1mO_SWR",slideInUp:"_12qhs-A","slideUp--entered":"_3-WipgH","slideUp--exiting":"_27bTj8j",slideOutUp:"_20eULFb","slideUp--exited":"_34-gsuv",slideDown:"_706TJ5I","slideDown--entering":"_1ieQGlB",slideInDown:"_21y5cl_","slideDown--entered":"_3FYkJ5S","slideDown--exiting":"desE714",slideOutDown:"_16Yi8is","slideDown--exited":"_3FJ4sR6",zoom:"_2aGrmGr","zoom--entering":"EdoD2Q2",zoomIn:"gybKzsL","zoom--entered":"_3kIgIBr","zoom--exiting":"k0tHLpV",zoomOut:"_689sLoR","zoom--exited":"_6jD7wgI",bounce:"_38IQtyb","bounce--entering":"_1_uO8bU",bounceIn:"_2j4EhAR","bounce--entered":"_1hNAImH","bounce--exiting":"Hpxa8Tt",bounceOut:"_2yWAe_R","bounce--exited":"_3VDKDtK"}},"Z+TA":function(e,t,n){"use strict";e.exports=n("ofPt")},Z2pD:function(e,t,n){function r(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?a:t,this}var o=n("dCZQ"),a="__lodash_hash_undefined__";e.exports=r},Z5El:function(e,t,n){var r=n("rU0D"),o=r("toLowerCase");e.exports=o},"Z8+Z":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Divider=t.ItemGroup=t.MenuItemGroup=t.MenuItem=t.Item=t.SubMenu=void 0;var o=n("bfuL"),a=r(o),i=n("7NjT"),s=r(i),u=n("HKGd"),c=r(u),l=n("EMDh"),f=r(l),p=n("wAcK"),d=r(p);t.SubMenu=s.default,t.Item=c.default,t.MenuItem=c.default,t.MenuItemGroup=f.default,t.ItemGroup=f.default,t.Divider=d.default,t.default=a.default},ZDXm:function(e,t,n){e.exports=n("zNjz")(240)},ZGh9:function(e,t){function n(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||o.test(e))&&e>-1&&e%1==0&&e<t}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=n},"ZJA+":function(e,t){e.exports={breadcrumb:"_26mKfx-","breadcrumb--separator":"_3v_bQW3","breadcrumb--link":"_35am08f","breadcrumb--icon":"y-He0IY"}},ZT2e:function(e,t,n){function r(e){return null==e?"":o(e)}var o=n("o2mx");e.exports=r},Zk5a:function(e,t){function n(e){var t=0,n=0;return function(){var i=a(),s=o-(i-n);if(n=i,s>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,o=16,a=Date.now;e.exports=n},Zrlr:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},Zsme:function(e,t,n){"use strict";function r(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}var s,u,c,l,f=n("Jmof"),p=(n.n(f),n("KSGD")),d=n.n(p),h=n("211U"),m=n.n(h),v=n("oiih"),y=n("ZJA+"),b=n.n(y),g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=(s=m()(b.a,{allowMultiple:v.b}))((l=c=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n}return i(t,e),_(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.separator,o=r(e,["children","separator"]),a=g({},o,{styleName:"breadcrumb--link"}),i=void 0;return i="href"in this.props?React.createElement("a",a,t):React.createElement("span",a,t),t?React.createElement("span",null,i,React.createElement("span",{styleName:"breadcrumb--separator"},n)):null}}]),t}(f.PureComponent),c.displayName="BreadcrumbItem",c.defaultProps={separator:"/"},c.propTypes={separator:d.a.oneOfType([d.a.string,d.a.element]),href:d.a.string},u=l))||u;t.a=E},Zzip:function(e,t,n){e.exports={default:n("BQO6"),__esModule:!0}},"a/OS":function(e,t,n){var r=n("YjQv"),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},a8z9:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}n.d(t,"a",function(){return x});var i,s,u,c,l,f=n("Jmof"),p=n.n(f),d=n("KSGD"),h=n.n(d),m=n("211U"),v=n.n(m),y=n("HW6M"),b=n.n(y),g=n("xicH"),_=n("oiih"),E=n("WKZb"),w=n.n(E),O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),x=(i=v()(w.a,{allowMultiple:_.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return l.call(n),n.onClick=n.onClick.bind(n),n.deleteButton=n.deleteButton.bind(n),n.getPanel=n.getPanel.bind(n),n.state={activeKey:e.activeKey||e.defaultActiveKey,children:e.children},n}return a(t,e),P(t,[{key:"componentWillReceiveProps",value:function(e){e.activeKey!==this.state.activeKey&&this.setState({activeKey:e.activeKey}),e.children!==this.state.children&&this.setState({children:e.children})}},{key:"render",value:function(){var e=this.getPanel(),t=this.props,n=t.type,r=t.size,o=t.tabPosition,a=b()({tabs__card:"card"===n,tabs__button:"button"===n,tabs__small:"small"===r,"tabs__left clearfix":"left"===o,tabs__wrap:!0});return p.a.createElement("div",{styleName:a},p.a.createElement("div",{styleName:"tabs__bar"},e.tab),p.a.createElement("div",{styleName:"tabs__con"},e.panel))}}]),t}(f.PureComponent),u.displayName="Tabs",u.defaultProps={defaultActiveKey:0,type:"line",size:"default",tabPosition:"top"},u.propTypes={type:h.a.oneOf(["line","card","button"]),size:h.a.oneOf(["default","small"]),tabPosition:h.a.oneOf(["top","left"]),activeKey:h.a.number,defaultActiveKey:h.a.number},l=function(){var e=this;this.onClick=function(t){var n=e.props;n.children[t].props.disabled||(n.onClick&&n.onClick(t),e.setState({activeKey:t,panelUpdateKey:-1}))},this.deleteButton=function(t){e.props.deleteButton(),e.setState({panelUpdateKey:t})},this.getPanel=function(){var t=e.state,n=t.activeKey,r=t.panelUpdateKey,o=t.style,a=e.props.tabDeleteButton,i=[],s=[],u={style:o,onClick:e.onClick,tabDeleteButton:a,deleteButton:e.deleteButton};return f.Children.forEach(e.state.children,function(e,t){var o=t===n?"active":"inactive",a={key:"tab"+t,tabKey:t,title:e.props.title,status:o,disabled:e.props.disabled,closable:e.props.closable};if(i.push(p.a.createElement(g.a,O({},u,a))),t===n){var c={className:b()("tabs__panel",o),status:o,key:t,update:r===t};s.push(Object(f.cloneElement)(e,c))}}),{tab:i,panel:s}}},s=c))||s},aCM0:function(e,t,n){function r(e){return null==e?void 0===e?u:s:c&&c in Object(e)?a(e):i(e)}var o=n("NkRn"),a=n("uLhX"),i=n("+66z"),s="[object Null]",u="[object Undefined]",c=o?o.toStringTag:void 0;e.exports=r},aGZZ:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("Dd8w"),a=r(o),i=n("Jmof"),s=r(i),u=n("KSGD"),c=r(u),l=n("DT0+"),f=r(l),p=(0,f.default)({displayName:"DOMWrap",propTypes:{tag:c.default.string,hiddenClassName:c.default.string,visible:c.default.bool},getDefaultProps:function(){return{tag:"div"}},render:function(){var e=(0,a.default)({},this.props);e.visible||(e.className=e.className||"",e.className+=" "+e.hiddenClassName);var t=e.tag;return delete e.tag,delete e.hiddenClassName,delete e.visible,s.default.createElement(t,e)}});t.default=p,e.exports=t.default},aI9a:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13"},e),u)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("path",{d:"M7.859 2.974c-.306.306-.57.568-1.017 1.01-1.924 1.9-2.42 2.431-2.818 3.107-.548.93-.432 1.722.36 2.495 1.45 1.414 2.286.913 5.686-2.522.382-.386.598-.604.852-.857 1.742-1.743 2.15-3.44.348-5.133-1.422-1.336-3.176-1.206-5.095.301-1.365 1.36-1.365 1.36-2.845 2.84C.11 7.435 0 9.842 2.212 11.793c2.221 1.96 4.781 1.487 8.638-2.37a.5.5 0 1 0-.708-.707c-3.52 3.52-5.5 3.887-7.269 2.327-1.75-1.545-1.671-3.285 1.164-6.12l2.8-2.8c1.519-1.19 2.728-1.28 3.748-.321 1.288 1.21 1.026 2.3-.37 3.697-.255.255-.473.473-.856.86-2.944 2.976-3.474 3.293-4.277 2.51-.466-.455-.508-.743-.197-1.272.332-.564.826-1.09 2.66-2.903.448-.442.714-.706 1.02-1.013a.5.5 0 1 0-.706-.708z"});t.a=r},aJ2J:function(e,t,n){e.exports=n("zNjz")(296)},aLzV:function(e,t,n){var r=n("GCs6"),o=n("YTz9");e.exports=n("qs+f")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},aQOO:function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},abPz:function(e,t,n){"use strict";var r=n("Aq0r"),o=n("beh1"),a=n("yYxz"),i=n("ksFB");e.exports=n("4dmN")(Array,"Array",function(e,t){this._t=i(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},agim:function(e,t,n){function r(e){return o(this,e).has(e)}var o=n("pTUa");e.exports=r},akIm:function(e,t){function n(e,t){for(var n=-1,o=e.length,a=0,i=[];++n<o;){var s=e[n];s!==t&&s!==r||(e[n]=r,i[a++]=n)}return i}var r="__lodash_placeholder__";e.exports=n},arHq:function(e,t){e.exports={Spin:"_2skC-me","qui-spin-dot":"_1EZh2dh",small:"_2x0173l",large:"_3QD-S4t",uiFade:"_2EHkGoG","qui-spin-text":"_2uKi-RX","qui-spin-container":"_1ZQogri","qui-spin-blur":"_1m5Kgy8","qui-spin-loading-wrap":"_2_VO-5x","qui-spin-wrap":"_2xnXvO0"}},az00:function(e,t,n){"use strict";function r(){}function o(e){e.preventDefault()}var a=n("bOdI"),i=n.n(a),s=n("Dd8w"),u=n.n(s),c=n("Jmof"),l=n.n(c),f=n("KSGD"),p=n.n(f),d=n("DT0+"),h=n.n(d),m=n("HW6M"),v=n.n(m),y=n("TyAW"),b=n("5AF/"),g=h()({propTypes:{focusOnUpDown:p.a.bool,onChange:p.a.func,onKeyDown:p.a.func,onKeyUp:p.a.func,prefixCls:p.a.string,tabIndex:p.a.string,disabled:p.a.bool,onFocus:p.a.func,onBlur:p.a.func,readOnly:p.a.bool,max:p.a.number,min:p.a.number,step:p.a.oneOfType([p.a.number,p.a.string]),upHandler:p.a.node,downHandler:p.a.node,useTouch:p.a.bool,formatter:p.a.func,parser:p.a.func,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onMouseOver:p.a.func,onMouseOut:p.a.func,precision:p.a.number},mixins:[y.a],getDefaultProps:function(){return{focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number"}},componentDidMount:function(){this.componentDidUpdate()},componentWillUpdate:function(){try{this.start=this.refs.input.selectionStart,this.end=this.refs.input.selectionEnd}catch(e){}},componentDidUpdate:function(){if(this.props.focusOnUpDown&&this.state.focused){var e=this.refs.input.setSelectionRange;e&&"function"==typeof e&&void 0!==this.start&&void 0!==this.end&&this.start!==this.end?this.refs.input.setSelectionRange(this.start,this.end):this.focus()}},onKeyDown:function(e){if(38===e.keyCode){var t=this.getRatio(e);this.up(e,t),this.stop()}else if(40===e.keyCode){var n=this.getRatio(e);this.down(e,n),this.stop()}var r=this.props.onKeyDown;if(r){for(var o=arguments.length,a=Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];r.apply(void 0,[e].concat(a))}},onKeyUp:function(e){this.stop();var t=this.props.onKeyUp;if(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t.apply(void 0,[e].concat(r))}},getRatio:function(e){var t=1;return e.metaKey||e.ctrlKey?t=.1:e.shiftKey&&(t=10),t},getValueFromEvent:function(e){return e.target.value},focus:function(){this.refs.input.focus()},formatWrapper:function(e){return this.props.formatter?this.props.formatter(e):e},render:function(){var e,t=u()({},this.props),n=t.prefixCls,a=t.disabled,s=t.readOnly,c=t.useTouch,f=v()((e={},i()(e,n,!0),i()(e,t.className,!!t.className),i()(e,n+"-disabled",a),i()(e,n+"-focused",this.state.focused),e)),p="",d="",h=this.state.value;if(h)if(isNaN(h))p=n+"-handler-up-disabled",d=n+"-handler-down-disabled";else{var m=Number(h);m>=t.max&&(p=n+"-handler-up-disabled"),m<=t.min&&(d=n+"-handler-down-disabled")}var y=!t.readOnly&&!t.disabled,g=void 0;void 0!==(g=this.state.focused?this.state.inputValue:this.toPrecisionAsStep(this.state.value))&&null!==g||(g="");var _=void 0,E=void 0;c?(_={onTouchStart:y&&!p?this.up:r,onTouchEnd:this.stop},E={onTouchStart:y&&!d?this.down:r,onTouchEnd:this.stop}):(_={onMouseDown:y&&!p?this.up:r,onMouseUp:this.stop,onMouseLeave:this.stop},E={onMouseDown:y&&!d?this.down:r,onMouseUp:this.stop,onMouseLeave:this.stop});var w=this.formatWrapper(g),O=!!p||a||s,P=!!d||a||s;return l.a.createElement("div",{className:f,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onMouseOver:t.onMouseOver,onMouseOut:t.onMouseOut},l.a.createElement("div",{className:n+"-handler-wrap"},l.a.createElement(b.a,u()({ref:"up",disabled:O,prefixCls:n,unselectable:"unselectable"},_,{role:"button","aria-label":"Increase Value","aria-disabled":!!O,className:n+"-handler "+n+"-handler-up "+p}),this.props.upHandler||l.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-up-inner",onClick:o})),l.a.createElement(b.a,u()({ref:"down",disabled:P,prefixCls:n,unselectable:"unselectable"},E,{role:"button","aria-label":"Decrease Value","aria-disabled":!!P,className:n+"-handler "+n+"-handler-down "+d}),this.props.downHandler||l.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-down-inner",onClick:o}))),l.a.createElement("div",{className:n+"-input-wrap",role:"spinbutton","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":h},l.a.createElement("input",{type:t.type,placeholder:t.placeholder,onClick:t.onClick,className:n+"-input",tabIndex:t.tabIndex,autoComplete:"off",onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:y?this.onKeyDown:r,onKeyUp:y?this.onKeyUp:r,autoFocus:t.autoFocus,maxLength:t.maxLength,readOnly:t.readOnly,disabled:t.disabled,max:t.max,min:t.min,name:t.name,id:t.id,onChange:this.onChange,ref:"input",value:w})))}});t.a=g},b2mn:function(e,t,n){function r(e,t,n,g,_,E,w,O,P,x){function S(){for(var d=arguments.length,h=Array(d),m=d;m--;)h[m]=arguments[m];if(j)var v=c(S),y=i(h,v);if(g&&(h=o(h,g,_,j)),E&&(h=a(h,E,w,j)),d-=y,j&&d<x){var b=f(h,v);return u(e,t,r,S.placeholder,n,h,b,O,P,x-d)}var M=k?n:this,D=R?M[e]:e;return d=h.length,O?h=l(h,O):T&&d>1&&h.reverse(),C&&P<d&&(h.length=P),this&&this!==p&&this instanceof S&&(D=N||s(D)),D.apply(M,h)}var C=t&y,k=t&d,R=t&h,j=t&(m|v),T=t&b,N=R?void 0:s(e);return S}var o=n("Di3q"),a=n("8NDG"),i=n("F47E"),s=n("iu+1"),u=n("v0t+"),c=n("XVfB"),l=n("CSeo"),f=n("akIm"),p=n("TQ3y"),d=1,h=2,m=8,v=16,y=128,b=512;e.exports=r},b7MC:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u,c,l=n("Jmof"),f=(n.n(l),n("KSGD")),p=n.n(f),d=n("211U"),h=n.n(d),m=n("HW6M"),v=n.n(m),y=n("BEQ0"),b=n.n(y),g=n("oiih"),_=n("KRSh"),E=n.n(_),w=n("Pp2j"),O=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),P=(i=h()(E.a,{allowMultiple:g.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClickPrev=function(){n.state.current>1&&n.handleChangeIndex(n.state.current-1)},n.handleClickNext=function(){n.state.current<Math.ceil(n.props.total/n.state.pageSize)&&n.handleChangeIndex(n.state.current+1)},n.handleChangeIndex=function(e){void 0===n.props.current&&n.setState({current:e}),n.props.onChange(e,n.state.pageSize)},n.handleChangeIndexPageSize=function(e){var t=+e.target.value,r=n.props.total,o=n.state.current,a=Math.ceil(r/t),i=void 0;i=o>a?a:o,void 0===n.props.pageSize&&n.setState({pageSize:t,current:i}),n.props.onSizeChange(t,i)},n.handleJumper=function(e){if("Enter"===e.key){var t=n.props.total,r=n.state.pageSize,o=Math.ceil(t/r),a=e.target.value;/^[1-9]+[0-9]*$/.test(a)&&(a=Number(a))<=o&&n.handleChangeIndex(a)}},n.state={current:e.current||e.defaultCurrent,pageSize:e.pageSize||e.defaultPageSize},n}return a(t,e),O(t,[{key:"componentWillReceiveProps",value:function(e){var t={};void 0!==e.current&&b()(t,{current:e.current}),void 0!==e.pageSize&&b()(t,{pageSize:e.pageSize}),this.setState(t)}},{key:"getItemProps",value:function(e){var t=this,n=this.state.current,r=n===e;return{styleName:v()("pagination__item",{"pagination__item--active":r}),onClick:r?null:function(){return t.handleChangeIndex(e)}}}},{key:"renderItems",value:function(){var e=this.props.total,t=this.state,n=t.current,r=t.pageSize,o=[],a=Math.ceil(e/r),i=void 0,s=void 0;for(1===n?(i=2,s=2):n===a?(i=a-1,s=a-1):(i=n,s=n);!(s-i>=3||i<=2&&s>=a-1);)i>2&&(i-=1),s<a-1&&(s+=1);o.push(React.createElement("li",{key:1},React.createElement("button",this.getItemProps(1),1))),2!==i&&1!==i&&o.push(React.createElement("li",{key:"front",styleName:"pagination__ellipsis"},React.createElement(w.a,{name:"ellipsis",size:12})));for(var u=i;u<=s;u+=1){var c=this.getItemProps(u);o.push(React.createElement("li",{key:u},React.createElement("button",c,u)))}return s!==a-1&&s!==a&&o.push(React.createElement("li",{key:"back",styleName:"pagination__ellipsis"},React.createElement(w.a,{name:"ellipsis",size:12}))),o.push(React.createElement("li",{key:a},React.createElement("button",this.getItemProps(a),a))),React.createElement("ul",{styleName:"pagination__pages"},o)}},{key:"renderControl",value:function(e){var t={styleName:v()("pagination__ctrl"),onClick:"prev"===e?this.handleClickPrev:this.handleClickNext},n=void 0;return n="prev"===e?React.createElement(w.a,{name:"double-arrow-left",size:12}):React.createElement(w.a,{name:"double-arrow-right",size:12}),React.createElement("button",t,n)}},{key:"renderSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.pageSizeOptions,r=this.state.pageSize;return t?React.createElement("select",{styleName:"pagination__sizeChanger",value:r,onChange:this.handleChangeIndexPageSize},n.map(function(e){return React.createElement("option",{key:e,value:e},e+" / 页")})):null}},{key:"renderQuickJumper",value:function(){var e=this.props.showQuickJumper,t={type:"text",styleName:"pagination__jumperField",onKeyPress:this.handleJumper};return e?React.createElement("span",{styleName:"pagination__jumper"},"跳至 ",React.createElement("input",t)," 页"):null}},{key:"renderTotal",value:function(){var e=this.props,t=e.showTotal,n=e.total;return t?React.createElement("span",{styleName:"pagination__total"},"共计 "+n+" 条"):null}},{key:"render",value:function(){console.info("render");var e=this.props.size,t="small"===e,n={styleName:v()("pagination",{"pagination--small":t,"pagination--normal":!t})};return React.createElement("div",n,this.renderTotal(),this.renderControl("prev"),this.renderItems(),this.renderControl("next"),this.renderSizeChanger(),this.renderQuickJumper())}}]),t}(l.PureComponent),u.displayName="Pagination",u.defaultProps={current:void 0,defaultCurrent:1,total:0,pageSize:void 0,defaultPageSize:10,onChange:function(){},showSizeChanger:!1,onSizeChange:function(){},pageSizeOptions:[10,20,30,40],showQuickJumper:!1,size:"",showTotal:!1},u.propTypes={current:p.a.number,defaultCurrent:p.a.number,total:p.a.number,pageSize:p.a.number,defaultPageSize:p.a.number,onChange:p.a.func,showSizeChanger:p.a.bool,onSizeChange:p.a.func,pageSizeOptions:p.a.arrayOf(p.a.number),showQuickJumper:p.a.bool,size:p.a.string,showTotal:p.a.bool},s=c))||s;t.a=P},bFAv:function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0});var o,a=n("zzRL"),i=function(e){return e&&e.__esModule?e:{default:e}}(a);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var s=(0,i.default)(o);t.default=s}).call(t,n("DuR2"),n("3IRH")(e))},bGc4:function(e,t,n){function r(e){return null!=e&&a(e.length)&&!o(e)}var o=n("gGqR"),a=n("Rh28");e.exports=r},bIRp:function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&s[n])return s[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),u=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=i.map(function(e){return e+":"+r.getPropertyValue(e)}).join(";"),l={sizingStyle:c,paddingSize:a,borderSize:u,boxSizing:o};return t&&n&&(s[n]=l),l}function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];u||(u=document.createElement("textarea"),document.body.appendChild(u));var n=r(e,t),o=n.paddingSize,i=n.borderSize,s=n.boxSizing,c=n.sizingStyle;u.setAttribute("style",c+";"+a),u.value=e.value||e.placeholder||"";var l=u.scrollHeight;return"border-box"===s?l+=i:"content-box"===s&&(l-=o),{height:l,minHeight:-1/0,maxHeight:1/0}}t.a=o;var a="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",i=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],s={},u=void 0},bIbi:function(e,t,n){var r=n("ICSD"),o=n("TQ3y"),a=r(o,"WeakMap");e.exports=a},bIjD:function(e,t,n){function r(e,t){return o(e)?e:a(e,t)?[e]:i(s(e))}var o=n("NGEn"),a=n("hIPy"),i=n("UnLw"),s=n("ZT2e");e.exports=r},bJWQ:function(e,t,n){function r(e){var t=this.__data__=new o(e);this.size=t.size}var o=n("duB3"),a=n("KmWZ"),i=n("NqZt"),s=n("E4Hj"),u=n("G2xm"),c=n("zpVT");r.prototype.clear=a,r.prototype.delete=i,r.prototype.get=s,r.prototype.has=u,r.prototype.set=c,e.exports=r},bK9A:function(e,t){e.exports={menu:"_37XJzyY"}},bO0Y:function(e,t,n){var r=n("ICSD"),o=n("TQ3y"),a=r(o,"Promise");e.exports=a},bOdI:function(e,t,n){"use strict";t.__esModule=!0;var r=n("C4MV"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t,n){return t in e?(0,o.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},bSeU:function(e,t){t.f={}.propertyIsEnumerable},bUY0:function(e,t,n){e.exports=n("zNjz")(397)},bXVx:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i=n("Jmof"),s=n.n(i),u=n("KSGD"),c=n.n(u),l=n("WuRR"),f=n.n(l),p=n("Een0"),d=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return a(t,e),t.prototype.componentWillReceiveProps=function(e){f()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),f()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,o=void 0;return s.a.Children.forEach(t,function(t){if(s.a.isValidElement(t)){var a=t.props,i=a.path,u=a.exact,c=a.strict,l=a.from,f=i||l;null==r&&(o=t,r=f?Object(p.a)(n.pathname,{path:f,exact:u,strict:c}):e.match)}}),r?s.a.cloneElement(o,{location:n,computedMatch:r}):null},t}(s.a.Component);d.contextTypes={router:c.a.shape({route:c.a.object.isRequired}).isRequired},d.propTypes={children:c.a.node,location:c.a.object}},beEN:function(e,t,n){e.exports=n("zNjz")(346)},beh1:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},bfuL:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("Dd8w"),a=r(o),i=n("KSGD"),s=r(i),u=n("DT0+"),c=r(u),l=n("BuW1"),f=r(l),p=n("eCKj"),d=(0,c.default)({displayName:"Menu",propTypes:{openSubMenuOnMouseEnter:s.default.bool,closeSubMenuOnMouseLeave:s.default.bool,selectedKeys:s.default.arrayOf(s.default.string),defaultSelectedKeys:s.default.arrayOf(s.default.string),defaultOpenKeys:s.default.arrayOf(s.default.string),openKeys:s.default.arrayOf(s.default.string),mode:s.default.string,onClick:s.default.func,onSelect:s.default.func,onDeselect:s.default.func,onDestroy:s.default.func,openTransitionName:s.default.string,openAnimation:s.default.oneOfType([s.default.string,s.default.object]),level:s.default.number,eventKey:s.default.string,selectable:s.default.bool,children:s.default.any},mixins:[f.default],getDefaultProps:function(){return{openSubMenuOnMouseEnter:!0,closeSubMenuOnMouseLeave:!0,selectable:!0,onClick:p.noop,onSelect:p.noop,onOpenChange:p.noop,onDeselect:p.noop,defaultSelectedKeys:[],defaultOpenKeys:[]}},getInitialState:function(){var e=this.props,t=e.defaultSelectedKeys,n=e.defaultOpenKeys;return"selectedKeys"in e&&(t=e.selectedKeys||[]),"openKeys"in e&&(n=e.openKeys||[]),{selectedKeys:t,openKeys:n}},componentWillReceiveProps:function(e){var t={};"selectedKeys"in e&&(t.selectedKeys=e.selectedKeys||[]),"openKeys"in e&&(t.openKeys=e.openKeys||[]),this.setState(t)},onDestroy:function(e){var t=this.state,n=this.props,r=t.selectedKeys,o=t.openKeys,a=r.indexOf(e);"selectedKeys"in n||-1===a||r.splice(a,1),a=o.indexOf(e),"openKeys"in n||-1===a||o.splice(a,1)},onItemHover:function(e){var t=this,n=e.item,r=this.props,o=r.mode,a=r.closeSubMenuOnMouseLeave,i=e.openChanges,s=void 0===i?[]:i;"inline"!==o&&!a&&n.isSubMenu&&function(){var r=t.state.activeKey,o=t.getFlatInstanceArray().filter(function(e){return e&&e.props.eventKey===r})[0];o&&o.props.open&&(s=s.concat({key:n.props.eventKey,item:n,originalEvent:e,open:!0}))}(),s=s.concat(this.getOpenChangesOnItemHover(e)),s.length&&this.onOpenChange(s)},onSelect:function(e){var t=this.props;if(t.selectable){var n=this.state.selectedKeys,r=e.key;n=t.multiple?n.concat([r]):[r],"selectedKeys"in t||this.setState({selectedKeys:n}),t.onSelect((0,a.default)({},e,{selectedKeys:n}))}},onClick:function(e){this.props.onClick(e)},onOpenChange:function(e){var t=this.props,n=this.state.openKeys.concat(),r=!1,o=function(e){var t=!1;if(e.open)(t=-1===n.indexOf(e.key))&&n.push(e.key);else{var o=n.indexOf(e.key);(t=-1!==o)&&n.splice(o,1)}r=r||t};Array.isArray(e)?e.forEach(o):o(e),r&&("openKeys"in this.props||this.setState({openKeys:n}),t.onOpenChange(n))},onDeselect:function(e){var t=this.props;if(t.selectable){var n=this.state.selectedKeys.concat(),r=e.key,o=n.indexOf(r);-1!==o&&n.splice(o,1),"selectedKeys"in t||this.setState({selectedKeys:n}),t.onDeselect((0,a.default)({},e,{selectedKeys:n}))}},getOpenTransitionName:function(){var e=this.props,t=e.openTransitionName,n=e.openAnimation;return t||"string"!=typeof n||(t=e.prefixCls+"-open-"+n),t},isInlineMode:function(){return"inline"===this.props.mode},lastOpenSubMenu:function(){var e=[],t=this.state.openKeys;return t.length&&(e=this.getFlatInstanceArray().filter(function(e){return e&&-1!==t.indexOf(e.props.eventKey)})),e[0]},renderMenuItem:function(e,t,n){if(!e)return null;var r=this.state,o={openKeys:r.openKeys,selectedKeys:r.selectedKeys,openSubMenuOnMouseEnter:this.props.openSubMenuOnMouseEnter};return this.renderCommonMenuItem(e,t,n,o)},render:function(){var e=(0,a.default)({},this.props);return e.className+=" "+e.prefixCls+"-root",this.renderRoot(e)}});t.default=d,e.exports=t.default},bl4z:function(e,t,n){"use strict";var r=n("E7AL");n.d(t,"a",function(){return r.a})},blYT:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n("DuR2"))},boXX:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M511.999 0C228.937 0 0 228.937 0 511.999c0 283.064 228.937 511.999 511.999 511.999 283.064 0 511.999-228.934 511.999-511.999C1023.997 228.937 795.063 0 511.999 0zm0 804.568c-40.227 0-73.142-32.915-73.142-73.14 0-40.23 32.915-73.145 73.142-73.145 40.23 0 73.145 32.915 73.145 73.145 0 40.225-32.915 73.14-73.145 73.14zm73.145-292.569c0 40.23-32.915 73.145-73.145 73.145-40.227 0-73.142-32.915-73.142-73.145V292.572c0-40.23 32.915-73.145 73.142-73.145 40.23 0 73.145 32.915 73.145 73.145v219.427z"});t.a=r},bqOW:function(e,t,n){e.exports=n("zNjz")(316)},bu5x:function(e,t,n){e.exports=n.p+"54e6334d7107a412a58b89766bf4bc09.jpg"},bzdx:function(e,t){e.exports={base:"CTy3CHb",small:"_1FNLWX0",normal:"_1O7JoXn",large:"_1JYFbqn",primary:"_1rlU5o-",secondary:"_16NdYXA",dashed:"_3YSE_nE",danger:"_1IZL9la",disabled:"_3P6QXVt","button--primary":"_11KqluX CTy3CHb _1rlU5o-","button--secondary":"_1QjCEA1 CTy3CHb _16NdYXA","button--dashed":"_1Ko5_w4 CTy3CHb _3YSE_nE","button--danger":"_16108o6 CTy3CHb _1IZL9la","button--disabled":"_3dqIZEv CTy3CHb _3P6QXVt","button--large":"_3KW6hMp _1JYFbqn","button--normal":"_3mBVgjk _1O7JoXn","button--small":"_2HVyQfI _1FNLWX0"}},c8Kh:function(e,t){e.exports=!0},cKZq:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u=n("wLXD"),c=n.n(u),l=n("Jmof"),f=(n.n(l),n("KSGD")),p=n.n(f),d=n("lkey"),h=n("Pp2j"),m=n("gPfh"),v=n("GFgZ"),y=n.n(v),b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g={info:"#3b98e0",success:"#73da7d",error:"#e6445e",warning:"#ffd31a"},_=(s=i=function(e){function t(){var e,n,a,i;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),a.state={visible:!1},i=n,o(a,i)}return a(t,e),b(t,[{key:"componentDidMount",value:function(){this.setState({visible:!0})}},{key:"render",value:function(){var e=this,t=this.props,n=t.type,r=t.config,o=t.afterClose,a=this.state.visible,i={title:React.createElement("p",null,React.createElement(h.a,{name:n,size:26,color:g[n]}),React.createElement("span",null,r.title||n),r.closable?React.createElement("button",{className:y.a.modal__closable,onClick:function(){e.setState({visible:!1})}},React.createElement(h.a,{name:"close",size:18,color:"#a6a6a6"})):null),visible:a,closable:!1,footer:React.createElement(d.a,{key:"confirm",type:"primary",onClick:function(){e.setState({visible:!1})}},"我知道了"),afterClose:function(){setTimeout(function(){o()},500)}};return React.createElement(m.a,i,r.content)}}]),t}(l.PureComponent),i.defaultProps={type:void 0,config:void 0,afterClose:function(){}},i.propTypes={type:p.a.oneOf(["info","success","error","warning"]),config:p.a.object,afterClose:p.a.func},s),E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{title:"",content:"",closable:!1},n=document.createElement("div");document.body.appendChild(n),c.a.render(React.createElement(_,{type:e,config:t,afterClose:function(){c.a.unmountComponentAtNode(n),document.body.removeChild(n)}}),n)};t.a=E},cdq7:function(e,t){function n(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}e.exports=n},ciQf:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o="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},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("rnpr"),s=r(i),u=n("crWv"),c=r(u),l=n("xIPz"),f=n("Izpu"),p=n("tqq1"),d=r(p),h=n("zFGm"),m=function(){try{return window.history.state||{}}catch(e){return{}}},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,c.default)(h.canUseDOM,"Browser history needs a DOM");var t=window.history,n=(0,h.supportsHistory)(),r=!(0,h.supportsPopStateOnHashChange)(),i=e.forceRefresh,u=void 0!==i&&i,p=e.getUserConfirmation,v=void 0===p?h.getConfirmation:p,y=e.keyLength,b=void 0===y?6:y,g=e.basename?(0,f.stripTrailingSlash)((0,f.addLeadingSlash)(e.basename)):"",_=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname,i=o.search,u=o.hash,c=a+i+u;return(0,s.default)(!g||(0,f.hasBasename)(c,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+c+'" to begin with "'+g+'".'),g&&(c=(0,f.stripBasename)(c,g)),(0,l.createLocation)(c,r,n)},E=function(){return Math.random().toString(36).substr(2,b)},w=(0,d.default)(),O=function(e){a(B,e),B.length=t.length,w.notifyListeners(B.location,B.action)},P=function(e){(0,h.isExtraneousPopstateEvent)(e)||C(_(e.state))},x=function(){C(_(m()))},S=!1,C=function(e){S?(S=!1,O()):w.confirmTransitionTo(e,"POP",v,function(t){t?O({action:"POP",location:e}):k(e)})},k=function(e){var t=B.location,n=j.indexOf(t.key);-1===n&&(n=0);var r=j.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(S=!0,D(o))},R=_(m()),j=[R.key],T=function(e){return g+(0,f.createPath)(e)},N=function(e,r){(0,s.default)(!("object"===(void 0===e?"undefined":o(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var a=(0,l.createLocation)(e,r,E(),B.location);w.confirmTransitionTo(a,"PUSH",v,function(e){if(e){var r=T(a),o=a.key,i=a.state;if(n)if(t.pushState({key:o,state:i},null,r),u)window.location.href=r;else{var c=j.indexOf(B.location.key),l=j.slice(0,-1===c?0:c+1);l.push(a.key),j=l,O({action:"PUSH",location:a})}else(0,s.default)(void 0===i,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},M=function(e,r){(0,s.default)(!("object"===(void 0===e?"undefined":o(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var a=(0,l.createLocation)(e,r,E(),B.location);w.confirmTransitionTo(a,"REPLACE",v,function(e){if(e){var r=T(a),o=a.key,i=a.state;if(n)if(t.replaceState({key:o,state:i},null,r),u)window.location.replace(r);else{var c=j.indexOf(B.location.key);-1!==c&&(j[c]=a.key),O({action:"REPLACE",location:a})}else(0,s.default)(void 0===i,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},D=function(e){t.go(e)},A=function(){return D(-1)},I=function(){return D(1)},L=0,z=function(e){L+=e,1===L?((0,h.addEventListener)(window,"popstate",P),r&&(0,h.addEventListener)(window,"hashchange",x)):0===L&&((0,h.removeEventListener)(window,"popstate",P),r&&(0,h.removeEventListener)(window,"hashchange",x))},K=!1,U=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=w.setPrompt(e);return K||(z(1),K=!0),function(){return K&&(K=!1,z(-1)),t()}},G=function(e){var t=w.appendListener(e);return z(1),function(){z(-1),t()}},B={length:t.length,action:"POP",location:R,createHref:T,push:N,replace:M,go:D,goBack:A,goForward:I,block:U,listen:G};return B};t.default=v},ciS7:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u,c,l=n("Jmof"),f=(n.n(l),n("KSGD")),p=n.n(f),d=n("BEQ0"),h=(n.n(d),n("211U")),m=n.n(h),v=n("HW6M"),y=n.n(v),b=n("Pp2j"),g=n("PJh5"),_=n.n(g),E=n("iB3Z"),w=n.n(E),O=n("oiih"),P=n("pS//"),x=n.n(P),S=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),C=(i=m()(x.a,{allowMultiple:O.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleSubtractYear=function(){n.props.manipulateDate("subtract",1,"Y")},n.handleAddYear=function(){n.props.manipulateDate("add",1,"Y")},n.state={},n}return a(t,e),S(t,[{key:"onChangeMonth",value:function(e){this.props.changeMonth(e),this.props.showDatePane()}},{key:"renderMonthHead",value:function(){var e=this.props,t=e.date,n=e.showYearPane;return React.createElement("div",{styleName:"datePicker__monthPaneHead"},React.createElement("button",{styleName:"datePicker__headControlBtn",onClick:this.handleSubtractYear},React.createElement(b.a,{name:"arrow-left",size:14})),React.createElement("button",{styleName:"datePicker__headJumpBtn",onClick:n},t.format("YYYY")),React.createElement("button",{styleName:"datePicker__headControlBtn",onClick:this.handleAddYear},React.createElement(b.a,{name:"arrow-right",size:14})))}},{key:"renderMonths",value:function(){var e=this,t=_.a.monthsShort(),n=this.props.date.format("MMM");return React.createElement("div",{styleName:"datePicker__monthBody"},t.map(function(t){var r={key:t,onClick:e.onChangeMonth.bind(e,t),styleName:y()("datePicker__monthGrid",{"datePicker__monthGrid--active":t===n})};return React.createElement("button",r,t)}))}},{key:"render",value:function(){var e=this.props.className;return React.createElement("div",{styleName:"datePicker__picker datePicker__monthPane",className:e},this.renderMonthHead(),this.renderMonths())}}]),t}(l.PureComponent),u.displayName="MonthPane",u.defaultProps={className:"",date:_()(),showYearPane:function(){},showDatePane:function(){},changeMonth:function(){},manipulateDate:function(){}},u.propTypes={className:p.a.string,date:w.a.momentObj,showYearPane:p.a.func,showDatePane:p.a.func,changeMonth:p.a.func,manipulateDate:p.a.func},s=c))||s;t.a=C},crWv:function(e,t,n){"use strict";var r=function(e,t,n,r,o,a,i,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,s],l=0;u=new Error(t.replace(/%s/g,function(){return c[l++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};e.exports=r},cxPT:function(e,t,n){"use strict";function r(e,t,n,r,a,i,s,u){if(o(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,a,i,s,u],f=0;c=new Error(t.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(e){};e.exports=r},"d+aQ":function(e,t,n){function r(e){var t=a(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||o(n,e,t)}}var o=n("hbAh"),a=n("16tV"),i=n("sJvV");e.exports=r},d4US:function(e,t,n){var r=n("ICSD"),o=n("TQ3y"),a=r(o,"DataView");e.exports=a},d6Sb:function(e,t){var n={};e.exports=n},dCLN:function(e,t,n){"use strict";n("CIox")},dCZQ:function(e,t,n){var r=n("ICSD"),o=r(Object,"create");e.exports=o},dFpP:function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}var o=n("imBK"),a=Array.prototype,i=a.splice;e.exports=r},dSUw:function(e,t,n){e.exports=n("zNjz")(239)},dTzs:function(e,t,n){e.exports=n("zNjz")(383)},deUO:function(e,t,n){function r(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var o=n("imBK");e.exports=r},dich:function(e,t,n){e.exports=n("zNjz")(456)},"dm+7":function(e,t,n){e.exports=n("zNjz")(393)},dmQx:function(e,t){function n(e,t){return e.has(t)}e.exports=n},ds30:function(e,t,n){"use strict";function r(e,t,n){function r(t){var r=new a.default(t);n.call(e,r)}return e.addEventListener?(e.addEventListener(t,r,!1),{remove:function(){e.removeEventListener(t,r,!1)}}):e.attachEvent?(e.attachEvent("on"+t,r),{remove:function(){e.detachEvent("on"+t,r)}}):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n("mmAL"),a=function(e){return e&&e.__esModule?e:{default:e}}(o);e.exports=t.default},duB3:function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n("WxI4"),a=n("dFpP"),i=n("JBvZ"),s=n("2Hvv"),u=n("deUO");r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=i,r.prototype.has=s,r.prototype.set=u,e.exports=r},"e6+Q":function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},e8CS:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M512 0C229.308 0 0 229.24 0 512s229.308 512 512 512 512-229.24 512-512S794.692 0 512 0zm-63.898 448.034C448.102 412.672 476.706 384 512 384c35.362 0 64.034 28.672 64.034 64.034V768c0 35.294-28.672 64.034-64.034 64.034-35.294 0-63.898-28.74-63.898-64.034V448.034zM512 321.058c-35.294 0-63.898-28.74-63.898-64.034 0-35.294 28.604-64.034 63.898-64.034 35.362 0 64.034 28.74 64.034 64.034 0 35.294-28.672 64.034-64.034 64.034z"});t.a=r},eCKj:function(e,t,n){"use strict";function r(){}function o(e,t,n){var r=t||"";return e.key||r+"item_"+n}function a(e,t){var n=-1;u.default.Children.forEach(e,function(e){n++,e&&e.type&&e.type.isMenuItemGroup?u.default.Children.forEach(e.props.children,function(e){n++,t(e,n)}):t(e,n)})}function i(e,t,n){e&&!n.find&&u.default.Children.forEach(e,function(e){if(!n.find&&e){var r=e.type;if(!r||!(r.isSubMenu||r.isMenuItem||r.isMenuItemGroup))return;-1!==t.indexOf(e.key)?n.find=!0:e.props.children&&i(e.props.children,t,n)}})}Object.defineProperty(t,"__esModule",{value:!0}),t.noop=r,t.getKeyFromChildrenIndex=o,t.loopMenuItem=a,t.loopMenuItemRecusively=i;var s=n("Jmof"),u=function(e){return e&&e.__esModule?e:{default:e}}(s)},eFps:function(e,t,n){function r(e){return!!a&&a in e}var o=n("+gg+"),a=function(){var e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},"eG8/":function(e,t){function n(e){return function(t){return null==t?void 0:t[e]}}e.exports=n},eKBv:function(e,t,n){function r(e,t){return s(e)&&u(t)?c(l(e),t):function(n){var r=a(n,e);return void 0===r&&r===t?i(n,e):o(t,r,f|p)}}var o=n("YDHx"),a=n("Q7hp"),i=n("RfZv"),s=n("hIPy"),u=n("tO4o"),c=n("sJvV"),l=n("Ubhr"),f=1,p=2;e.exports=r},eShC:function(e,t,n){function r(e,t){var n=[];return o(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}var o=n("v9aJ");e.exports=r},eVIm:function(e,t,n){function r(e){var t=this.__data__;if(o){var n=t[e];return n===a?void 0:n}return s.call(t,e)?t[e]:void 0}var o=n("dCZQ"),a="__lodash_hash_undefined__",i=Object.prototype,s=i.hasOwnProperty;e.exports=r},efQZ:function(e,t,n){function r(e,t,n,r,w,O,P,x){var S=t&v;if(!S&&"function"!=typeof e)throw new TypeError(h);var C=r?r.length:0;if(C||(t&=~(g|_),r=w=void 0),P=void 0===P?P:E(d(P),0),x=void 0===x?x:d(x),C-=w?w.length:0,t&_){var k=r,R=w;r=w=void 0}var j=S?void 0:c(e),T=[e,t,n,r,w,k,R,O,P,x];if(j&&l(T,j),e=T[0],t=T[1],n=T[2],r=T[3],w=T[4],x=T[9]=void 0===T[9]?S?0:e.length:E(T[9]-C,0),!x&&t&(y|b)&&(t&=~(y|b)),t&&t!=m)N=t==y||t==b?i(e,t,x):t!=g&&t!=(m|g)||w.length?s.apply(void 0,T):u(e,t,n,r);else var N=a(e,t,n);return p((j?o:f)(N,T),e,t)}var o=n("oM53"),a=n("MfeS"),i=n("NqMn"),s=n("b2mn"),u=n("FV3X"),c=n("wKps"),l=n("JH27"),f=n("7I8Q"),p=n("EagF"),d=n("5Zxu"),h="Expected a function",m=1,v=2,y=8,b=16,g=32,_=64,E=Math.max;e.exports=r},eo4W: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}function o(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}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function s(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)}var u,c,l,f,p=n("Jmof"),d=(n.n(p),n("KSGD")),h=n.n(d),m=n("211U"),v=n.n(m),y=n("HW6M"),b=n.n(y),g=n("oiih"),_=n("sA5H"),E=n.n(_),w=n("Hrs4"),O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),x=(u=v()(E.a,{allowMultiple:g.b}))((f=l=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.calcStepOffsetWidth=function(){n.domNode.children.length>0&&(n.calcTimeout&&clearTimeout(n.calcTimeout),n.calcTimeout=setTimeout(function(){var e=(n.domNode.lastChild.offsetWidth||0)+1;n.state.lastStepOffsetWidth===e||Math.abs(n.state.lastStepOffsetWidth-e)<=3||n.setState({lastStepOffsetWidth:e})}))},n.state={lastStepOffsetWidth:0},n}return s(t,e),P(t,[{key:"componentDidMount",value:function(){this.calcStepOffsetWidth()}},{key:"componentDidUpdate",value:function(){this.calcStepOffsetWidth()}},{key:"componentWillUnmount",value:function(){this.calcTimeout&&clearTimeout(this.calcTimeout)}},{key:"render",value:function(){var e,t=this,n=this.props,a=n.children,i=n.direction,s=n.status,u=n.size,c=n.current,l=n.isFinishIcon,f=o(n,["children","direction","status","size","current","isFinishIcon"]),d=a.length-1,h=this.state.lastStepOffsetWidth>0,m=b()((e={steps:!0},r(e,"steps__"+i,!0),r(e,"steps__"+u,u),e));return React.createElement("div",O({styleName:m,ref:function(e){return t.domNode=e}},f),p.Children.map(a,function(e,n){var r="vertical"!==i&&n!==d&&h?100/d+"%":null,o="vertical"===i||n===d?null:-Math.round(t.state.lastStepOffsetWidth/d+1),a={stepNumber:(n+1).toString(),itemWidth:r,adjustMarginRight:o,isFinishIcon:l};return e.props.status||(a.status=n===c?s:n<c?"finish":"wait"),Object(p.cloneElement)(e,a)},this))}}]),t}(p.PureComponent),l.displayName="Steps",l.Step=w.a,l.defaultProps={direction:"horizontal",current:0,status:"process",isFinishIcon:!1,size:""},l.propTypes={direction:h.a.oneOf(["horizontal","vertical"]),current:h.a.number,status:h.a.string,isFinishIcon:h.a.bool,size:h.a.string},c=f))||c;t.a=x},epNC:function(e,t){},ezqs:function(e,t,n){!function(e){!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1};e.defineMode("xml",function(r,o){function a(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();if("<"==r)return e.eat("!")?e.eat("[")?e.match("CDATA[")?n(u("atom","]]>")):null:e.match("--")?n(u("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(c(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=u("meta","?>"),"meta"):(S=e.eat("/")?"closeTag":"openTag",t.tokenize=i,"tag bracket");if("&"==r){var o;return o=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),o?"atom":"error"}return e.eatWhile(/[^&<]/),null}function i(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=a,S=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return S="equals",null;if("<"==n){t.tokenize=a,t.state=d,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=s(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=i;break}return"string"};return t.isInAttribute=!0,t}function u(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=a;break}n.next()}return e}}function c(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=c(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=a;break}return n.tokenize=c(e-1),n.tokenize(t,n)}}return"meta"}}function l(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(O.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function f(e){e.context&&(e.context=e.context.prev)}function p(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!O.contextGrabbers.hasOwnProperty(n)||!O.contextGrabbers[n].hasOwnProperty(t))return;f(e)}}function d(e,t,n){return"openTag"==e?(n.tagStart=t.column(),h):"closeTag"==e?m:d}function h(e,t,n){return"word"==e?(n.tagName=t.current(),C="tag",b):(C="error",h)}function m(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&O.implicitlyClosed.hasOwnProperty(n.context.tagName)&&f(n),n.context&&n.context.tagName==r||!1===O.matchClosing?(C="tag",v):(C="tag error",y)}return C="error",y}function v(e,t,n){return"endTag"!=e?(C="error",v):(f(n),d)}function y(e,t,n){return C="error",v(e,t,n)}function b(e,t,n){if("word"==e)return C="attribute",g;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||O.autoSelfClosers.hasOwnProperty(r)?p(n,r):(p(n,r),n.context=new l(n,r,o==n.indented)),d}return C="error",b}function g(e,t,n){return"equals"==e?_:(O.allowMissing||(C="error"),b(e,t,n))}function _(e,t,n){return"string"==e?E:"word"==e&&O.allowUnquoted?(C="string",b):(C="error",b(e,t,n))}function E(e,t,n){return"string"==e?E:b(e,t,n)}var w=r.indentUnit,O={},P=o.htmlMode?t:n;for(var x in P)O[x]=P[x];for(var x in o)O[x]=o[x];var S,C;return a.isInText=!0,{startState:function(e){var t={tokenize:a,state:d,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;S=null;var n=t.tokenize(e,t);return(n||S)&&"comment"!=n&&(C=null,t.state=t.state(S||n,e,t),C&&(n="error"==C?n+" error":C)),n},indent:function(t,n,r){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+w;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=i&&t.tokenize!=a)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==O.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+w*(O.multilineTagIndentFactor||1);if(O.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var s=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(s&&s[1])for(;o;){if(o.tagName==s[2]){o=o.prev;break}if(!O.implicitlyClosed.hasOwnProperty(o.tagName))break;o=o.prev}else if(s)for(;o;){var u=O.contextGrabbers[o.tagName];if(!u||!u.hasOwnProperty(s[2]))break;o=o.prev}for(;o&&o.prev&&!o.startOfLine;)o=o.prev;return o?o.indent+w:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:O.htmlMode?"html":"xml",helperType:O.htmlMode?"html":"xml",skipAttribute:function(e){e.state==_&&(e.state=b)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n("8U58"))}()},f931:function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},fMqj:function(e,t,n){function r(e){var t=o(e,function(e){return n.size===a&&n.clear(),e}),n=t.cache;return t}var o=n("zGZ6"),a=500;e.exports=r},fpbq:function(e,t,n){"use strict";function r(e){var t=this;this.nativeEvent=e,["type","currentTarget","target","touches","changedTouches"].forEach(function(n){t[n]=e[n]}),e.$pressSeq?e.$pressSeq+=1:e.$pressSeq=1,this.$pressSeq=e.$pressSeq}function o(e){var t=e.nativeEvent,n=e.$pressSeq;return!t.$stopPressSeq||t.$stopPressSeq>=n}t.b=o;var a=n("Dd8w"),i=n.n(a);r.prototype=i()({},r.prototype,{preventDefault:function(){this.nativeEvent.preventDefault()},stopPropagation:function(){var e=this.nativeEvent,t=this.$pressSeq;e.$stopPressSeq||(e.$stopPressSeq=t)}}),t.a=r},fwuy:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c,l)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M558.916 451.053c-3.591-5.984-8.618-10.892-14.961-14.722-6.224-3.83-14.004-5.745-23.22-5.745-11.61 0-21.903 3.351-30.64 10.054-8.738 6.702-16.159 15.2-22.263 25.613-6.104 10.294-10.653 21.783-13.884 34.232-3.112 12.447-4.788 24.537-4.788 36.026 0 5.745.598 11.85 1.795 18.433 1.197 6.463 3.59 12.448 7.301 18.074 3.59 5.505 8.379 10.054 14.243 13.644 5.865 3.591 13.645 5.386 23.34 5.386 13.166 0 24.297-3.231 33.513-9.695 9.216-6.463 16.757-14.602 22.621-24.537 5.865-9.814 10.054-20.586 12.807-32.076 2.633-11.49 3.95-22.142 3.95-31.718 0-7.66-.718-15.2-2.154-22.741-1.437-7.421-3.95-14.124-7.66-20.228z"}),l=i("path",{d:"M511.997 47.862c-256.323 0-464.113 207.79-464.113 464.113S255.674 976.09 511.997 976.09 976.11 768.299 976.11 511.975 768.32 47.862 511.997 47.862zm256.137 503.611c-8.02 22.142-18.672 40.575-32.077 55.536-13.405 14.962-28.606 26.092-45.841 33.513-17.236 7.421-35.308 11.132-54.22 11.132-19.39 0-34.95-4.549-46.68-13.645-11.61-9.096-17.474-20.707-17.474-34.59h-3.59c-7.302 11.49-18.434 22.5-33.514 32.794-15.08 10.293-33.513 15.56-55.416 15.56-33.035 0-58.53-10.773-76.482-32.436s-26.93-49.672-26.93-84.382c0-20.228 3.35-40.096 10.173-59.845 6.823-19.749 16.517-37.224 29.085-52.664 12.567-15.32 27.648-27.768 45.123-37.104 17.475-9.335 36.865-14.004 58.29-14.004 18.432 0 33.992 3.83 46.679 11.491 12.567 7.66 20.826 17.116 24.776 28.128h.719l5.864-28.845h64.873l-28.607 136.327c-.958 6.702-2.274 14.123-3.95 22.381-1.676 8.14-2.513 15.8-2.513 23.1 0 8.14 1.556 14.961 4.788 20.587 3.112 5.506 9.336 8.26 18.552 8.26 18.91 0 34.59-10.054 47.038-30.282 12.328-20.228 18.551-47.278 18.551-81.39 0-28.845-4.907-54.46-14.602-76.721-9.695-22.382-23.22-41.054-40.456-56.254-17.235-15.082-37.822-26.572-61.52-34.232-23.82-7.66-49.792-11.49-77.92-11.49-30.64 0-58.647 5.385-84.142 16.157-25.493 10.773-47.277 25.733-65.23 44.645-17.954 19.03-31.957 41.293-41.892 67.027-10.054 25.613-15.081 53.381-15.081 83.184 0 31.719 5.266 60.324 15.68 85.818 10.412 25.493 25.134 47.158 44.045 65.231 18.911 18.074 41.533 31.837 67.745 41.414 26.212 9.575 55.178 14.363 86.656 14.363 39.378 0 73.25-6.224 101.617-18.791 28.367-12.448 54.46-29.803 78.278-51.945l40.216 43.327c-28.606 30.282-62.598 52.424-101.977 66.309-39.377 14.004-80.91 20.946-124.597 20.946-41.772 0-79.834-6.583-114.065-19.869-34.232-13.166-63.556-31.598-87.733-55.178-24.298-23.579-43.089-51.826-56.494-84.74-13.405-32.915-19.988-68.822-19.988-107.722 0-38.421 7.301-73.969 21.903-106.644 14.602-32.675 34.47-61.042 59.725-85.1s54.699-42.849 88.571-56.613c33.633-13.525 69.78-20.348 108.08-20.348 33.035 0 65.113 4.788 96.112 14.363 31.12 9.575 58.647 24.058 82.705 43.208 24.058 19.27 43.208 43.209 57.571 72.054 14.364 28.845 21.545 62.718 21.545 101.618 0 28.844-3.95 54.338-11.97 76.361z"});t.a=r},fx22:function(e,t,n){e.exports=n("zNjz")(457)},gCWN:function(e,t){},gGqR:function(e,t,n){function r(e){if(!a(e))return!1;var t=o(e);return t==s||t==u||t==i||t==c}var o=n("aCM0"),a=n("yCNF"),i="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";e.exports=r},gHOb:function(e,t,n){var r=n("d4US"),o=n("POb3"),a=n("bO0Y"),i=n("5N57"),s=n("bIbi"),u=n("aCM0"),c=n("Ai/T"),l=c(r),f=c(o),p=c(a),d=c(i),h=c(s),m=u;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||a&&"[object Promise]"!=m(a.resolve())||i&&"[object Set]"!=m(new i)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},gPfh:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u,c,l,f=n("Jmof"),p=(n.n(f),n("KSGD")),d=n.n(p),h=n("211U"),m=n.n(h),v=n("HW6M"),y=n.n(v),b=n("oiih"),g=n("GFgZ"),_=n.n(g),E=n("gUOz"),w=n("lkey"),O=n("H2te"),P=n("Pp2j"),x=n("JCVn"),S=n("cKZq"),C=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k=(i=Object(E.a)(),s=m()(_.a,{allowMultiple:b.b}),i(u=s((l=c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleOk=function(e){var t=n.props.onOk;t&&t(e)},n.handleCancel=function(e){var t=n.props.onCancel;t&&t(e)},n.state={maskVisible:e.visible},n}return a(t,e),C(t,null,[{key:"info",value:function(e){Object(S.a)("info",e)}},{key:"success",value:function(e){Object(S.a)("success",e)}},{key:"error",value:function(e){Object(S.a)("error",e)}},{key:"warning",value:function(e){Object(S.a)("warning",e)}}]),C(t,[{key:"componentWillReceiveProps",value:function(e){!e.visible&&this.props.visible&&this.props.afterClose(),e.visible&&!this.props.visible&&this.setState({maskVisible:!0})}},{key:"renderHeader",value:function(){var e=this,t=this.props,n=t.title,r=t.closable;return n||r?React.createElement("div",{styleName:"modal__header"},n,r?React.createElement("a",{styleName:"modal__closable",href:"",onClick:function(t){t.preventDefault(),e.handleCancel(t)}},React.createElement(P.a,{name:"close",size:18})):null):null}},{key:"renderFooter",value:function(){var e=this.props.footer,t=[React.createElement(w.a,{key:"cancel",type:"secondary",onClick:this.handleCancel},"取 消"),React.createElement(w.a,{key:"confirm",type:"primary",onClick:this.handleOk},"确 定")];return void 0===e?React.createElement("div",{styleName:"modal__footer"},t):React.createElement("div",{styleName:"modal__footer"},e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.width,r=t.visible,o=t.children,a=this.state.maskVisible,i={style:{width:n},styleName:y()("modal",{"modal--visible":r})};return React.createElement(O.a,{visible:a},React.createElement(x.a,{in:r,motion:"flipX",style:{height:"100%"},onExited:function(){e.setState({maskVisible:!1})}},React.createElement("div",i,this.renderHeader(),React.createElement("div",{styleName:"modal__content"},o),this.renderFooter())))}}]),t}(f.Component),c.displayName="Modal",c.defaultProps={title:"",closable:!0,width:520,visible:!1,footer:void 0,onOk:function(){},onCancel:function(){},afterClose:function(){}},c.propTypes={title:d.a.oneOfType([d.a.string,d.a.element]),closable:d.a.bool,width:d.a.number,visible:d.a.bool,footer:d.a.oneOfType([d.a.string,d.a.element]),onOk:d.a.func,onCancel:d.a.func,afterClose:d.a.func},u=l))||u)||u);t.a=k},gUOz:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return function(t){var n=function(n){function i(){return r(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return a(i,n),p(i,[{key:"componentWillMount",value:function(){this.wrapNode=document.createElement("div"),e.appendChild(this.wrapNode)}},{key:"componentDidMount",value:function(){this.renderComponent()}},{key:"componentDidUpdate",value:function(){this.renderComponent()}},{key:"componentWillUnmount",value:function(){c.a.unmountComponentAtNode(this.wrapNode),this.wrapNode.parentNode.removeChild(this.wrapNode)}},{key:"renderComponent",value:function(){c.a.unstable_renderSubtreeIntoContainer(this,React.createElement(t,this.props),this.wrapNode)}},{key:"render",value:function(){return null}}]),i}(s.PureComponent);return f()(n,t),n}}t.a=i;var s=n("Jmof"),u=(n.n(s),n("wLXD")),c=n.n(u),l=n("hYij"),f=n.n(l),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},gWyc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.split(".")[0];return parseInt(t,10)<15?o.default.createElement("noscript"):null};var r=n("Jmof"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=t.default},gY9g:function(e,t,n){function r(e,t){return o(i,function(n){var r="_."+n[0];t&n[1]&&!a(e,r)&&e.push(r)}),e.sort()}var o=n("PqYH"),a=n("JUs9"),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=r},gbyG:function(e,t,n){e.exports=n("zNjz")(399)},ggOT:function(e,t,n){(function(e){var r=n("TQ3y"),o=n("gwcX"),a="object"==typeof t&&t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===a,u=s?r.Buffer:void 0,c=u?u.isBuffer:void 0,l=c||o;e.exports=l}).call(t,n("3IRH")(e))},"gt/O":function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},gwcX:function(e,t){function n(){return!1}e.exports=n},hFTO:function(e,t,n){"use strict";function r(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}var s,u,c=n("Jmof"),l=(n.n(c),n("KSGD")),f=n.n(l),p=n("HW6M"),d=n.n(p),h=n("vjf9"),m=n.n(h),v=n("Ni2A"),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=(u=s=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n}return i(t,e),b(t,[{key:"render",value:function(){var e=this.props,t=e.name,n=e.size,o=e.color,a=e.className,i=r(e,["name","size","color","className"]),s=y({style:{fontSize:n,fill:o},className:d()(a,m.a.Icon),"aria-hidden":!0},i),u=v.a[t];return React.createElement(u,s)}}]),t}(c.PureComponent),s.displayName="Icon",s.defaultProps={name:"",size:32,color:null},s.propTypes={name:f.a.string,size:f.a.number,color:f.a.string},u);t.a=g},hIPy:function(e,t,n){function r(e,t){if(o(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||s.test(e)||!i.test(e)||null!=t&&e in Object(t)}var o=n("NGEn"),a=n("6MiT"),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=r},hV0a:function(e,t,n){e.exports=n.p+"ffc2ad28b18d7d95c02ac1b65f9696bc.gif"},hYij:function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a=Object.getOwnPropertySymbols,i=(Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable),s=Object.getPrototypeOf,u=s&&s(Object),c=Object.getOwnPropertyNames;e.exports=function e(t,n,l){if("string"!=typeof n){if(u){var f=s(n);f&&f!==u&&e(t,f,l)}var p=c(n);a&&(p=p.concat(a(n)));for(var d=0;d<p.length;++d){var h=p[d];if(!(r[h]||o[h]||l&&l[h])&&(i.call(n,h)||"function"==typeof n[h]))try{t[h]=n[h]}catch(e){}}return t}return t}},hbAh:function(e,t,n){function r(e,t,n,r){var u=n.length,c=u,l=!r;if(null==e)return!c;for(e=Object(e);u--;){var f=n[u];if(l&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++u<c;){f=n[u];var p=f[0],d=e[p],h=f[1];if(l&&f[2]){if(void 0===d&&!(p in e))return!1}else{var m=new o;if(r)var v=r(d,h,p,e,t,m);if(!(void 0===v?a(h,d,i|s,r,m):v))return!1}}return!0}var o=n("bJWQ"),a=n("YDHx"),i=1,s=2;e.exports=r},hgbu:function(e,t,n){var r=n("a/OS")("wks"),o=n("GmwO"),a=n("YjQv").Symbol,i="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))}).store=r},hrPF:function(e,t){function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}e.exports=n},hygk:function(e,t,n){function r(e,t){return o(e,t)}var o=n("YDHx");e.exports=r},"hz+3":function(e,t){function n(e){return void 0===e}e.exports=n},i4ON:function(e,t,n){function r(e,t,n){var r=e[t];s.call(e,t)&&a(r,n)&&(void 0!==n||t in e)||o(e,t,n)}var o=n("nw3t"),a=n("22B7"),i=Object.prototype,s=i.hasOwnProperty;e.exports=r},i4Or:function(e,t,n){"use strict";var r=n("HW6M"),o=n.n(r),a=n("OEdS"),i=n.n(a),s=n("zpMW"),u=n("Atfj"),c=n.n(u),l=n("UMry"),f=(n.n(l),n("MGiy")),p=this,d=function(e){var t=e.html;return React.createElement(f.a,p.props,React.createElement("main",{className:c.a.main},React.createElement("article",{className:o()(c.a.DocPage,"markdown-block"),dangerouslySetInnerHTML:{__html:t}})))};t.a=Object(s.a)({componentDidMount:function(){console.log("componentDidMount"),i.a.highlightAll()}})(d)},i6nN:function(e,t){function n(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}e.exports=n},iANj:function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},iB3Z:function(e,t,n){var r=n("PJh5"),o=n("LlVb"),a=n("8qqi");r.createFromInputFallback=function(e){e._d=new Date(e._i)},e.exports={momentObj:a.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return o.isValidMoment(e)},"Moment"),momentString:a.createMomentChecker("string",function(e){return"string"==typeof e},function(e){return o.isValidMoment(r(e))},"Moment"),momentDurationObj:a.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return r.isDuration(e)},"Duration")}},iL3P:function(e,t,n){function r(e){return i(e)?o(s(e)):a(e)}var o=n("eG8/"),a=n("3Did"),i=n("hIPy"),s=n("Ubhr");e.exports=r},iL3w:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({width:"15",height:"16",viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("title",{},void 0,"UED_logo"),c=i("g",{id:"Page-1",fill:"none",fillRule:"evenodd"},void 0,i("g",{id:"\\u901A\\u680F\\u5185\\u9875",transform:"translate(-630 -967)",fillRule:"nonzero",fill:"#666"},void 0,i("g",{id:"\\u7248\\u6743\\u4FE1\\u606F",transform:"translate(0 924)"},void 0,i("g",{id:"EDC",transform:"translate(630 43)"},void 0,i("g",{id:"UED_logo"},void 0,i("path",{d:"M9.19 7.098l2.367 1.366a.757.757 0 0 0 1.136-.656v-1.93c0-.738-.394-1.42-1.033-1.788L9.452 2.816a.4.4 0 0 0-.599.345v3.352c0 .242.129.464.338.585zm2.315.178l-1.65-.952V4.206l1.306.753c.328.19.53.54.53.918V7.17a.124.124 0 0 1-.186.107z",id:"Shape"}),i("path",{d:"M1.005 10.851V4.478c0-.23.123-.445.323-.56l4.017-2.32c.31-.178.5-.509.5-.867V.463a.179.179 0 0 0-.268-.155L.828 3.05c-.51.295-.826.84-.826 1.43v6.573c0 .59.315 1.136.826 1.431l5.695 3.287a1.652 1.652 0 0 0 1.652 0l4.954-2.86a1.377 1.377 0 0 0 0-2.385L8.173 7.665a.647.647 0 0 1-.324-.56v-5.73a.372.372 0 0 1 .558-.322l4.96 2.865c.2.115.324.33.324.56v4.637c0 .358.191.69.501.869l.233.134a.179.179 0 0 0 .269-.155V4.481c0-.59-.315-1.136-.827-1.431L8.912.189A1.377 1.377 0 0 0 6.847 1.38v6.097a1 1 0 0 0 .5.867l5.286 3.052a.372.372 0 0 1 0 .644l-4.96 2.864a.647.647 0 0 1-.648 0l-5.52-3.186-.25-.145a.501.501 0 0 1-.25-.434v-.289z",id:"Shape"}),i("path",{d:"M2.006 5.64v3.153a.344.344 0 0 0 .516.298l2.823-1.63c.31-.179.5-.51.5-.867v-.268a.179.179 0 0 0-.268-.155L3.008 7.654v-.617L5.345 5.69c.31-.179.5-.51.5-.868v-.269a.179.179 0 0 0-.268-.155L3.008 5.88v-.615l2.337-1.348c.31-.18.5-.51.5-.868V2.78a.179.179 0 0 0-.268-.155L2.832 4.209c-.511.295-.826.84-.826 1.431zM6.527 9.978l-2.002 1.156a.675.675 0 0 0 0 1.169l2.328 1.342c.31.179.691.179 1 0l.233-.134a.179.179 0 0 0 0-.31l-2.382-1.375a.124.124 0 0 1 0-.215l1.587-.917a.124.124 0 0 1 .124 0l2.273 1.313c.31.179.692.18 1.002 0l.233-.134a.179.179 0 0 0 0-.31L8.18 9.978a1.652 1.652 0 0 0-1.653 0z",id:"Shape"}))))));t.a=r},iMIp:function(e,t,n){function r(e,t,n){if((e=c(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=o(t)))return e;var r=u(e),f=u(t),p=s(r,f),d=i(r,f)+1;return a(r,p,d).join("")}var o=n("o2mx"),a=n("Wh6c"),i=n("UNUE"),s=n("IttV"),u=n("0ghZ"),c=n("ZT2e"),l=/^\s+|\s+$/g;e.exports=r},iYj9:function(e,t){function n(e){return r.test(e)}var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=n},iaUq:function(e,t,n){"use strict";var r=n("gPfh");n.d(t,"a",function(){return r.a})},iiGN:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={isAppearSupported:function(e){return e.transitionName&&e.transitionAppear||e.animation.appear},isEnterSupported:function(e){return e.transitionName&&e.transitionEnter||e.animation.enter},isLeaveSupported:function(e){return e.transitionName&&e.transitionLeave||e.animation.leave},allowAppearCallback:function(e){return e.transitionAppear||e.animation.appear},allowEnterCallback:function(e){return e.transitionEnter||e.animation.enter},allowLeaveCallback:function(e){return e.transitionLeave||e.animation.leave}};t.default=r,e.exports=t.default},imBK:function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}var o=n("22B7");e.exports=r},itjH:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1025 1024",xmlns:"http://www.w3.org/2000/svg",width:"200.195",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M615.372 595.166a24.383 24.383 0 0 1-20.888-25.15c.853-20.632 6.565-32.312 19.183-47.402 5.797-6.99 7.332-9.378 8.525-13.385 1.45-4.689 2.046-9.804 2.643-22.592 1.194-23.19 2.814-34.017 9.72-46.976 6.052-11.424 12.958-16.625 26.002-23.53a41.946 41.946 0 0 0 5.968-3.41c3.666-5.116 7.673-17.648 9.975-30.522 4.945-27.793 5.115-48.595-1.023-61.64a276.738 276.738 0 0 0-6.31-11.68 66.755 66.755 0 0 1-7.416-25.917 309.476 309.476 0 0 1 1.705-50.3l1.023-11.936 2.046-22.508a264.973 264.973 0 0 0 .256-45.867 275.374 275.374 0 0 0-6.394-30.521 99.067 99.067 0 0 0-7.588-16.796 50.983 50.983 0 0 0-5.286-7.758l-25.065-4.433-12.532-6.394-15.517-15.346c-53.54-33.59-104.182-27.026-185.004 6.48-59.337 19.778-84.061 80.65-60.36 195.745a62.748 62.748 0 0 1-7.673 45.526l-3.24 6.224.426 4.945 1.45 20.802c.596 8.526 1.364 15.943 2.302 22.934 3.24 24.383 8.866 40.07 13.214 42.883-1.96-1.193 2.131 0 4.263.597l3.07.682a23.275 23.275 0 0 1 24.723 22.166l3.41 37.257c2.132 22.337 2.132 22.337 2.899 38.79.852 2.473 2.046 4.093 6.053 8.612 12.533 13.896 18.5 24.127 21.484 41.263a24.298 24.298 0 0 1-18.159 27.793l-8.355 2.046c-3.751 8.27-6.82 14.92-10.23 21.485-11.51 23.104-22.082 38.79-34.955 47.913l-7.588 3.58-14.75 4.178-24.297 6.565c-21.314 8.952-43.31 18.5-76.73 33.25l-5.541 2.387c-50.13 22.08-52.006 22.933-69.995 30.692-8.014 3.41-15.772 6.394-27.793 10.656l-5.797 2.047c-45.27 16.113-60.36 25.661-66.158 39.217 0 11.936-.17 18.245-1.194 62.407l-.511 21.57c-.341 19.352-.597 35.124-.682 48.169l21.825 3.836c32.994 5.627 69.739 11.254 109.382 16.54 113.134 15.09 226.268 24.127 331.643 24.127a2548.277 2548.277 0 0 0 331.643-24.127 2989.558 2989.558 0 0 0 131.207-20.462c0-12.959-.34-28.73-.682-48.084l-.511-21.313c-1.023-44.248-1.194-50.727.085-54.905-7.161-21.314-22.166-30.947-67.522-46.975l-5.797-2.047a434.801 434.801 0 0 1-27.708-10.656c-17.904-7.759-16.88-7.332-69.91-30.692l-6.138-2.643c-32.908-14.494-54.99-24.042-73.32-31.97l-21.057-5.883-6.139-1.706-14.749-4.177-7.502-3.58c-12.96-9.123-23.445-24.725-35.125-47.914a584.595 584.595 0 0 1-9.549-20.12l-13.385-1.961zm46.72-544.78l8.184 3.069a71.614 71.614 0 0 1 24.895 27.537c5.541 9.72 9.378 19.012 11.935 27.538 5.627 23.019 6.82 28.56 8.014 37.768 1.28 10.23 1.45 19.353 1.024 40.07 0 3.41-.427 8.184-1.109 16.113l-2.046 22.593-1.023 11.51c-1.705 20.972-2.387 35.465-1.705 41.177a19.523 19.523 0 0 0 2.046 8.44 235.304 235.304 0 0 1 7.332 13.727c11.595 24.894 11.424 53.71 4.86 90.797-3.41 19.267-9.379 37.512-17.99 49.874-5.967 8.525-11.594 12.532-22.848 18.415a32.567 32.567 0 0 0-5.968 3.41c-2.387 4.519-3.41 10.657-4.177 25.832-.853 17.734-1.705 25.406-4.774 35.381a75.28 75.28 0 0 1-16.028 28.135c6.564 2.046 11.935 6.82 14.92 13.044 6.308 14.152 10.145 22.422 14.237 30.606 6.82 13.47 12.959 23.275 17.307 27.879l9.634 2.728 6.223 1.705 23.872 6.82c21.484 9.123 43.736 18.756 76.985 33.335l5.968 2.728c52.943 23.275 52.006 22.849 69.739 30.522a393.026 393.026 0 0 0 30.436 11.51c58.911 20.887 83.806 36.744 98.725 85.084 0 11.339.086 17.903 1.109 61.64l.511 21.313c.682 30.948.853 52.944.512 69.91a24.383 24.383 0 0 1-19.609 23.36 3037.983 3037.983 0 0 1-153.715 24.553c-115.095 15.346-230.19 24.553-338.037 24.553-107.762 0-222.942-9.207-338.037-24.553a3037.642 3037.642 0 0 1-153.8-24.554A24.383 24.383 0 0 1 .085 950.51c-.256-16.88 0-38.876.597-69.824l.512-21.655c1.023-43.48 1.108-50.045 2.387-69.056 13.64-40.497 38.45-56.44 97.276-77.327l5.797-2.046c11.083-3.922 17.99-6.565 24.724-9.463 17.904-7.673 19.865-8.526 69.824-30.522l5.457-2.472c33.76-14.835 55.927-24.468 80.48-34.528l27.112-7.588 9.633-2.728c4.263-4.604 10.572-14.494 17.307-27.879 4.092-8.184 7.929-16.454 14.238-30.521a24.298 24.298 0 0 1 7.076-9.037 67.01 67.01 0 0 1-15.857-29.413l-4.093-44.76-1.79-19.267a45.27 45.27 0 0 1-11.339-4.774c-21.058-13.47-30.35-39.388-35.466-77.582a467.369 467.369 0 0 1-2.558-25.577l-1.45-21.143-.51-6.224a39.729 39.729 0 0 1 1.449-14.408c1.534-5.542.682-3.751 7.332-16.54 3.41-6.308 3.921-8.866 3.069-13.129-28.22-137.005 6.82-223.113 91.052-251.076 92.673-38.45 156.7-46.89 231.894.938l13.897 13.214 23.957 4.263z"});t.a=r},"iu+1":function(e,t,n){function r(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=o(e.prototype),r=e.apply(n,t);return a(r)?r:n}}var o=n("VORN"),a=n("yCNF");e.exports=r},"j+Wt":function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("path",{d:"M512 42.667a469.333 469.333 0 1 1 0 938.666 469.333 469.333 0 0 1 0-938.666zM512 0C229.717 0 0 229.803 0 512s229.717 512 512 512 512-229.717 512-512S794.283 0 512 0z"}),c=i("path",{d:"M608.939 256.512l-97.792 197.632-96.342-197.632h-44.458l120.32 219.99h-140.63V512h140.63v83.285h-140.63v31.062h140.63v141.226h40.96V626.347h142.506v-31.062H531.627V512h142.506v-35.584H531.627l120.746-219.99z"});t.a=r},j6zi:function(e,t){e.exports="\n### 字体\n\n1. 大号字体微软雅黑Regular 16px\n2. 默认字体微软雅黑Regular 14px\n3. 说明字体微软雅黑Regular 12px\n\n### 文字色\n\n```js\n#333333 用于标题,主要文字\n#666666 用于正文,说明文字\n#999999 用于辅助文字,次级文字\n```\n\n### 功能色\n\n```js\n#FE3824 错误色\n#FFC71B 警告色\n#3B98E0 链接色\n#6AC00B 操作成功提示\n#E6E6E6 按钮线框\n```\n\n### 默认中间定色标准\n\n1. HSB 中S值不得大于79,不然产生的颜色区别将相当的小,区分效果弱。\n2. HSB 中B值不得小于30,第一默认品牌色B值小于30本身就非常暗没有明确的颜色偏向。同时会使得颜色的区别将变小。\n3. HSB中S值要选用100的时候,请对比颜色之间的区别。已知在几个极限的H值区间下颜色的区别将非常之小,难以辨别。请在选取品牌色时尽可能的规避。(56~67;160~180;294~316)\n\n\n### HSB规律\n\n1. 中间色向亮明度变化S-17同时B+3。\n2. 中间色向暗明度变化S+20同时B-5。\n3. 如S和B本来就是100,那么+3或+20还是100。\n4. 因S与B值的最大值为100。故S与B的值在换算中任何超过100的值都直接视为100。\n5. 因S与B值的最小值为0。故S与B的值在换算中任何小于0的值都直接视为0。\n\n\n\n\n\n\n\n"},jrHM:function(e,t,n){e.exports=n("zNjz")(280)},jrzw:function(e,t){e.exports={PlayGround__Pane:"QGWqp4r","PlayGround__Pane--entering":"Yqd2n_i",slideInRight:"_1P21xAh","PlayGround__Pane--entered":"_1in3Cbf","PlayGround__Pane--exiting":"_2Ue3c2Z",slideOutRight:"_2pPBeRu","PlayGround__Pane--exited":"Hiii3Ub",PlayGround__Editor:"_1EpvPIA",PlayGround__Preview:"_2rVEtKv",PlayGround__ErrorMsg:"_1iFP__a",PlayGround__Trigger:"xyg4SA3"}},k44X:function(e,t,n){"use strict";var r=n("89jE"),o=n("LeV5"),a=n("p75H");r.a.MonthPicker=o.a,r.a.RangePicker=a.a,t.a=r.a},kBOG:function(e,t,n){e.exports=n("zNjz")(302)},kbwb:function(e,t,n){"use strict";function r(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}var s,u,c=n("Jmof"),l=(n.n(c),n("KSGD")),f=n.n(l),p=n("HW6M"),d=n.n(p),h=n("bzdx"),m=n.n(h),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),b=(u=s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),y(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.type,o=e.size,a=e.disabled,i=r(e,["children","type","size","disabled"]),s=v({},i,{className:d()(m.a["button--"+(a?"disabled":n)],m.a["button--"+o])});return React.createElement("button",s,t)}}]),t}(c.PureComponent),s.displayName="Button",s.defaultProps={type:"primary",size:"normal"},s.propTypes={type:f.a.oneOf(["primary","secondary","dashed","danger"]),size:f.a.oneOf(["normal","large","small"])},u);t.a=b},kiBT:function(e,t,n){e.exports={default:n("BzqH"),__esModule:!0}},kjbi:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("rnpr"),i=r(a),s=n("crWv"),u=r(s),c=n("xIPz"),l=n("Izpu"),f=n("tqq1"),p=r(f),d=n("zFGm"),h={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+(0,l.stripLeadingSlash)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:l.stripLeadingSlash,decodePath:l.addLeadingSlash},slash:{encodePath:l.addLeadingSlash,decodePath:l.addLeadingSlash}},m=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},v=function(e){return window.location.hash=e},y=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,u.default)(d.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,d.supportsGoWithoutReloadUsingHash)(),r=e.getUserConfirmation,a=void 0===r?d.getConfirmation:r,s=e.hashType,f=void 0===s?"slash":s,b=e.basename?(0,l.stripTrailingSlash)((0,l.addLeadingSlash)(e.basename)):"",g=h[f],_=g.encodePath,E=g.decodePath,w=function(){var e=E(m());return(0,i.default)(!b||(0,l.hasBasename)(e,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+b+'".'),b&&(e=(0,l.stripBasename)(e,b)),(0,c.createLocation)(e)},O=(0,p.default)(),P=function(e){o(V,e),V.length=t.length,O.notifyListeners(V.location,V.action)},x=!1,S=null,C=function(){var e=m(),t=_(e);if(e!==t)y(t);else{var n=w(),r=V.location;if(!x&&(0,c.locationsAreEqual)(r,n))return;if(S===(0,l.createPath)(n))return;S=null,k(n)}},k=function(e){x?(x=!1,P()):O.confirmTransitionTo(e,"POP",a,function(t){t?P({action:"POP",location:e}):R(e)})},R=function(e){var t=V.location,n=M.lastIndexOf((0,l.createPath)(t));-1===n&&(n=0);var r=M.lastIndexOf((0,l.createPath)(e));-1===r&&(r=0);var o=n-r;o&&(x=!0,L(o))},j=m(),T=_(j);j!==T&&y(T);var N=w(),M=[(0,l.createPath)(N)],D=function(e){return"#"+_(b+(0,l.createPath)(e))},A=function(e,t){(0,i.default)(void 0===t,"Hash history cannot push state; it is ignored");var n=(0,c.createLocation)(e,void 0,void 0,V.location);O.confirmTransitionTo(n,"PUSH",a,function(e){if(e){var t=(0,l.createPath)(n),r=_(b+t);if(m()!==r){S=t,v(r);var o=M.lastIndexOf((0,l.createPath)(V.location)),a=M.slice(0,-1===o?0:o+1);a.push(t),M=a,P({action:"PUSH",location:n})}else(0,i.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),P()}})},I=function(e,t){(0,i.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n=(0,c.createLocation)(e,void 0,void 0,V.location);O.confirmTransitionTo(n,"REPLACE",a,function(e){if(e){var t=(0,l.createPath)(n),r=_(b+t);m()!==r&&(S=t,y(r));var o=M.indexOf((0,l.createPath)(V.location));-1!==o&&(M[o]=t),P({action:"REPLACE",location:n})}})},L=function(e){(0,i.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},z=function(){return L(-1)},K=function(){return L(1)},U=0,G=function(e){U+=e,1===U?(0,d.addEventListener)(window,"hashchange",C):0===U&&(0,d.removeEventListener)(window,"hashchange",C)},B=!1,W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=O.setPrompt(e);return B||(G(1),B=!0),function(){return B&&(B=!1,G(-1)),t()}},F=function(e){var t=O.appendListener(e);return G(1),function(){G(-1),t()}},V={length:t.length,action:"POP",location:N,createHref:D,push:A,replace:I,go:L,goBack:z,goForward:K,block:W,listen:F};return V};t.default=b},ksFB:function(e,t,n){var r=n("wiaE"),o=n("+MZ2");e.exports=function(e){return r(o(e))}},ktak:function(e,t,n){function r(e){return i(e)?o(e):a(e)}var o=n("7e4z"),a=n("/GnY"),i=n("bGc4");e.exports=r},kxzG:function(e,t,n){function r(e){if("number"==typeof e)return e;if(a(e))return i;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=c.test(e);return n||l.test(e)?f(e.slice(2),n?2:8):u.test(e)?i:+e}var o=n("yCNF"),a=n("6MiT"),i=NaN,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,f=parseInt;e.exports=r},"l+8+":function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M511.597.292C138.131.292 0 326.984 0 510.21c0 183.225 132.796 513.278 500.78 513.278 0 0 91.43 1.608 91.43-80.906s-41.074-56.129-41.074-115.474c0-59.492 41.074-85.803 60.807-85.803 19.733 0 149.752 9.867 222.18-18.27 72.208-27.846 189.072-116.937 189.072-268.809 0-133.673-138.132-453.86-511.598-453.86zM199.742 511.89a88.945 88.945 0 0 1-88.872-89.091 88.945 88.945 0 0 1 177.67 0 89.091 89.091 0 0 1-88.798 89.164zM367.254 291.39a88.945 88.945 0 0 1-88.872-89.164c0-49.26 39.758-89.164 88.872-89.164 48.967 0 88.872 39.905 88.872 89.164 0 49.26-39.759 89.164-88.872 89.164zm284.886 0c-48.967 0-88.798-39.904-88.798-89.164s39.758-89.164 88.798-89.164c48.968 0 88.872 39.905 88.872 89.164 0 49.26-39.758 89.164-88.872 89.164zm169.12 220.572c-48.967 0-88.799-39.905-88.799-89.164 0-49.26 39.759-89.164 88.799-89.164 49.113 0 88.872 39.904 88.872 89.164a88.872 88.872 0 0 1-88.872 89.164z"});t.a=r},l0Na:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12"},e),u)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("path",{d:"M11.896 11.388L8.98 8.472a5.095 5.095 0 0 0 1.257-3.355A5.122 5.122 0 0 0 5.118 0 5.122 5.122 0 0 0 0 5.117a5.124 5.124 0 0 0 5.118 5.116 5.098 5.098 0 0 0 3.356-1.256l2.917 2.917a.35.35 0 0 0 .506 0 .36.36 0 0 0 0-.506zM.716 5.117a4.404 4.404 0 0 1 4.4-4.399c2.426 0 4.398 1.975 4.398 4.399s-1.972 4.4-4.399 4.4a4.406 4.406 0 0 1-4.4-4.4z"});t.a=r},l9Lx:function(e,t,n){var r=n("lb6C"),o=n("C0hh"),a=Object.prototype,i=a.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(e){return null==e?[]:(e=Object(e),r(s(e),function(t){return i.call(e,t)}))}:o;e.exports=u},lVK7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("o8IH");n.d(t,"Alert",function(){return r.a});var o=n("JCVn");n.d(t,"Animation",function(){return o.a});var a=n("WG9z");n.d(t,"Breadcrumb",function(){return a.a});var i=n("lkey");n.d(t,"Button",function(){return i.a});var s=n("qoUc");n.d(t,"Checkbox",function(){return s.a});var u=n("k44X");n.d(t,"DatePicker",function(){return u.a});var c=n("zznV");n.d(t,"Dropdown",function(){return c.a});var l=n("Pp2j");n.d(t,"Icon",function(){return l.a});var f=n("Cs5U");n.d(t,"Input",function(){return f.a});var p=n("UZ5U");n.d(t,"InputNumber",function(){return p.a});var d=n("Bn4U");n.d(t,"Menu",function(){return d.a});var h=n("WB2H");n.d(t,"Message",function(){return h.a});var m=n("iaUq");n.d(t,"Modal",function(){return m.a});var v=n("/6x9");n.d(t,"Pagination",function(){return v.a});var y=n("bl4z");n.d(t,"Progress",function(){return y.a});var b=n("TDF1");n.d(t,"Radio",function(){return b.b});var g=n("2tft");n.d(t,"Select",function(){return g.a});var _=n("MjHY");n.d(t,"Spin",function(){return _.a});var E=n("KJ7Q");n.d(t,"Steps",function(){return E.a});var w=n("Pcr+");n.d(t,"Tabs",function(){return w.a});var O=n("myQc");n.d(t,"Trigger",function(){return O.a});var P=n("5d4z");n.d(t,"Upload",function(){return P.a})},lb6C:function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}e.exports=n},"lj+/":function(e,t,n){"use strict";function r(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},lkey:function(e,t,n){"use strict";var r=n("kbwb");n.d(t,"a",function(){return r.a})},lx7a:function(e,t,n){"use strict";e.exports=n("sGP0")},lyhN:function(e,t,n){e.exports=n("zNjz")(301)},m0ws:function(e,t,n){"use strict";var r=n("x6wJ");t.a=r.a},m6Yj:function(e,t,n){e.exports=n("zNjz")(306)},m8F4:function(e,t,n){e.exports=n("zNjz")(404)},mJPh:function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o))return e;var a;return a=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(a)+")"})}},mJx5:function(e,t,n){e.exports=n("zNjz")(371)},mNwc:function(e,t,n){"use strict";function r(){return"rc-upload-"+o+"-"+ ++a}t.a=r;var o=+new Date,a=0},mTAn:function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},mTp7:function(e,t,n){e.exports=n("zNjz")(398)},mgnk:function(e,t,n){function r(e){return a(e)&&o(e)==i}var o=n("aCM0"),a=n("UnEC"),i="[object Arguments]";e.exports=r},mkCw:function(e,t,n){"use strict";function r(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}n.d(t,"a",function(){return O});var s,u,c,l,f=n("Jmof"),p=(n.n(f),n("KSGD")),d=n.n(p),h=n("211U"),m=n.n(h),v=n("oiih"),y=n("XFRO"),b=n("PewI"),g=n.n(b),_=n("Pp2j"),E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),O=(s=m()(g.a,{allowMultiple:v.b}))((l=c=function(e){function t(){var e,n,r,i;o(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.onSearch=function(){var e=r.props.onSearch;e&&e(r.input.input.value),r.input.input.focus()},i=n,a(r,i)}return i(t,e),w(t,[{key:"render",value:function(){var e=this,t=this.props,n=(t.onSearch,r(t,["onSearch"])),o=React.createElement(_.a,{size:12,name:"search",onClick:this.onSearch});return React.createElement(y.a,E({},n,{suffix:o,ref:function(t){return e.input=t}}))}}]),t}(f.PureComponent),c.displayName="Search",c.defaultProps={onSearch:function(){}},c.propTypes={onSearch:d.a.func},u=l))||u},mmAL:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return null===e||void 0===e}function a(){return p}function i(){return d}function s(e){var t=e.type,n="function"==typeof e.stopPropagation||"boolean"==typeof e.cancelBubble;c.default.call(this),this.nativeEvent=e;var r=i;"defaultPrevented"in e?r=e.defaultPrevented?a:i:"getPreventDefault"in e?r=e.getPreventDefault()?a:i:"returnValue"in e&&(r=e.returnValue===d?a:i),this.isDefaultPrevented=r;var o=[],s=void 0,u=void 0,l=h.concat();for(m.forEach(function(e){t.match(e.reg)&&(l=l.concat(e.props),e.fix&&o.push(e.fix))}),s=l.length;s;)u=l[--s],this[u]=e[u];for(!this.target&&n&&(this.target=e.srcElement||document),this.target&&3===this.target.nodeType&&(this.target=this.target.parentNode),s=o.length;s;)(0,o[--s])(this,e);this.timeStamp=e.timeStamp||Date.now()}Object.defineProperty(t,"__esModule",{value:!0});var u=n("xSJG"),c=r(u),l=n("BEQ0"),f=r(l),p=!0,d=!1,h=["altKey","bubbles","cancelable","ctrlKey","currentTarget","eventPhase","metaKey","shiftKey","target","timeStamp","view","type"],m=[{reg:/^key/,props:["char","charCode","key","keyCode","which"],fix:function(e,t){o(e.which)&&(e.which=o(t.charCode)?t.keyCode:t.charCode),void 0===e.metaKey&&(e.metaKey=e.ctrlKey)}},{reg:/^touch/,props:["touches","changedTouches","targetTouches"]},{reg:/^hashchange$/,props:["newURL","oldURL"]},{reg:/^gesturechange$/i,props:["rotation","scale"]},{reg:/^(mousewheel|DOMMouseScroll)$/,props:[],fix:function(e,t){var n=void 0,r=void 0,o=void 0,a=t.wheelDelta,i=t.axis,s=t.wheelDeltaY,u=t.wheelDeltaX,c=t.detail;a&&(o=a/120),c&&(o=0-(c%3==0?c/3:c)),void 0!==i&&(i===e.HORIZONTAL_AXIS?(r=0,n=0-o):i===e.VERTICAL_AXIS&&(n=0,r=o)),void 0!==s&&(r=s/120),void 0!==u&&(n=-1*u/120),n||r||(r=o),void 0!==n&&(e.deltaX=n),void 0!==r&&(e.deltaY=r),void 0!==o&&(e.delta=o)}},{reg:/^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,props:["buttons","clientX","clientY","button","offsetX","relatedTarget","which","fromElement","toElement","offsetY","pageX","pageY","screenX","screenY"],fix:function(e,t){var n=void 0,r=void 0,a=void 0,i=e.target,s=t.button;return i&&o(e.pageX)&&!o(t.clientX)&&(n=i.ownerDocument||document,r=n.documentElement,a=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||a&&a.scrollLeft||0)-(r&&r.clientLeft||a&&a.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||a&&a.scrollTop||0)-(r&&r.clientTop||a&&a.clientTop||0)),e.which||void 0===s||(e.which=1&s?1:2&s?3:4&s?2:0),!e.relatedTarget&&e.fromElement&&(e.relatedTarget=e.fromElement===i?e.toElement:e.fromElement),e}}],v=c.default.prototype;(0,f.default)(s.prototype,v,{constructor:s,preventDefault:function(){var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=d,v.preventDefault.call(this)},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=p,v.stopPropagation.call(this)}}),t.default=s,e.exports=t.default},mrcQ:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c,l)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M548.48 1010.496L50.752 512.768 549.248 14.272l45.248 45.248-453.248 453.248 452.608 452.48z"}),l=i("path",{d:"M912 1010.496L414.272 512.768 912.768 14.272l45.248 45.248-453.248 453.248 452.48 452.48z"});t.a=r},myDN:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function s(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):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0});var u=n("yCNF"),c=r(u),l=n("Jmof"),f=r(l),p=n("55x7"),d=r(p),h=n("XUwW"),m=r(h),v=n("gWyc"),y=r(v);t.default=function(e,t,n){var r=function(e){function r(){return a(this,r),i(this,e.apply(this,arguments))}return s(r,e),r.prototype.render=function(){var r=void 0,o=(0,c.default)(t);if(this.props.styles||o){var a=Object.assign({},this.props);this.props.styles?r=this.props.styles:o&&(r=t,delete this.props.styles),Object.defineProperty(a,"styles",{configurable:!0,enumerable:!1,value:r,writable:!1}),this.props=a}else r={};var i=e.prototype.render.call(this);return i?(0,m.default)(i,r,n):(0,y.default)(f.default.version)},r}(e);return(0,d.default)(r,e)},e.exports=t.default},myQc:function(e,t,n){"use strict";var r=n("RfUY");n.d(t,"a",function(){return r.a})},n12u:function(e,t,n){e.exports=n("zNjz")(277)},n9aI:function(e,t){e.exports={dropdown:"_2wHqwX6","dropdown--menu":"Hze9W1M","dropdown--menuItem":"_2pDhaod","dropdown--buttonWrap":"gLXAOiI"}},nPRO:function(e,t,n){function r(e){var t=o[e];return t?n.e(t[1]).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}var o={"./alert/README.md":["ag5k",0],"./animation/README.md":["PXi9",0],"./breadcrumb/README.md":["yL0p",0],"./button/README.md":["KOOh",0],"./checkbox/README.md":["Xrcb",0],"./datePicker/README.md":["SH3Z",0],"./dropdown/README.md":["5oN3",0],"./icon/README.md":["I045",0],"./input/README.md":["6wLY",0],"./inputNumber/README.md":["whSr",0],"./menu/README.md":["3lqj",0],"./message/README.md":["frv8",0],"./modal/README.md":["nYGS",0],"./pagination/README.md":["8fnD",0],"./progress/README.md":["y/Xd",0],"./radio/README.md":["vMWu",0],"./select/README.md":["tTp3",0],"./spin/README.md":["YWGe",0],"./steps/README.md":["n+PT",0],"./tabs/README.md":["Xnxm",0],"./trigger/README.md":["Vc5Z",0],"./upload/README.md":["wVe3",0]};r.keys=function(){return Object.keys(o)},r.id="nPRO",e.exports=r},nRs1:function(e,t,n){e.exports=n("zNjz")(278)},nT98:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i=n("Jmof"),s=n.n(i),u=n("KSGD"),c=n.n(u),l=n("kjbi"),f=n.n(l),p=n("CIox");((function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=a=o(this,e.call.apply(e,[this].concat(u))),a.history=f()(a.props),i=n,o(a,i)}return a(t,e),t.prototype.render=function(){return s.a.createElement(p.b,{history:this.history,children:this.props.children})},t})(s.a.Component)).propTypes={basename:c.a.string,getUserConfirmation:c.a.func,hashType:c.a.oneOf(["hashbang","noslash","slash"]),children:c.a.node}},nclR:function(e,t,n){var r=n("Wdy1");r(r.S,"Object",{setPrototypeOf:n("NMac").set})},"njf/":function(e,t){e.exports={upload:"_2UxV0kz","upload-select":"_1fQz-E_","upload-select-text":"_1maN_Cv","upload-list":"_14NhtWo","upload-list-item":"_3Njfikd",remove:"Boe8gJv","upload-list-item-info":"ACI5HD8",status:"_3qlP1Cd","upload-list-item-name":"_1cVZiOQ","upload-list-item-progress":"_1ik1y6A","upload-list-item-uploading":"_2H0ypTn","upload-list-item-done":"_7oltx-C","upload-list-item-error":"_1jGbUaw","upload-list-text":"_3Mi3sRo","upload-select-picture-card":"_3SaxPHm",hide:"_2Z7KgL4","upload-list-picture-card":"_2MKkXWB","upload-list-item-thumbnail":"_27WS6DP","uploading-text":"_3ki_XOw",imgshow:"_1tzLhEf",pictureShow:"xpw90-A","upload-list-item-actions":"_3X70GPS",eye:"_3gICJJz"}},nw3t:function(e,t,n){function r(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var o=n("p0bc");e.exports=r},o2mx:function(e,t,n){function r(e){if("string"==typeof e)return e;if(i(e))return a(e,r)+"";if(s(e))return l?l.call(e):"";var t=e+"";return"0"==t&&1/e==-u?"-0":t}var o=n("NkRn"),a=n("Hxdr"),i=n("NGEn"),s=n("6MiT"),u=1/0,c=o?o.prototype:void 0,l=c?c.toString:void 0;e.exports=r},o8IH:function(e,t,n){"use strict";var r=n("WkfU");n.d(t,"a",function(){return r.a})},"o9M+":function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M949.4 501.2c-24 192.4-193.8 372.1-425.4 372.1-89.3 0-192.8-35.5-208.9-89.8-13.7-46.5-19-112.7-85.1-97.6-82.9 18.9-155.7-8.9-157.9-83.2C64.5 337.6 277.3 180.9 512 154c228.9-26.2 467.6 104 437.4 347.2zM508.8 196.8C304.5 219.6 115 377.8 115 586.4c0 75.2 41.6 69.5 114.5 60.3 48.6-6.1 109.2 16 119.1 96.6 6.1 49.2 72.4 87.2 172.4 87.2 183.8 0 354.5-139.6 381.3-316.5 35.6-234.7-190.6-339.8-393.5-317.2zm194.8 225.5c-24.9 0-45.1-20.2-45.1-45.1 0-24.9 20.2-45.1 45.1-45.1 24.9 0 45.1 20.2 45.1 45.1.1 24.9-20.1 45.1-45.1 45.1zM557.1 738c-43.6 0-78.9-35.3-78.9-78.9 0-43.6 35.3-78.9 78.9-78.9 43.6 0 78.9 35.3 78.9 78.9 0 43.6-35.3 78.9-78.9 78.9zm-11.3-360.8c-24.9 0-45.1-20.2-45.1-45.1 0-24.9 20.2-45.1 45.1-45.1 24.9 0 45.1 20.2 45.1 45.1 0 24.9-20.2 45.1-45.1 45.1zm-157.9 45.1c-24.9 0-45.1-20.2-45.1-45.1 0-24.9 20.2-45.1 45.1-45.1 24.9 0 45.1 20.2 45.1 45.1 0 24.9-20.2 45.1-45.1 45.1zM275.2 535c-24.9 0-45.1-20.2-45.1-45.1 0-24.9 20.2-45.1 45.1-45.1s45.1 20.2 45.1 45.1c0 24.9-20.2 45.1-45.1 45.1z"});t.a=r},oM53:function(e,t,n){var r=n("wSKX"),o=n("5183"),a=o?function(e,t){return o.set(e,t),e}:r;e.exports=a},octw:function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=n},ofPt:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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}function u(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):o(e,t))}function c(e){var t=e.children;return d.default.isValidElement(t)&&!t.key?d.default.cloneElement(t,{key:E}):t}function l(){}Object.defineProperty(t,"__esModule",{value:!0});var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=n("Jmof"),d=r(p),h=n("KSGD"),m=r(h),v=n("6RSh"),y=n("ues/"),b=r(y),g=n("iiGN"),_=r(g),E="rc_animate_"+Date.now(),w=function(e){function t(n){i(this,t);var r=s(this,e.call(this,n));return O.call(r),r.currentlyAnimatingKeys={},r.keysToEnter=[],r.keysToLeave=[],r.state={children:(0,v.toArrayChildren)(c(r.props))},r}return u(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter(function(e){return!!e.props[t]})),n.forEach(function(t){t&&e.performAppear(t.key)})},t.prototype.componentWillReceiveProps=function(e){var t=this;this.nextProps=e;var n=(0,v.toArrayChildren)(c(e)),r=this.props;r.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(e){t.stop(e)});var o=r.showProp,i=this.currentlyAnimatingKeys,s=r.exclusive?(0,v.toArrayChildren)(c(r)):this.state.children,u=[];o?(s.forEach(function(e){var t=e&&(0,v.findChildInChildrenByKey)(n,e.key),r=void 0;(r=t&&t.props[o]||!e.props[o]?t:d.default.cloneElement(t||e,a({},o,!0)))&&u.push(r)}),n.forEach(function(e){e&&(0,v.findChildInChildrenByKey)(s,e.key)||u.push(e)})):u=(0,v.mergeChildren)(s,n),this.setState({children:u}),n.forEach(function(e){var n=e&&e.key;if(!e||!i[n]){var r=e&&(0,v.findChildInChildrenByKey)(s,n);if(o){var a=e.props[o];r?!(0,v.findShownChildInChildrenByKey)(s,n,o)&&a&&t.keysToEnter.push(n):a&&t.keysToEnter.push(n)}else r||t.keysToEnter.push(n)}}),s.forEach(function(e){var r=e&&e.key;if(!e||!i[r]){var a=e&&(0,v.findChildInChildrenByKey)(n,r);if(o){var s=e.props[o];a?!(0,v.findShownChildInChildrenByKey)(n,r,o)&&s&&t.keysToLeave.push(r):s&&t.keysToLeave.push(r)}else a||t.keysToLeave.push(r)}})},t.prototype.componentDidUpdate=function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)},t.prototype.isValidChildByKey=function(e,t){var n=this.props.showProp;return n?(0,v.findShownChildInChildrenByKey)(e,t,n):(0,v.findChildInChildrenByKey)(e,t)},t.prototype.stop=function(e){delete this.currentlyAnimatingKeys[e];var t=this.refs[e];t&&t.stop()},t.prototype.render=function(){var e=this.props;this.nextProps=e;var t=this.state.children,n=null;t&&(n=t.map(function(t){if(null===t||void 0===t)return t;if(!t.key)throw new Error("must set key for <rc-animate> children");return d.default.createElement(b.default,{key:t.key,ref:t.key,animation:e.animation,transitionName:e.transitionName,transitionEnter:e.transitionEnter,transitionAppear:e.transitionAppear,transitionLeave:e.transitionLeave},t)}));var r=e.component;if(r){var o=e;return"string"==typeof r&&(o=f({className:e.className,style:e.style},e.componentProps)),d.default.createElement(r,o,n)}return n[0]||null},t}(d.default.Component);w.propTypes={component:m.default.any,componentProps:m.default.object,animation:m.default.object,transitionName:m.default.oneOfType([m.default.string,m.default.object]),transitionEnter:m.default.bool,transitionAppear:m.default.bool,exclusive:m.default.bool,transitionLeave:m.default.bool,onEnd:m.default.func,onEnter:m.default.func,onLeave:m.default.func,onAppear:m.default.func,showProp:m.default.string},w.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:l,onEnter:l,onLeave:l,onAppear:l};var O=function(){var e=this;this.performEnter=function(t){e.refs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.refs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.refs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.refs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var o=(0,v.toArrayChildren)(c(r));e.isValidChildByKey(o,t)?"appear"===n?_.default.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):_.default.allowEnterCallback(r)&&(r.onEnter(t),r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.refs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.refs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r=(0,v.toArrayChildren)(c(n));if(e.isValidChildByKey(r,t))e.performEnter(t);else{var o=function(){_.default.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};(0,v.isSameChildren)(e.state.children,r,n.showProp)?o():e.setState({children:r},o)}}}};t.default=w,e.exports=t.default},oiih:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var r=!0,o=new Set(["tl","tr","tc","bl","br","bc","cl","cr"])},onEH:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i=n("Jmof"),s=n.n(i),u=n("KSGD"),c=n.n(u),l=n("HSnN"),f=n.n(l),p=n("twkG");((function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=a=o(this,e.call.apply(e,[this].concat(u))),a.history=f()(a.props),i=n,o(a,i)}return a(t,e),t.prototype.render=function(){return s.a.createElement(p.a,{history:this.history,children:this.props.children})},t})(s.a.Component)).propTypes={initialEntries:c.a.array,initialIndex:c.a.number,getUserConfirmation:c.a.func,keyLength:c.a.number,children:c.a.node}},onlG:function(e,t,n){function r(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}try{var o=n("Gsca")}catch(e){var o=n("Gsca")}var a=/\s+/,i=Object.prototype.toString;e.exports=function(e){return new r(e)},r.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~o(t,e)||t.push(e),this.el.className=t.join(" "),this},r.prototype.remove=function(e){if("[object RegExp]"==i.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=o(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},r.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},r.prototype.toggle=function(e,t){return this.list?(void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(void 0!==t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},r.prototype.array=function(){var e=this.el.getAttribute("class")||"",t=e.replace(/^\s+|\s+$/g,""),n=t.split(a);return""===n[0]&&n.shift(),n},r.prototype.has=r.prototype.contains=function(e){return this.list?this.list.contains(e):!!~o(this.array(),e)}},p0bc:function(e,t,n){var r=n("ICSD"),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},p5BY:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i=n("Jmof"),s=n.n(i),u=n("KSGD"),c=n.n(u),l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return a(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(s.a.Component);l.propTypes={when:c.a.bool,message:c.a.oneOfType([c.a.func,c.a.string]).isRequired},l.defaultProps={when:!0},l.contextTypes={router:c.a.shape({history:c.a.shape({block:c.a.func.isRequired}).isRequired}).isRequired}},p75H:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u,c,l=n("Jmof"),f=(n.n(l),n("211U")),p=n.n(f),d=n("PJh5"),h=n.n(d),m=n("BEQ0"),v=n.n(m),y=n("iB3Z"),b=n.n(y),g=n("KSGD"),_=n.n(g),E=n("oiih"),w=n("pS//"),O=n.n(w),P=n("Hbpm"),x=n("vdxk"),S=n("Cs5U"),C=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k=(i=p()(O.a,{allowMultiple:E.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.handleClickField=function(){n.setState({paneVisible:!0})},n.handlePickerVisibleChange=function(e){n.setState({paneVisible:e})},n.changeDateInternal=function(e){void 0!==n.props.value?n.props.onChange(e):(n.setState({rangeValue:e.slice(0)}),n.props.onChange(e))};var a=e.value||e.defaultValue||[h()(),h()()];return n.state={rangeValue:a,paneVisible:!1},n}return a(t,e),C(t,[{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.format,r=e.fieldSize,o=e.fieldWidth,a=this.state,i=a.rangeValue,s=a.paneVisible,u={rangeDate:i,type:"range",changeDate:this.changeDateInternal,paneVisible:s,onVisibleChange:this.handlePickerVisibleChange},c={},l={disabled:t,size:r,onClick:this.handleClickField};o&&v()(c,{width:o});var f=v()({},l,{key:"startDate",value:i[0].format(n),style:v()({},c,{borderTopRightRadius:0,borderBottomRightRadius:0,borderRight:"0 none"})}),p=v()({},l,{key:"endDate",value:i[1].format(n),style:v()({},c,{borderTopLeftRadius:0,borderBottomLeftRadius:0,borderLeft:"0 none"})}),d=[React.createElement(S.a,f),React.createElement(S.a,p)];return t?React.createElement("div",null,d):React.createElement(P.a,u,d)}}]),t}(l.PureComponent),u.displayName="RangePicker",u.defaultProps=v()({},x.a,{fieldWidth:100}),u.propTypes=v()({},x.b,{value:_.a.arrayOf(b.a.momentObj),defaultValue:_.a.arrayOf(b.a.momentObj)}),s=c))||s;t.a=k},pEGt:function(e,t,n){var r=n("DvwR"),o=n("B5V0");e.exports=Object.keys||function(e){return r(e,o)}},pFYg:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n("Zzip"),a=r(o),i=n("5QVw"),s=r(i),u="function"==typeof s.default&&"symbol"==typeof a.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(a.default)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":u(e)}},pJKf:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14"},e),u,c,l)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("path",{d:"M13 13H1V7.5H0V14h14V7.5h-1z"}),c=i("path",{d:"M6.5 1v9h1V1z"}),l=i("path",{d:"M7.004 1.67l3.163 2.822.666-.747L7.005.33 3.167 3.745l.665.747z"});t.a=r},pQJ6:function(e,t,n){function r(e,t){return function(n,r){if(null==n)return n;if(!o(n))return e(n,r);for(var a=n.length,i=t?a:-1,s=Object(n);(t?i--:++i<a)&&!1!==r(s[i],i,s););return n}}var o=n("bGc4");e.exports=r},"pS//":function(e,t){e.exports={datePicker:"_1VtG7Tm",datePicker__picker:"_217Ab1l",datePicker_PaneHead:"dktwrcK",datePicker__headControlBtn:"_3B8hXtV",datePicker__headJump:"_2iQiPWX",datePicker__headJumpBtn:"_2L0StoH",grid:"sdFN-uB",titleGrid:"P3D5cpz sdFN-uB",bodyGrid:"_3wVlW_K sdFN-uB",datePicker__datePane:"_1vTxJWA",datePicker__datePaneHead:"WXNwsuK dktwrcK",datePicker_weekTitle:"_317pkpI",datePicker__weekTitleGrid:"gkVLoZp P3D5cpz sdFN-uB",datePicker__weekRow:"_13BCOGA",datePicker__dayGrid:"-LL8IDY _3wVlW_K sdFN-uB","datePicker__dayGrid--range":"_3CFoqir","datePicker__dayGrid--active":"ZJlZATL","datePicker__dayGrid--disabled":"_24C4K3t","datePicker__dayGrid--curMonth":"_15xKysL","datePicker__dayGrid--lastMonth":"_2jU5NSX","datePicker__dayGrid--nextMonth":"kOzFgDQ",datePicker__monthPane:"_1oFHW95",datePicker__monthPaneHead:"_2HpgBMq dktwrcK",datePicker__monthBody:"_2bCDQ5L",datePicker__monthGrid:"_3ZvcDzC _3wVlW_K sdFN-uB","datePicker__monthGrid--active":"_2ap2U0a ZJlZATL",datePicker__yearPane:"_2EHXPQJ",datePicker__yearPaneHead:"_1jrn9B0 dktwrcK",datePicker__yearBody:"_1FZQqhV",datePicker__yearGrid:"_2PKGdIS _3wVlW_K sdFN-uB","datePicker__yearGrid--active":"_1CyKfmD ZJlZATL","datePicker__yearGrid--jump":"LLlseBd",datePicker__decadePane:"_2z1RIYt",datePicker__decadePaneHead:"_3xBV3EY dktwrcK","datePicker__decadePane--current":"_2gXcwbk",datePicker__decadeBody:"_3Hf0Ape",datePicker__decadeGrid:"JvjXwwi _3wVlW_K sdFN-uB","datePicker__decadeGrid--jump":"_2rjwFZK","datePicker__decadeGrid--active":"YqtKrRl ZJlZATL",rangePicker:"mhJTXha",rangePicker__picker:"_1UC2-sP",rangePicker__quickSelect:"Fc-Col-",rangePicker__action:"_3LU7GfZ","picker--start":"_1lDj7SY","picker--end":"_4LScnzl"}},pTUa:function(e,t,n){function r(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}var o=n("/I3N");e.exports=r},pWGb:function(e,t,n){e.exports=n("zNjz")(310)},pYrN:function(e,t){e.exports={"checkbox--wrapper":"_2GLX7p1","checkbox--wrapper__checked":"HtPNyzB","checkbox--wrapper__disabled":"xSwX73t",checkbox:"_1XpDkQN",checkbox__checked:"We2e_be","checkbox--inner":"_3Gl9_Qw",checkbox__disabled:"_1M9TcZm",none:"_14pGKgJ","checkbox--group":"_3Rx63VG",radio:"_21TqesI","radio--inner":"_3o1Rgpv",radio__checked:"_1szddfu",radio__disabled:"_1hhoRJ8","radio--wrapper":"mMWdf-U","radio--wrapper__checked":"_35FhbyT","radio--wrapper__disabled":"_1LDcYMA","radio-button--wrapper":"_1Ef7vg1","radio-button--wrapper__checked":"_3iHso93","radio-button--wrapper__disabled":"_1fdGpBG","radio-button":"lUPswOB","radio-button__checked":"_1ereod6","radio-button__disabled":"_3X8pavo","radio-button--inner":"_3hWcrmt"}},"pd+2":function(e,t,n){e.exports=n("zNjz")(234)},qTBW:function(e,t){e.exports="## v0.0.1 (2017-07-25)\n\nOptimization:\n- `DatePicker`: rangePicker's interaction\n- `Modal`: change style\n- `Message`: change style\n- `Steps`: change style\n- `Input`: change style\n\nNEW:\n- `Animation` component\n- add animation in `Modal`\n\n## v0.0.1-beta8 (2017-06-12)\n\nNEW:\n- `Spin` style\n- `Progress` style\n- `inputnumber` style\n\nFixed:\n - exclude dependence from build component.\n\n\n## v0.0.1-beta7 (2017-06-13)\n\nSwitch from `webpack` to `rollup` to build publish files\n- add `es` directory which support `rollup` or `webpack 2` system.\n\n## v0.0.1-beta6 (2017-06-12)\n\nNew Component\n- Alert\n- Breadcrumb\n- Button\n- DatePicker\n- Dropdown\n- Icon\n- Input\n- Menu\n- Message\n- Modal\n- Pagination\n- Progress\n- Steps\n- Trigger\n- Spin\n- Upload\n- Checkbox\n- Radio\n- InputNumber\n- Tabs"},qoUc:function(e,t,n){"use strict";var r=n("rEdb");n("FFnw"),t.a=r.a},qorW:function(e,t,n){function r(e){var t=o[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}var o={"./button":["o3DI",0],"./button.js":["o3DI",0],"./default":["CFF0"],"./default.js":["CFF0"]};r.keys=function(){return Object.keys(o)},r.id="qorW",e.exports=r},qrdl:function(e,t){function n(){}e.exports=n},"qs+f":function(e,t,n){e.exports=!n("zyKz")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},qtRy:function(e,t,n){e.exports=n("zNjz")(379)},qwQ3:function(e,t,n){e.exports=n("zNjz")(370)},qwTf:function(e,t,n){var r=n("TQ3y"),o=r.Uint8Array;e.exports=o},"r3+g":function(e,t,n){var r=n("GCs6"),o=n("FKWp"),a=n("pEGt");e.exports=n("qs+f")?Object.defineProperties:function(e,t){o(e);for(var n,i=a(t),s=i.length,u=0;s>u;)r.f(e,n=i[u++],t[n]);return e}},rEdb: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}function o(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}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function s(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)}var u,c,l,f,p,d=n("Jmof"),h=(n.n(d),n("KSGD")),m=n.n(h),v=n("211U"),y=n.n(v),b=n("Ngpj"),g=n.n(b),_=n("HW6M"),E=n.n(_),w=n("oiih"),O=n("pYrN"),P=n.n(O),x=n("FFnw"),S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k=(u=y()(P.a,{allowMultiple:w.b}))((f=l=function(e){function t(e){a(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));p.call(n);var r="checked"in e?e.checked:e.defaultChecked;return n.state={checked:r},n}return s(t,e),C(t,[{key:"componentWillReceiveProps",value:function(e){"checked"in e&&this.setState({checked:e.checked})}},{key:"shouldComponentUpdate",value:function(e,t,n){return!g()(this.props,e)||!g()(this.state,t)||!g()(this.context.checkboxGroup,n.checkboxGroup)}},{key:"render",value:function(){var e,t,n=this.context,a=this.props,i=this.state,s=a.children,u=a.name,c=a.type,l=a.readOnly,f=(a.onClick,a.onFocus,a.onBlur,a.prefixCls),p=(o(a,["children","name","type","readOnly","onClick","onFocus","onBlur","prefixCls"]),i.checked),d=a.disabled,h=n.checkboxGroup;h&&(this.handleChange=function(){return h.toggleOption({label:s,value:a.value})},p=-1!==h.value.indexOf(a.value),d="disabled"in a?a.disabled:h.disabled);var m=E()(f,(e={},r(e,f+"__checked",p),r(e,f+"__disabled",d),e)),v=E()((t={},r(t,f+"--wrapper",!0),r(t,f+"--wrapper__checked",p),r(t,f+"--wrapper__disabled",d),t)),y=E()(r({},f+"--inner",!0));return React.createElement("label",{styleName:v},React.createElement("span",{styleName:m},React.createElement("input",{name:u,type:c,readOnly:l,disabled:d,checked:!!p,onChange:this.handleChange}),React.createElement("span",{styleName:y})),void 0!==s?React.createElement("span",null,s):null)}}]),t}(d.PureComponent),l.Group=x.a,l.displayName="Checkbox",l.defaultProps={prefixCls:"checkbox",type:"checkbox",defaultChecked:!1,onChange:function(){},onFocus:function(){},onBlur:function(){},onClick:function(){}},l.propTypes={prefixCls:m.a.string,defaultChecked:m.a.oneOfType([m.a.number,m.a.bool]),onChange:m.a.func,name:m.a.string,type:m.a.string,disabled:m.a.bool,readOnly:m.a.bool},l.contextTypes={checkboxGroup:m.a.any},p=function(){var e=this;this.handleChange=function(t){var n=e.props;n.disabled||("checked"in n||e.setState({checked:t.target.checked}),n.onChange({target:S({},n,{checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()}}))}},c=f))||c;t.a=k},rGbO:function(e,t,n){e.exports=n("HIVZ")},"rI/1":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u,c,l,f,p,d,h=n("Jmof"),m=(n.n(h),n("KSGD")),v=(n.n(m),n("211U")),y=n.n(v),b=n("oiih"),g=n("n9aI"),_=n.n(g),E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),w=(i=y()(_.a,{allowMultiple:b.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n}return a(t,e),E(t,[{key:"render",value:function(){var e=this.props.children;return React.createElement("ul",{styleName:"dropdown--menu"},h.Children.map(e,function(e){return Object(h.cloneElement)(e)}))}}]),t}(h.PureComponent),u.displayName="Menu",u.defaultProps={},u.propTypes={},s=c))||s,O=(l=y()(_.a,{allowMultiple:b.b}))((d=p=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n}return a(t,e),E(t,[{key:"render",value:function(){var e=this.props.children;return React.createElement("li",{styleName:"dropdown--menuItem"},e)}}]),t}(h.PureComponent),p.displayName="Item",p.defaultProps={},p.propTypes={},f=d))||f;w.Item=O,t.a=w},"rKx+":function(e,t,n){n("4ajQ");var r=n("iANj").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},rU0D:function(e,t,n){function r(e){return function(t){t=s(t);var n=a(t)?i(t):void 0,r=n?n[0]:t.charAt(0),u=n?o(n,1).join(""):t.slice(1);return r[e]()+u}}var o=n("Wh6c"),a=n("iYj9"),i=n("0ghZ"),s=n("ZT2e");e.exports=r},raSw:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}n.d(t,"a",function(){return S});var i,s,u=n("Jmof"),c=(n.n(u),n("Pp2j")),l=n("1Oj9"),f=n.n(l),p=n("hV0a"),d=n.n(p),h=n("bu5x"),m=n.n(h),v=n("MyHc"),y=n.n(v),b=n("9xe4"),g=n.n(b),_=n("WRjI"),E=n.n(_),w=n("MGiy"),O=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),P={developer:[{avatar:"//github.com/macisi.png?size=64",name:"Theone"},{avatar:"//github.com/grootfish.png?size=64",name:"虞杨杰"},{avatar:f.a,name:"董建德"},{avatar:"//github.com/olivianate.png?size=64",name:"闫伟"},{avatar:"//github.com/ctocto.png?size=64",name:"何凡"},{avatar:"//github.com/lhf-nife.png?size=64",name:"刘慧芬"}],designer:[{avatar:d.a,name:"孙锴源"},{avatar:m.a,name:"王晨丽",profile:"https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzIyMDE0MDY1Mw==#wechat_redirect"},{avatar:y.a,name:"朱洪强"}]},x=new Array(16).fill(""),S=(s=i=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),O(t,[{key:"render",value:function(){return React.createElement(w.a,this.props,React.createElement("div",{styleName:"home__con"},t.renderCubes(),React.createElement("div",{styleName:"home__box"},React.createElement("p",{styleName:"explain"},"夸克(英语:quark,又译“层子”或“亏子”)是一种基本粒子,也是构成物质的基本单元。取名 QuarkUI,寓意我们将努力提供一套能像 quark 一样成为构成项目的基石的组件库。"),React.createElement("h1",null,"Advantage"),React.createElement("div",{styleName:"advantages"},React.createElement("div",{styleName:"advantage__block"},React.createElement(c.a,{name:"react",size:50}),React.createElement("p",null,"基于 React,背靠丰富生态社区")),React.createElement("div",{styleName:"advantage__block"},React.createElement(c.a,{name:"theme",size:50}),React.createElement("p",null,"主题定制,适应不同设计场景")),React.createElement("div",{styleName:"advantage__block"},React.createElement(c.a,{name:"customise",size:50}),React.createElement("p",null,"脱胎于业务,支撑企业级后台系统")))),React.createElement("div",{styleName:"home__box"},React.createElement("h1",null,"Case"),React.createElement("div",{styleName:"box__exam"},React.createElement("a",{href:"http://katest.ehuodi.com",target:"_blank"},React.createElement("img",{src:g.a,alt:""})),React.createElement("a",{href:"http://ecargotest.ehuodi.com",target:"_blank"},React.createElement("img",{src:E.a,alt:""})))),React.createElement("div",{styleName:"home__box"},React.createElement("h1",null,"Contributor"),React.createElement("h2",null,"FED"),React.createElement("div",{styleName:"bog__wrap"},t.renderContributor(P.developer)),React.createElement("h2",null,"UX"),React.createElement("div",null,t.renderContributor(P.designer)))))}}]),t}(u.PureComponent),i.renderContributor=function(e){return e.map(function(e){return React.createElement("div",{key:e.name,styleName:"box__img"},React.createElement("img",{src:e.avatar,alt:e.name}),React.createElement("p",null,e.name))})},i.renderCubes=function(){return React.createElement("div",{styleName:"home__stage"},React.createElement("div",{styleName:"stage__grid"},x.map(function(e,t){return React.createElement("div",{styleName:"cube",key:t},React.createElement("div",{styleName:"cube__squisher"},React.createElement("div",{styleName:"cube__face"}),React.createElement("div",{styleName:"cube__face"}),React.createElement("div",{styleName:"cube__face"})))})))},s)},rel7:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M788.032 659.454c-8.534-8.536-22.362-8.536-30.9 0-8.513 8.535-8.513 22.385.023 30.9 66.047 66.066 102.412 153.857 102.412 247.238 0 12.059 9.774 21.853 21.853 21.853 12.08 0 21.853-9.794 21.853-21.853 0-105.053-40.93-203.834-115.24-278.138zM509.925 63.864c-144.604 0-262.232 117.646-262.232 262.243 0 103.135 59.85 192.532 146.639 235.33-60.74 18.576-116.378 51.855-162.538 98.039-74.308 74.283-115.218 173.064-115.218 278.117 0 12.059 9.774 21.853 21.853 21.853 12.078 0 21.852-9.794 21.852-21.853 0-93.382 36.365-181.173 102.412-247.239C326.35 626.683 410.268 590.63 499.92 588.12c3.32.126 6.653.21 10.004.21 144.602 0 262.231-117.624 262.231-262.222S654.527 63.865 509.925 63.865zm3.528 480.716a21.84 21.84 0 0 0-3.57-.317c-3.319 0-6.63.043-9.934.125-115.875-5.236-208.55-101.142-208.55-218.282 0-120.504 98.038-218.517 218.527-218.517 120.49 0 218.526 98.013 218.526 218.517 0 119.305-96.131 216.58-215 218.474z"});t.a=r},rjjF:function(e,t,n){var r=n("bSeU"),o=n("YTz9"),a=n("ksFB"),i=n("9MbE"),s=n("x//u"),u=n("LocR"),c=Object.getOwnPropertyDescriptor;t.f=n("qs+f")?c:function(e,t){if(e=a(e),t=i(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},rnpr:function(e,t,n){"use strict";var r=function(){};e.exports=r},rpnb:function(e,t,n){var r=n("tHks"),o=r();e.exports=o},rw40:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("Gr1r"),a=r(o),i=n("SQfk"),s=r(i),u=n("lj+/"),c=r(u),l=n("wLXD"),f=r(l);t.default={componentDidMount:function(){this.componentDidUpdate()},componentDidUpdate:function(){"inline"!==this.props.mode&&(this.props.open?this.bindRootCloseHandlers():this.unbindRootCloseHandlers())},handleDocumentKeyUp:function(e){e.keyCode===a.default.ESC&&this.props.onItemHover({key:this.props.eventKey,item:this,hover:!1})},handleDocumentClick:function(e){(0,c.default)(f.default.findDOMNode(this),e.target)||(this.props.onItemHover({hover:!1,item:this,key:this.props.eventKey}),this.triggerOpenChange(!1))},bindRootCloseHandlers:function(){this._onDocumentClickListener||(this._onDocumentClickListener=(0,s.default)(document,"click",this.handleDocumentClick),this._onDocumentKeyupListener=(0,s.default)(document,"keyup",this.handleDocumentKeyUp))},unbindRootCloseHandlers:function(){this._onDocumentClickListener&&(this._onDocumentClickListener.remove(),this._onDocumentClickListener=null),this._onDocumentKeyupListener&&(this._onDocumentKeyupListener.remove(),this._onDocumentKeyupListener=null)},componentWillUnmount:function(){this.unbindRootCloseHandlers()}},e.exports=t.default},s16o:function(e,t){e.exports={"radio--group":"_2AmYsBu"}},s4hp:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i=n("WuRR"),s=n.n(i),u=n("Jmof"),c=n.n(u),l=n("KSGD"),f=n.n(l),p=n("Een0"),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=a=o(this,e.call.apply(e,[this].concat(u))),a.state={match:a.computeMatch(a.props,a.context.router)},i=n,o(a,i)}return a(t,e),t.prototype.getChildContext=function(){return{router:d({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,r=e.location,o=e.path,a=e.strict,i=e.exact,s=t.route;if(n)return n;var u=(r||s.location).pathname;return o?Object(p.a)(u,{path:o,strict:a,exact:i}):s.match},t.prototype.componentWillMount=function(){var e=this.props,t=e.component,n=e.render,r=e.children;s()(!(t&&n),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),s()(!(t&&r),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),s()(!(n&&r),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){s()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),s()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,a=this.context.router,i=a.history,s=a.route,u=a.staticContext,l=this.props.location||s.location,f={match:e,location:l,history:i,staticContext:u};return r?e?c.a.createElement(r,f):null:o?e?o(f):null:n?"function"==typeof n?n(f):!Array.isArray(n)||n.length?c.a.Children.only(n):null:null},t}(c.a.Component);h.propTypes={computedMatch:f.a.object,path:f.a.string,exact:f.a.bool,strict:f.a.bool,component:f.a.func,render:f.a.func,children:f.a.oneOfType([f.a.func,f.a.node]),location:f.a.object},h.contextTypes={router:f.a.shape({history:f.a.object.isRequired,route:f.a.object.isRequired,staticContext:f.a.object})},h.childContextTypes={router:f.a.object.isRequired},t.a=h},sA5H:function(e,t){e.exports={steps:"_1hnABRb","steps--item":"O2T4biQ","steps--tail":"_2vbHRHb",steps__horizontal:"WV34rPt","steps--head":"_2UU-kd6","steps--headinner":"_2JVCbOY","steps--icon":"_2jVCR-o","steps--title":"_35Vh_F5","steps--description":"_1DxItRx","steps--main":"_11Rome9","steps--item__wait":"XQtgjbi","steps--item__process":"YRG4bmD","steps--item__finish":"_1VnV_nf","steps--item__error":"_2V3dCtV","steps--step":"WD5QBi2",steps__small:"_2kmh_Rc",steps__vertical:"_1Z9B0MQ"}},sBat:function(e,t,n){function r(e){return e?(e=o(e))===a||e===-a?(e<0?-1:1)*i:e===e?e:0:0===e?e:0}var o=n("kxzG"),a=1/0,i=1.7976931348623157e308;e.exports=r},sGP0:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n("Jmof"),u=s.Component,c=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),i(t,[{key:"render",value:function(){return this.props.component?s.createElement(this.props.component,this.props.props):s.Children.only(this.props.children)}}]),t}(u);e.exports=c},sJvV:function(e,t){function n(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}e.exports=n},sOR5:function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},sblh:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}function i(e){return e?e.replace(/\r\n|\r/g,"\n"):e}n.d(t,"a",function(){return w});var s,u,c=n("Jmof"),l=(n.n(c),n("KSGD")),f=n.n(l),p=n("HW6M"),d=n.n(p),h=n("hygk"),m=n.n(h),v=n("8U58"),y=n.n(v),b=n("1LGv"),g=n.n(b),_="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(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),w=(u=s=function(e){function t(){var e,n,a,i;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),a.state={isFocused:!1},a.cursorActivity=function(e){a.props.onCursorActivity&&a.props.onCursorActivity(e)},a.codemirrorValueChanged=function(e,t){a.props.onChange&&"setValue"!==t.origin&&a.props.onChange(e.getValue(),t)},i=n,o(a,i)}return a(t,e),E(t,[{key:"componentDidMount",value:function(){var e=this.getCodeMirrorInstance();this.codeMirror=e.fromTextArea(this.textareaNode,this.props.options),this.codeMirror.on("change",this.codemirrorValueChanged),this.codeMirror.on("cursorActivity",this.cursorActivity),this.codeMirror.on("focus",this.focusChanged.bind(this,!0)),this.codeMirror.on("blur",this.focusChanged.bind(this,!1)),this.codeMirror.on("scroll",this.scrollChanged),this.codeMirror.setValue(this.props.defaultValue||this.props.value||"")}},{key:"componentWillReceiveProps",value:function(e){if(this.codeMirror&&void 0!==e.value&&e.value!==this.props.value&&i(this.codeMirror.getValue())!==i(e.value))if(this.props.preserveScrollPosition){var t=this.codeMirror.getScrollInfo();this.codeMirror.setValue(e.value),this.codeMirror.scrollTo(t.left,t.top)}else this.codeMirror.setValue(e.value);if("object"===_(e.options))for(var n in e.options)e.options.hasOwnProperty(n)&&this.setOptionIfChanged(n,e.options[n])}},{key:"componentWillUnmount",value:function(){this.codeMirror&&this.codeMirror.toTextArea()}},{key:"getCodeMirrorInstance",value:function(){return this.props.codeMirrorInstance||y.a}},{key:"setOptionIfChanged",value:function(e,t){var n=this.codeMirror.getOption(e);m()(n,t)||this.codeMirror.setOption(e,t)}},{key:"getCodeMirror",value:function(){return this.codeMirror}},{key:"focus",value:function(){this.codeMirror&&this.codeMirror.focus()}},{key:"focusChanged",value:function(e){this.setState({isFocused:e}),this.props.onFocusChange&&this.props.onFocusChange(e)}},{key:"scrollChanged",value:function(e){this.props.onScroll&&this.props.onScroll(e.getScrollInfo())}},{key:"render",value:function(){var e=this,t=d()(g.a.ReactCodeMirror,this.state.isFocused?g.a["ReactCodeMirror--focused"]:null,this.props.className);return React.createElement("div",{className:t},React.createElement("textarea",{ref:function(t){return e.textareaNode=t},name:this.props.name||this.props.path,defaultValue:this.props.value,autoComplete:"off",autoFocus:this.props.autoFocus}))}}]),t}(c.Component),s.defaultProps={preserveScrollPosition:!1},s.propTypes={autoFocus:f.a.bool,className:f.a.any,codeMirrorInstance:f.a.func,defaultValue:f.a.string,name:f.a.string,onChange:f.a.func,onCursorActivity:f.a.func,onFocusChange:f.a.func,onScroll:f.a.func,options:f.a.object,path:f.a.string,value:f.a.string,preserveScrollPosition:f.a.bool},u)},sfwK:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}function i(e){var t=null,n=!1;return d.a.Children.forEach(e,function(e){e&&e.props&&e.props.checked&&(t=e.props.value,n=!0)}),n?{value:t}:void 0}var s,u,c,l,f,p=n("Jmof"),d=n.n(p),h=n("KSGD"),m=n.n(h),v=n("211U"),y=n.n(v),b=n("Ngpj"),g=n.n(b),_=n("oiih"),E=n("s16o"),w=n.n(E),O=n("TDF1"),P=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),x=(s=y()(w.a,{allowMultiple:_.b}))((l=c=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));f.call(n);var a=void 0;if("value"in e)a=e.value;else if("defaultValue"in e)a=e.defaultValue;else{var s=i(e.children);a=s&&s.value}return n.state={value:a},n}return a(t,e),P(t,[{key:"getChildContext",value:function(){return{radioGroup:{onChange:this.onRadioChange,value:this.state.value,disabled:this.props.disabled}}}},{key:"componentWillReceiveProps",value:function(e){if("value"in e)this.setState({value:e.value});else{var t=i(e.children);t&&this.setState({value:t.value})}}},{key:"shouldComponentUpdate",value:function(e,t){return!g()(this.props,e)||!g()(this.state,t)}},{key:"render",value:function(){var e=this,t=this.props,n=this.state,r=this.getOptions,o=t.options,a=t.children;return o&&o.length>0&&(a=r().map(function(r){return d.a.createElement(O.b,{key:r.value,disabled:r.disabled||t.disabled,value:r.value,onChange:e.onRadioChange,checked:n.value===r.value},r.label)})),d.a.createElement("div",{styleName:"radio--group"},a)}}]),t}(p.PureComponent),c.displayName="RadioGroup",c.defaultProps={disabled:!1},c.propTypes={disabled:m.a.bool,defaultValue:m.a.any,value:m.a.any,children:m.a.any,onChange:m.a.func,options:m.a.array},c.childContextTypes={radioGroup:m.a.any},f=function(){var e=this;this.onRadioChange=function(t){var n=e.state.value,r=t.target.value;"value"in e.props||e.setState({value:r});var o=e.props.onChange;o&&r!==n&&o(t)},this.getOptions=function(){return e.props.options.map(function(e){return"string"==typeof e?{label:e,value:e}:e})}},u=l))||u;t.a=x},sgb3:function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(!a.call(t,n[i])||!r(e[n[i]],t[n[i]]))return!1;return!0}var a=Object.prototype.hasOwnProperty;e.exports=o},"smQ+":function(e,t,n){e.exports=n("zNjz")(403)},t1d2:function(e,t,n){"use strict";function r(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}var s=n("crWv"),u=n.n(s),c=n("Jmof"),l=n.n(c),f=n("KSGD"),p=n.n(f),d=n("Izpu"),h=(n.n(d),n("twkG")),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,a=e.hash,i=void 0===a?"":a;return{pathname:n,search:"?"===o?"":o,hash:"#"===i?"":i}},y=function(e,t){return e?m({},t,{pathname:Object(d.addLeadingSlash)(e)+t.pathname}):t},b=function(e,t){if(!e)return t;var n=Object(d.addLeadingSlash)(e);return 0!==t.pathname.indexOf(n)?t:m({},t,{pathname:t.pathname.substr(n.length)})},g=function(e){return"string"==typeof e?Object(d.parsePath)(e):v(e)},_=function(e){return"string"==typeof e?e:Object(d.createPath)(e)},E=function(e){return function(){u()(!1,"You cannot %s with <StaticRouter>",e)}},w=function(){},O=function(e){function t(){var n,r,i;o(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=r=a(this,e.call.apply(e,[this].concat(u))),r.createHref=function(e){return Object(d.addLeadingSlash)(r.props.basename+_(e))},r.handlePush=function(e){var t=r.props,n=t.basename,o=t.context;o.action="PUSH",o.location=y(n,g(e)),o.url=_(o.location)},r.handleReplace=function(e){var t=r.props,n=t.basename,o=t.context;o.action="REPLACE",o.location=y(n,g(e)),o.url=_(o.location)},r.handleListen=function(){return w},r.handleBlock=function(){return w},i=n,a(r,i)}return i(t,e),t.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),o=r(e,["basename","context","location"]),a={createHref:this.createHref,action:"POP",location:b(t,g(n)),push:this.handlePush,replace:this.handleReplace,go:E("go"),goBack:E("goBack"),goForward:E("goForward"),listen:this.handleListen,block:this.handleBlock};return l.a.createElement(h.a,m({},o,{history:a}))},t}(l.a.Component);O.propTypes={basename:p.a.string,context:p.a.object.isRequired,location:p.a.oneOfType([p.a.string,p.a.object])},O.defaultProps={basename:"",location:"/"},O.childContextTypes={router:p.a.object.isRequired}},tHks:function(e,t){function n(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var u=i[e?s:++o];if(!1===n(a[u],u,a))break}return t}}e.exports=n},tHlN:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c,l)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M512.17 264.192a241.664 241.664 0 1 0 0 483.413 241.664 241.664 0 0 0 0-483.413zm0 436.31a194.56 194.56 0 1 1 0-389.12 194.56 194.56 0 0 1 0 389.12z"}),l=i("path",{d:"M976.384 574.464a259.328 259.328 0 0 0-7.765-4.096c-3.755-1.877-7.254-3.67-10.496-5.632a66.304 66.304 0 0 1-32.427-48.213 67.157 67.157 0 0 1 19.883-55.211c10.154-10.24 22.784-16.896 36.181-23.893l2.816-1.366c27.819-14.506 41.643-37.546 38.997-65.024-4.266-43.946-16.128-79.872-36.096-109.824-18.688-27.989-38.314-40.533-63.488-40.533-10.24 0-21.504 2.048-34.56 6.315a221.867 221.867 0 0 1-30.464 8.021 62.379 62.379 0 0 1-10.496.853c-29.184 0-56.32-20.48-63.146-47.616-3.926-15.872-2.048-32.938 5.632-52.309 11.946-29.867 5.12-57.173-19.968-81.493-12.8-12.459-30.55-27.819-53.248-35.84-29.014-10.496-52.48-17.408-72.107-17.408-31.573 0-53.163 17.066-76.715 61.013a61.952 61.952 0 0 1-55.808 33.963 72.96 72.96 0 0 1-60.16-33.28c-3.157-4.694-5.802-9.814-8.533-15.104-2.219-4.267-4.523-8.79-7.168-13.142C423.851 12.46 404.309.768 380.928.768a75.776 75.776 0 0 0-9.045.597c-24.15 2.902-52.139 7.51-77.398 19.798-70.997 34.304-77.909 64.426-66.56 118.869 9.984 47.53-7.424 81.323-46.506 90.368a76.544 76.544 0 0 1-17.408 1.877c-11.691 0-24.235-2.218-40.534-7.338a84.31 84.31 0 0 0-25.002-4.096c-21.334 0-39.936 9.642-55.296 28.672C26.624 270.08 15.019 294.4 6.57 326.144-9.387 386.56 4.267 418.219 58.88 447.061c21.504 11.35 35.84 27.648 40.107 45.739a57.173 57.173 0 0 1-10.667 46.933c-10.24 14.507-24.747 25.771-44.203 34.134-27.306 11.946-42.154 33.45-42.752 62.378-1.194 52.907 16.128 98.816 51.371 136.534a65.024 65.024 0 0 0 49.408 20.992c4.437 0 9.13-.342 13.91-1.11 5.375-.853 10.666-1.962 15.786-3.157 9.045-1.963 17.493-3.755 25.6-3.755a46.08 46.08 0 0 1 6.144.342l1.195.17 1.109-.17a62.123 62.123 0 0 1 8.107-.512c17.322 0 32.682 7.936 42.154 21.845 9.814 14.507 11.776 33.28 5.035 50.347a114.944 114.944 0 0 0-3.755 11.69c-.853 3.072-1.621 5.974-2.56 8.534-11.434 31.829-4.778 59.221 19.627 81.749 24.747 22.613 55.723 38.4 94.72 48.299 19.03 4.864 32.768 6.997 44.544 6.997 35.072 0 53.76-20.31 75.69-57.856 15.873-26.965 36.011-40.107 61.611-40.107H512c25.685.342 44.8 12.971 60.16 39.68 1.707 2.987 3.328 5.974 4.95 9.302 2.303 4.437 4.693 9.13 7.594 13.653 14.677 23.296 35.157 35.157 60.757 35.157 4.267 0 8.79-.341 13.312-1.024a238.677 238.677 0 0 0 97.11-36.096c38.57-25.088 50.517-59.989 34.389-100.949-9.813-24.917-8.277-50.603 4.01-68.608 10.497-15.36 27.649-23.552 49.665-23.552 4.864 0 10.069.427 15.36 1.28l4.608.597c6.144.939 12.032 1.792 17.834 3.072 11.435 2.56 21.59 3.84 31.062 3.84 33.28 0 57.856-15.36 79.53-49.749 15.531-24.747 24.832-52.48 28.416-85.163 4.096-37.205-10.752-65.45-44.288-84.053zM745.045 880.299c12.63 41.13 9.558 48.896-27.306 69.12a165.717 165.717 0 0 1-30.55 13.397c-17.92 5.547-30.208 8.79-39.85 8.79-13.568 0-23.211-5.803-38.4-37.547-18.774-39.254-53.675-60.928-98.134-60.928h-.512c-41.216.17-74.752 21.504-99.754 63.573-17.238 29.013-22.187 35.243-36.011 35.243-7.339 0-17.067-1.792-31.403-4.864a172.117 172.117 0 0 1-77.397-38.4c-13.653-11.776-16.47-22.784-9.813-38.059 8.533-19.883 16.64-43.776 10.837-71.168-10.155-48.384-45.653-78.507-92.757-78.507-5.291 0-10.752.427-16.214 1.195a1083.733 1083.733 0 0 0-25.77 3.84c-12.032 1.963-20.31 2.901-26.966 2.901-19.114 0-26.965-6.997-42.154-37.29a188.501 188.501 0 0 1-14.507-39.766c-5.461-22.613-6.144-32.768-2.816-40.106 3.67-8.363 14.08-15.36 32-25.43 58.88-33.28 82.176-94.378 55.296-145.322a128 128 0 0 0-64-58.027c-19.627-8.533-27.307-22.101-24.832-43.776 3.328-30.293 13.91-57.173 31.403-79.787 8.192-10.581 16.042-15.274 25.6-15.274 3.584 0 7.68.682 12.117 2.133 17.067 5.376 33.877 10.24 51.541 10.24 5.12 0 10.07-.427 14.763-1.195 36.523-6.314 61.44-21.077 76.288-45.226 12.459-20.139 17.835-46.08 17.408-84.139a17.408 17.408 0 0 0-1.024-5.12l-.17-.768c-8.705-51.115-2.646-61.696 45.994-80.64 9.472-3.755 18.859-6.741 27.819-8.96 14.336-3.413 25.088-5.973 32.512-5.973 11.434 0 16.042 6.058 32.426 34.218 23.552 40.534 56.832 61.014 99.158 61.014h1.792c43.008-.598 77.653-22.187 100.266-62.55 14.763-26.282 20.651-32 33.28-32 7.168 0 16.64 1.963 28.758 4.779 19.882 4.779 34.56 11.008 46.336 19.627 19.626 14.25 28.586 23.637 31.232 32.426 2.474 8.192-.427 17.75-5.803 33.792-11.52 34.731-6.656 70.486 13.312 98.134 20.31 28.33 53.675 44.458 91.392 44.458h.853a62.464 62.464 0 0 0 4.779.171c17.323 0 36.437-6.656 53.333-12.63a37.547 37.547 0 0 1 12.288-2.389c7.766 0 14.251 3.414 20.48 10.838 22.699 27.306 34.816 60.416 36.779 100.949.683 13.739-8.875 19.37-24.576 27.477l-.17.086c-25.771 13.312-61.014 36.437-69.974 83.712-9.557 50.346 11.435 96.085 53.504 116.565 48.128 23.296 46.25 37.717 31.317 89.173a115.285 115.285 0 0 1-22.613 39.766c-10.07 12.458-21.333 18.517-34.56 18.517a53.419 53.419 0 0 1-14.933-2.304 181.93 181.93 0 0 0-51.286-8.107 131.413 131.413 0 0 0-22.186 1.878c-29.184 4.949-53.59 21.248-68.608 45.738-16.214 26.454-19.798 60.075-9.814 92.502z"});t.a=r},tO4o:function(e,t,n){function r(e){return e===e&&!o(e)}var o=n("yCNF");e.exports=r},tObA:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u,c,l=n("Jmof"),f=(n.n(l),n("KSGD")),p=n.n(f),d=n("211U"),h=n.n(d),m=n("Z+TA"),v=n.n(m),y=n("oiih"),b=n("arHq"),g=n.n(b),_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=(i=h()(g.a,{allowMultiple:y.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.debounceTimeout=null,n.delayTimeout=null,n.state={spinning:e.spinning},n}return a(t,e),_(t,[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props.spinning,r=e.spinning,o=this.props.delay;this.debounceTimeout&&clearTimeout(this.debounceTimeout),n&&!r?(this.debounceTimeout=setTimeout(function(){return t.setState({spinning:r})},300),this.delayTimeout&&clearTimeout(this.delayTimeout)):r&&o&&!isNaN(Number(o))?this.delayTimeout=setTimeout(function(){return t.setState({spinning:r})},o):this.setState({spinning:r})}},{key:"isNestedPattern",value:function(){return!(!this.props||!this.props.children)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.size,r=e.tip,o=(e.delay,this.state.spinning),a={styleName:"Spin "+("default"===n?"":n)},i={styleName:"qui-spin-container "+(o?"qui-spin-blur":"")},s=React.createElement("div",a,React.createElement("span",{styleName:"qui-spin-dot"},React.createElement("i",null),React.createElement("i",null),React.createElement("i",null),React.createElement("i",null),React.createElement("i",null)),r?React.createElement("p",{styleName:"qui-spin-text"},r):null);return this.isNestedPattern()?React.createElement(v.a,{component:"div",transitionName:"fade",styleName:"qui-spin-loading-wrap"},o&&React.createElement("div",{styleName:"qui-spin-wrap"},s),React.createElement("div",i,t)):s}}]),t}(l.PureComponent),u.displayName="Spin",u.defaultProps={size:"default",spinning:!0,delay:0},u.propTypes={size:p.a.oneOf(["small","large","default"]),spinning:p.a.bool,delay:p.a.number},s=c))||s;t.a=E},tYO1:function(e,t,n){n("0/jl"),n("gCWN"),n("3ggi"),n("OoWg"),e.exports=n("iANj").Symbol},tfLY:function(e,t,n){"use strict";n("CIox")},tqSY:function(e,t,n){e.exports=n("zNjz")(323)},tqq1:function(e,t,n){"use strict";t.__esModule=!0;var r=n("rnpr"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=function(){var e=null,t=function(t){return(0,o.default)(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,r,a){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,a):((0,o.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==i)}else a(!0)},r=[];return{setPrompt:t,confirmTransitionTo:n,appendListener:function(e){var t=!0,n=function(){t&&e.apply(void 0,arguments)};return r.push(n),function(){t=!1,r=r.filter(function(e){return e!==n})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.forEach(function(e){return e.apply(void 0,t)})}}};t.default=a},tv3T:function(e,t,n){function r(e,t,n,r){var i=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=r?r(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),i?a(n,c,l):o(n,c,l)}return n}var o=n("i4ON"),a=n("nw3t");e.exports=r},twkG:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i=n("WuRR"),s=n.n(i),u=n("crWv"),c=n.n(u),l=n("Jmof"),f=n.n(l),p=n("KSGD"),d=n.n(p),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=a=o(this,e.call.apply(e,[this].concat(u))),a.state={match:a.computeMatch(a.props.history.location.pathname)},i=n,o(a,i)}return a(t,e),t.prototype.getChildContext=function(){return{router:h({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,r=t.history;c()(null==n||1===f.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){s()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?f.a.Children.only(e):null},t}(f.a.Component);m.propTypes={history:d.a.object.isRequired,children:d.a.node},m.contextTypes={router:d.a.object},m.childContextTypes={router:d.a.object.isRequired},t.a=m},tz60:function(e,t,n){"use strict";var r=n("0Lvz")(!0);n("4dmN")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},uCi2:function(e,t,n){function r(e,t){t=o(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[a(t[n++])];return n&&n==r?e:void 0}var o=n("bIjD"),a=n("Ubhr");e.exports=r},uIr7:function(e,t){function n(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}e.exports=n},uLhX:function(e,t,n){function r(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[u]=n:delete e[u]),o}var o=n("NkRn"),a=Object.prototype,i=a.hasOwnProperty,s=a.toString,u=o?o.toStringTag:void 0;e.exports=r},uZLI:function(e,t,n){function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length?"rgb("+i.fromHsvObject(t[0]).toRgbArray().join(", ")+")":"rgb("+i.fromHsvArray(t).toRgbArray().join(", ")+")"}function o(e){return{BRAND_COLOR_LIGHT:a({},e,{s:e.s-17,v:e.v+3}),BRAND_COLOR_LIGHTER:a({},e,{s:e.s-30,v:e.v+5}),BRAND_COLOR_LIGHTEST:a({},e,{s:e.s-50,v:100}),BRAND_COLOR_DARK:a({},e,{s:e.s+20,v:e.v-5})}}var a=n("BUAs"),i=n("SgDZ");t.staticVariables={"border-color":"#e6e6e6","neutral-color":"#fff","text-color-dark":"#333","text-color":"#666","text-color-light":"#999","link-color":"#3b98e0","warn-color":"#ffc71b","fail-color":"#fe3824","success-color":"#6ac00b"},t.hsv=r,t.getBrandColors=o},ua1c:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M512 0C229.224 0 0 229.224 0 512s229.224 512 512 512 512-229.224 512-512S794.76 0 512 0zm261.092 685.355l-87.72 87.721L512 599.721 337.856 773.864l-87.72-87.72L424.279 512 250.908 338.645l87.72-87.721 173.356 173.355 174.143-174.143 87.721 87.72L599.721 512l173.371 173.355z"});t.a=r},"ue/d":function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},"ues/":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function s(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):o(e,t))}Object.defineProperty(t,"__esModule",{value:!0});var u="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},c=n("Jmof"),l=r(c),f=n("wLXD"),p=r(f),d=n("KSGD"),h=r(d),m=n("WaPW"),v=r(m),y=n("iiGN"),b=r(y),g={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},_=function(e){function t(){return a(this,t),i(this,e.apply(this,arguments))}return s(t,e),t.prototype.componentWillUnmount=function(){this.stop()},t.prototype.componentWillEnter=function(e){b.default.isEnterSupported(this.props)?this.transition("enter",e):e()},t.prototype.componentWillAppear=function(e){b.default.isAppearSupported(this.props)?this.transition("appear",e):e()},t.prototype.componentWillLeave=function(e){b.default.isLeaveSupported(this.props)?this.transition("leave",e):e()},t.prototype.transition=function(e,t){var n=this,r=p.default.findDOMNode(this),o=this.props,a=o.transitionName,i="object"===(void 0===a?"undefined":u(a));this.stop();var s=function(){n.stopper=null,t()};if((m.isCssAnimationSupported||!o.animation[e])&&a&&o[g[e]]){var c=i?a[e]:a+"-"+e,l=c+"-active";i&&a[e+"Active"]&&(l=a[e+"Active"]),this.stopper=(0,v.default)(r,{name:c,active:l},s)}else this.stopper=o.animation[e](r,s)},t.prototype.stop=function(){var e=this.stopper;e&&(this.stopper=null,e.stop())},t.prototype.render=function(){return this.props.children},t}(l.default.Component);_.propTypes={children:h.default.any},t.default=_,e.exports=t.default},uieL:function(e,t){function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=n},"v0t+":function(e,t,n){function r(e,t,n,r,d,h,m,v,y,b){var g=t&l,_=g?m:void 0,E=g?void 0:m,w=g?h:void 0,O=g?void 0:h;t|=g?f:p,(t&=~(g?p:f))&c||(t&=~(s|u));var P=[e,t,d,w,_,O,E,v,y,b],x=n.apply(void 0,P);return o(e)&&a(x,P),x.placeholder=r,i(x,e,t)}var o=n("5DDM"),a=n("7I8Q"),i=n("EagF"),s=1,u=2,c=4,l=8,f=32,p=64;e.exports=r},v2lb:function(e,t,n){e.exports=n("zNjz")(299)},v8Dt:function(e,t,n){function r(e){return o(this,e).get(e)}var o=n("pTUa");e.exports=r},v8VU:function(e,t,n){e.exports=n("zNjz")(455)},v8oQ:function(e,t,n){function r(e){var t=++a;return o(e)+t}var o=n("ZT2e"),a=0;e.exports=r},v9aJ:function(e,t,n){var r=n("M6Wl"),o=n("pQJ6"),a=o(r);e.exports=a},vC7t:function(e,t,n){"use strict";var r=n("Jmof"),o=(n.n(r),n("KSGD")),a=(n.n(o),n("T+2Y"));n.n(a),n("s4hp"),Object.assign},vdxk:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return u});var r=n("iB3Z"),o=n.n(r),a=n("KSGD"),i=n.n(a),s={value:void 0,defaultValue:void 0,disabled:!1,format:"YYYY-MM-DD",onChange:function(){},fieldSize:"normal",fieldWidth:220},u={value:i.a.oneOfType([o.a.momentObj,i.a.string]),defaultValue:i.a.oneOfType([o.a.momentObj,i.a.string]),disabled:i.a.bool,format:i.a.string,onChange:i.a.func,fieldSize:i.a.oneOf(["normal","large","small"]),fieldWidth:i.a.number}},vjf9:function(e,t){e.exports={Icon:"_2jSl5RJ"}},vmSu:function(e,t,n){e.exports=n("zNjz")(386)},vsXA:function(e,t,n){"use strict";function r(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}var s,u,c,l,f=n("Jmof"),p=n.n(f),d=n("KSGD"),h=n.n(d),m=n("211U"),v=n.n(m),y=n("Pp2j"),b=n("oiih"),g=n("ZJA+"),_=n.n(g),E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),O=(s=v()(_.a,{allowMultiple:b.b}))((l=c=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n.onBack=n.onBack.bind(n),n.onHome=n.onHome.bind(n),n}return i(t,e),w(t,[{key:"onBack",value:function(){var e=this.props.children;p.a.Children.map(e,function(t,n){n===e.length-2&&t.props.href&&(location.href=t.props.href)})}},{key:"onHome",value:function(){location.href="/"}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.separator,o=e.hasBackIcon,a=e.hasHomeIcon,i=r(e,["children","separator","hasBackIcon","hasHomeIcon"]),s=p.a.Children.map(t,function(e,t){return e?Object(f.cloneElement)(e,{separator:n,key:t}):e});return p.a.createElement("div",E({styleName:"breadcrumb"},i),p.a.createElement("span",{styleName:"breadcrumb--icon"},a?p.a.createElement("span",null,p.a.createElement(y.a,{name:"home",size:12,onClick:this.onHome})):null,o?p.a.createElement("span",null,p.a.createElement(y.a,{name:"arrow-left",size:12,onClick:this.onBack})):null),s)}}]),t}(f.PureComponent),c.displayName="Breadcrumb",c.defaultProps={separator:"/",hasBackIcon:!1,hasHomeIcon:!1},c.propTypes={separator:h.a.node,hasBackIcon:h.a.bool,hasHomeIcon:h.a.bool},u=l))||u;t.a=O},vwZB:function(e,t,n){function r(e){var t=o[e];return t?n.e(t[1]).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}var o={"./alert/demo/index":["azB9",0],"./animation/demo/index":["VscV",0],"./breadcrumb/demo/index":["KOED",0],"./button/demo/index":["8ovY",0],"./checkbox/demo/index":["2YTV",0],"./datePicker/demo/index":["5krA",0],"./dropdown/demo/index":["J2TD",0],"./icon/demo/index":["7Lsv",0],"./input/demo/index":["CKXR",0],"./inputNumber/demo/index":["M1/m",0],"./menu/demo/index":["iHBT",0],"./message/demo/index":["RtOM",0],"./modal/demo/index":["Hn9c",0],"./pagination/demo/index":["yPNB",0],"./progress/demo/index":["9aTS",0],"./radio/demo/index":["tsro",0],"./select/demo/index":["jC5m",0],"./spin/demo/index":["Eiul",0],"./steps/demo/index":["cJNF",0],"./tabs/demo/index":["0h7d",0],"./trigger/demo/index":["Ek3L",0],"./upload/demo/index":["liFK",0]};r.keys=function(){return Object.keys(o)},r.id="vwZB",e.exports=r},wAcK:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("Jmof"),a=r(o),i=n("KSGD"),s=r(i),u=n("DT0+"),c=r(u),l=(0,c.default)({displayName:"Divider",propTypes:{disabled:s.default.bool,className:s.default.string,rootPrefixCls:s.default.string},getDefaultProps:function(){return{disabled:!0}},render:function(){var e=this.props,t=e.className,n=void 0===t?"":t,r=e.rootPrefixCls;return a.default.createElement("li",{className:n+" "+r+"-item-divider"})}});t.default=l,e.exports=t.default},wKps:function(e,t,n){var r=n("5183"),o=n("qrdl"),a=r?function(e){return r.get(e)}:o;e.exports=a},wLXD:function(e,t){e.exports=ReactDOM},wNtP:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M512.557 169.6l.448-.512c21.312-20.48 43.84-39.68 67.968-56.768a381.632 381.632 0 0 1 55.936-33.536c7.04-3.2 14.08-6.4 21.312-8.96a204.928 204.928 0 0 1 51.008-12.16h11.648c3.008 0 6.016 0 8.96.64 6.4.64 12.8 1.92 19.008 3.84 5.12 1.92 10.24 3.84 15.36 6.4 3.2 1.92 5.76 3.84 8.96 5.76 5.12 3.84 9.6 7.68 13.44 12.16 3.2 4.48 7.04 8.32 9.6 12.8 6.4 10.24 11.52 21.12 15.36 32 1.28 3.2 1.92 6.4 3.2 10.24 1.28 4.48 1.92 8.96 3.2 13.44 1.28 5.76 1.92 11.52 3.2 17.28l1.92 21.76c.64 8.96.64 18.56.64 28.16 0 12.16-.64 24.32-1.92 36.48-1.92 15.36-3.84 30.08-6.4 44.8-1.92 8.96-3.2 17.92-5.12 26.88l-3.84 15.36 8.32 2.56c15.36 4.48 30.08 9.6 45.44 15.36 11.52 4.48 23.68 9.6 35.2 15.36 10.24 5.12 20.48 10.24 30.08 16 10.88 6.4 21.12 12.8 30.72 20.48 8.32 6.4 16.64 13.44 24.32 20.48 5.76 5.76 10.88 11.52 16 17.92 3.84 5.12 7.68 10.88 10.88 16.64 4.48 8.32 7.68 16.64 10.24 25.6 1.28 5.12 1.92 10.88 1.92 16.64 0 3.2 0 7.04-.64 10.88-.64 5.76-1.92 12.16-3.84 17.92-1.28 5.76-3.84 10.88-6.4 16-5.76 10.88-12.8 21.12-21.12 30.72-2.56 3.2-5.12 5.76-7.68 8.32-3.84 3.84-7.04 7.04-10.88 10.24-4.48 3.84-9.6 8.32-14.72 11.52-6.4 5.12-12.8 9.6-19.2 13.44-8.32 5.76-17.28 10.88-26.24 15.36-11.52 5.76-22.4 11.52-33.92 16.64a576 576 0 0 1-35.2 14.08c-10.24 3.84-20.48 7.04-30.72 10.24l-3.2 1.28c1.28 5.12 2.56 10.24 3.2 15.36 1.28 7.68 3.2 15.36 4.48 23.04 2.56 15.36 5.12 31.36 6.4 46.72.64 12.16 1.28 24.32 1.28 35.84a396.288 396.288 0 0 1-3.84 50.56c-1.28 5.76-1.92 12.16-3.2 17.92l-3.84 14.08c-2.56 7.68-5.76 16-8.96 23.68-3.2 5.76-6.4 12.16-10.24 17.92-3.84 5.76-8.32 10.88-13.44 16-5.76 5.76-12.16 10.24-18.56 14.08-5.12 2.56-10.88 5.12-16 6.4-8.96 2.56-17.92 3.84-26.88 4.352-12.16.384-24.32-1.28-36.48-3.84a175.36 175.36 0 0 1-21.76-6.4c-8.32-2.56-16-6.016-23.68-9.6-9.6-4.224-18.56-8.96-27.52-14.08-10.24-5.76-20.48-12.16-30.08-19.2-24.96-17.28-48.64-37.12-70.4-58.24l-5.12 4.48c-10.24 9.6-20.48 18.56-30.72 27.52-10.88 8.32-21.76 16.64-33.28 24.96-10.24 7.04-20.48 13.44-31.36 19.84-10.24 5.76-21.12 10.88-31.36 15.36-7.68 3.2-15.36 6.4-23.04 8.96-7.68 2.304-14.72 4.48-22.4 5.76-12.16 2.56-23.68 3.84-35.84 3.584-9.6 0-19.2-1.28-28.16-4.48a61.44 61.44 0 0 1-16.64-7.04c-3.84-1.92-7.04-4.48-10.24-7.04a57.728 57.728 0 0 1-6.4-5.76 14.976 14.976 0 0 1-4.48-4.48 110.08 110.08 0 0 1-21.12-32.64l-1.92-5.76c-.64-2.56-1.92-5.12-2.56-7.04-1.28-3.2-1.92-7.04-3.2-10.24-1.28-4.48-1.92-8.32-3.2-12.8-1.28-5.76-2.56-11.136-3.2-16.832-.64-7.04-1.92-14.72-1.92-21.76-.64-9.6-.64-18.56-.64-28.16 0-12.16.64-24.32 1.92-35.84 1.28-15.36 3.84-30.08 6.4-45.44l7.68-36.48-12.8-3.84a608.64 608.64 0 0 1-44.8-16 309.76 309.76 0 0 1-30.08-13.44c-8.96-4.48-17.92-8.96-26.88-14.72a288.96 288.96 0 0 1-57.472-42.24C35.95 588.8 30.19 582.4 25.07 576a156.16 156.16 0 0 1-12.16-18.048c-3.2-5.76-5.76-11.904-8.064-18.176-.64-2.816-1.536-5.76-2.176-8.576a74.88 74.88 0 0 1-2.048-29.44c.384-2.816.832-5.76 1.472-8.512L3.95 486.4c4.096-13.44 11.2-25.984 19.84-37.12a155.712 155.712 0 0 1 16.32-18.496l10.88-9.6c4.8-3.84 9.6-7.68 14.592-11.52 6.4-4.48 13.056-8.96 19.84-13.44 8.32-5.12 17.024-10.24 25.856-14.72 11.264-5.76 22.784-10.88 34.56-16 21.12-8.96 42.752-16 64.768-22.4l5.12-1.28c-3.2-13.44-6.4-26.88-8.96-40.32-2.56-14.08-5.12-28.8-6.4-43.52-1.28-11.52-1.92-23.04-2.56-35.2-.64-8.96 0-18.56 0-28.16 0-7.04.64-14.08 1.92-21.12a160.768 160.768 0 0 1 5.76-30.72c.64-3.2 1.92-7.04 3.2-10.24l2.56-6.4c.64-1.92 1.28-3.84 2.56-5.76 5.12-11.52 11.52-23.04 20.48-32.64 1.92-1.92 3.84-3.84 6.4-5.76 1.92-1.92 3.84-3.2 5.76-5.12 2.56-1.92 5.76-3.84 8.96-5.76 5.12-2.56 10.24-5.12 16-6.4 6.4-1.92 12.8-3.2 19.2-3.84 1.92 0 3.84-.64 5.76-.64h9.6l7.04.64a259.06 259.06 0 0 1 30.72 5.76c6.4 1.92 13.44 3.84 19.84 6.4 7.04 2.56 13.44 5.76 20.48 8.96 10.24 5.12 19.84 10.24 29.44 16 10.24 6.4 20.48 12.8 30.72 19.84 11.52 8.32 23.04 17.28 34.56 26.88 8.96 7.68 17.28 15.36 26.24 23.04l5.76 5.76zm256.448 524.672a976.64 976.64 0 0 1-130.752 20.672c-2.56.64-5.12.64-7.68 1.28-11.52 17.28-24.32 34.56-37.12 50.56-13.44 17.92-27.52 35.2-42.24 51.2l-6.4 7.04c19.2 18.56 39.04 35.84 60.8 51.2 8.96 6.4 17.92 12.16 26.88 17.92 7.68 5.12 16 8.96 24.32 13.44 7.04 3.2 14.08 6.4 21.76 8.96 5.76 1.92 11.52 3.84 17.92 5.12 5.12 1.28 10.24 2.56 15.36 2.56 4.48.64 8.96.64 12.8.64 6.4 0 13.44-1.28 19.2-3.84l5.12-2.56a30.08 30.08 0 0 0 9.6-8.32c3.84-4.48 7.04-9.6 10.24-14.72 1.28-1.28 1.92-3.2 3.2-5.12l3.2-7.68c1.28-3.2 2.56-6.4 3.2-10.24 1.28-4.48 2.56-8.32 3.2-12.8 1.28-5.76 1.92-11.52 3.2-17.28 1.28-5.76 1.28-12.16 1.92-18.56.64-14.08.64-28.16-.64-42.24-.64-13.44-2.56-27.52-4.48-40.96-1.92-10.88-3.84-22.4-6.4-33.28l-2.56-10.88zm-511.552 1.92l-3.84 18.56a545.213 545.213 0 0 0-9.6 64.448c-1.28 14.336-1.28 28.8-1.28 43.136.64 5.76.64 12.16 1.28 18.56.64 5.76 1.92 10.88 2.56 16.64.64 3.84 1.92 8.32 2.56 12.16 1.28 3.2 1.92 6.4 3.2 9.6 1.28 2.56 1.92 5.12 3.2 7.68l3.2 5.76c.64 1.28 1.28 2.56 2.56 3.84l1.92 3.2 1.92 2.56c3.84 5.12 7.68 9.6 13.44 12.8l3.84 1.92c3.2 1.28 5.76 2.56 8.96 3.2 4.48.64 8.32 1.28 12.8 1.28s8.96 0 12.8-.64c5.12-.64 10.24-1.92 15.36-2.56 6.4-1.28 12.16-3.2 17.92-5.12a274.816 274.816 0 0 0 47.36-22.4c9.6-5.76 19.2-12.16 28.8-18.56 9.6-7.04 19.2-14.08 28.16-21.76 5.76-4.48 10.88-8.96 16.64-14.08 4.48-4.48 9.6-8.32 14.08-12.8l1.92-1.92-10.88-12.16c-14.72-16.64-28.8-33.92-42.88-51.2a1196.8 1196.8 0 0 1-33.92-45.44h-3.84a1657.6 1657.6 0 0 1-58.88-6.4c-17.92-2.56-35.84-5.76-53.76-8.96l-21.12-4.48zm316.8 23.168a1476.608 1476.608 0 0 1-115.2.448l-6.4-.192 13.44 16.768c12.8 15.744 25.6 31.104 39.04 46.08 3.2 3.648 6.4 7.296 10.24 10.88l5.12-5.76c13.44-15.168 26.24-30.912 39.04-47.04 5.12-6.4 10.88-13.44 16-21.12zm32-368.768a1171.072 1171.072 0 0 0-90.24-3.52h-4.48c-9.6 0-18.56.128-28.16.384-21.12 0-42.24 1.28-63.36 2.56-12.16 17.92-23.68 35.84-35.2 54.4-12.8 21.12-24.96 42.88-36.48 64.64-7.04 13.44-14.08 27.52-21.12 41.6 7.68 15.36 15.36 30.72 23.68 45.44 12.16 22.4 24.96 44.16 37.76 65.92 10.88 16.64 21.76 33.92 32.64 49.92l38.4 1.92c18.56.64 36.48.64 55.04.64 31.36 0 62.72-1.28 93.44-3.2 10.88-16 21.12-32.64 31.36-48.64 22.4-37.12 43.52-74.88 62.08-113.92-6.4-13.44-12.8-26.24-19.84-39.04-8.96-17.28-18.56-33.92-28.16-49.92-13.44-23.04-27.52-46.08-42.88-68.48l-2.56-3.84zm-303.36 213.12c-4.48 11.52-9.6 23.424-14.08 35.2a890.831 890.831 0 0 0-19.2 55.04c10.88 2.56 22.4 4.608 33.28 6.528 16 2.816 32.64 5.12 48.64 7.168 4.48.64 8.96 1.088 13.44 1.536-7.04-11.072-14.08-22.272-20.48-33.536-14.08-23.552-27.52-47.616-40.32-72zm420.48-1.664c-6.4 12.608-13.44 24.96-19.84 37.44-7.68 13.824-15.36 27.52-23.68 41.216-5.12 9.6-10.88 18.56-16.64 28.16l9.6-1.28c16-1.92 32-4.48 47.36-7.04 12.8-1.92 26.24-4.48 39.04-7.68a559.36 559.36 0 0 0-18.56-51.84c-4.48-12.8-10.24-25.6-15.36-37.76zm-495.36-179.2l-14.08 4.224a498.944 498.944 0 0 0-72.96 28.672 407.04 407.04 0 0 0-28.16 15.36c-7.68 4.8-16 10.112-23.04 15.872-5.76 4.224-10.88 8.704-16 13.568-4.48 4.032-8.32 8.32-12.16 12.8-2.56 3.52-5.12 7.04-7.68 10.88-1.92 3.2-3.84 6.4-5.12 9.856a38.72 38.72 0 0 0-3.2 14.72v3.84c0 5.632 1.92 11.264 3.84 16.448l1.28 2.752 1.92 3.328 2.56 4.48 3.84 5.44 5.12 6.144c1.92 2.56 4.48 4.992 6.4 7.36 3.2 2.944 5.76 5.76 8.96 8.576 3.84 3.2 7.04 6.208 10.88 9.152 5.12 3.84 10.24 7.68 15.36 11.264 6.4 4.48 12.8 8.96 19.84 12.8 8.96 5.12 17.92 9.6 26.88 14.08 10.88 5.12 22.4 10.24 33.28 14.72 10.24 3.84 19.84 7.68 29.44 10.24l14.72 4.48 13.44-40.32c8.32-22.4 16.64-44.16 26.24-65.92l11.52-24.32-10.88-24.32c-9.6-21.76-18.56-44.8-26.88-67.2-4.48-12.16-8.96-24.96-12.8-37.76zm570.24.64a615.68 615.68 0 0 1-10.88 32.832 679.041 679.041 0 0 1-26.88 67.84l-12.16 27.2 15.36 33.28c9.6 20.8 17.92 41.856 25.6 63.168a330.576 330.576 0 0 1 11.52 33.28l7.68-2.304c8.96-2.56 17.28-5.12 25.6-8.32 17.28-5.76 33.92-12.8 49.92-21.12 10.24-4.48 19.84-10.24 28.8-16 8.32-4.48 16-10.24 23.68-16 5.76-3.84 10.88-8.32 16-13.44 4.48-3.84 8.96-8.96 12.8-13.44 3.2-3.2 5.76-7.04 8.32-10.88 1.92-3.2 3.84-6.4 5.12-9.6 2.56-4.48 3.84-9.6 3.84-15.36.64-1.28.64-2.56 0-4.48 0-3.2-.64-7.04-1.92-10.24a42.432 42.432 0 0 0-5.76-12.16l-1.92-3.84-3.2-4.48c-1.28-1.92-3.2-3.84-4.48-5.76-1.92-1.92-3.84-4.48-6.4-7.04-2.56-2.56-5.76-5.12-8.32-7.68-3.84-3.2-7.68-6.4-12.16-9.6-4.48-3.84-9.6-7.04-14.08-10.24-6.4-4.48-12.8-8.32-19.84-12.16a332.16 332.16 0 0 0-26.24-12.8c-10.24-5.12-21.12-8.96-32-13.44-14.72-5.76-30.08-10.24-45.44-14.72zM512.11 419.84a91.52 91.52 0 1 1 0 183.104 91.52 91.52 0 0 1 0-183.104zm149.504-63.36c11.264 17.536 22.08 35.456 32.512 53.568 9.6 16.768 19.072 33.728 28.16 50.88 5.44-12.928 10.688-25.984 15.68-39.168 5.76-16.192 11.52-32.512 16.64-49.024a998.144 998.144 0 0 0-94.08-16.32zm-298.88-.192a989.952 989.952 0 0 0-74.56 12.16c-5.76 1.152-12.16 2.432-17.92 3.84 5.76 17.6 11.52 35.072 17.92 52.288 4.48 12.16 9.6 24.32 14.72 36.288 11.52-21.76 23.68-44.16 36.48-65.28 8.32-12.8 16-26.24 24.32-39.04zm404.032-25.728l1.92-8.512c2.56-11.136 4.48-22.272 6.4-33.536 2.56-14.592 3.84-29.44 5.12-44.16.64-14.4 1.28-28.928.64-43.392-.64-6.528-.64-13.12-1.92-19.584-.64-5.76-1.92-11.328-2.56-16.896-1.28-4.352-1.92-8.64-3.2-12.8-1.28-3.2-1.92-6.4-3.2-9.6l-1.856-7.424-2.368-4.992c-.832-1.536-1.6-3.072-2.56-4.48a27.2 27.2 0 0 0-2.24-3.712c-.64-.832-1.152-1.728-1.728-2.56a42.816 42.816 0 0 0-18.56-15.36 46.528 46.528 0 0 0-14.72-3.2c-1.28 0-2.56 0-3.84-.128h-1.28c-1.28 0-2.56 0-4.48.192-3.84 0-7.68.64-11.52 1.28-4.48.64-9.6 1.92-14.08 3.2l-17.28 5.76c-6.4 2.56-12.8 5.76-19.84 8.96-8.32 3.84-16 8.96-24.32 13.44-8.32 5.12-17.28 10.88-25.6 17.28-20.48 14.72-39.68 31.36-58.24 49.28l8.32 8.96c16.64 17.92 32 36.48 46.72 55.68 10.88 13.44 21.12 28.16 31.36 42.24l26.24 2.56c19.2 1.92 38.4 5.12 57.6 8.32 17.92 2.56 35.84 6.4 53.12 10.24zM482.03 200.768c-.96-.832-1.92-1.664-2.752-2.56a621.504 621.504 0 0 0-55.552-46.016c-9.6-6.528-18.56-12.672-28.16-18.432-8.32-4.992-17.28-9.6-25.6-13.888-6.4-3.008-12.8-5.76-19.2-8.32a242.368 242.368 0 0 0-17.92-5.76c-4.48-1.28-8.96-2.176-13.44-3.008-4.48-.64-8.32-1.152-12.16-1.408l-4.48-.128h-.64c-1.28 0-2.56 0-3.84.128a53.504 53.504 0 0 0-24.32 6.912 36.8 36.8 0 0 0-9.6 8.64c-3.84 4.48-7.04 9.408-9.6 14.592l-2.56 5.376c-1.28 1.92-1.92 4.48-2.56 7.04-1.28 3.2-2.56 5.76-3.2 8.96-.64 3.84-1.92 8.32-2.56 12.16-.64 5.12-1.92 10.24-2.56 16-.64 5.76-1.28 12.16-1.28 18.56-.64 14.08 0 28.16.64 42.24 1.28 21.76 5.12 43.52 9.6 65.28 1.28 7.04 3.2 14.08 4.48 21.12 6.4-1.92 13.44-3.2 19.84-4.48 15.36-3.2 31.36-6.4 47.36-8.32 17.28-3.2 35.2-5.12 52.48-7.04l16-1.92c10.24-14.72 21.12-28.8 32-42.88 14.08-17.92 28.8-35.84 44.16-52.48l11.52-12.8zM512.621 232l-10.432 11.52a990.001 990.001 0 0 0-39.552 47.232l-10.88 14.08a1229.376 1229.376 0 0 1 54.4-1.472h7.424a1327.36 1327.36 0 0 1 59.264 1.408l-10.24-12.8c-13.44-17.408-27.52-34.432-42.24-50.816L512.11 232z"});t.a=r},wSKX:function(e,t){function n(e){return e}e.exports=n},wXdB:function(e,t,n){var r=n("+MZ2");e.exports=function(e){return Object(r(e))}},wiaE:function(e,t,n){var r=n("NZra");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},woOf:function(e,t,n){e.exports={default:n("Eif7"),__esModule:!0}},wqO5:function(e,t,n){"use strict";function r(e){return e}function o(e,t,n){function o(e,t){var n=b.hasOwnProperty(t)?b[t]:null;w.hasOwnProperty(t)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function c(e,n){if(n){s("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,a=r.__reactAutoBindPairs;n.hasOwnProperty(u)&&g.mixins(e,n.mixins);for(var i in n)if(n.hasOwnProperty(i)&&i!==u){var c=n[i],l=r.hasOwnProperty(i);if(o(l,i),g.hasOwnProperty(i))g[i](e,c);else{var f=b.hasOwnProperty(i),h="function"==typeof c,m=h&&!f&&!l&&!1!==n.autobind;if(m)a.push(i,c),r[i]=c;else if(l){var v=b[i];s(f&&("DEFINE_MANY_MERGED"===v||"DEFINE_MANY"===v),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",v,i),"DEFINE_MANY_MERGED"===v?r[i]=p(r[i],c):"DEFINE_MANY"===v&&(r[i]=d(r[i],c))}else r[i]=c}}}}function l(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in g;s(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var a=n in e;s(!a,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=r}}}function f(e,t){s(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(s(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function p(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return f(o,n),f(o,r),o}}function d(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){return t.bind(e)}function m(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=h(e,o)}}function v(e){var t=r(function(e,r,o){this.__reactAutoBindPairs.length&&m(this),this.props=e,this.context=r,this.refs=i,this.updater=o||n,this.state=null;var a=this.getInitialState?this.getInitialState():null;s("object"==typeof a&&!Array.isArray(a),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=a});t.prototype=new O,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],y.forEach(c.bind(null,t)),c(t,_),c(t,e),c(t,E),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),s(t.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var o in b)t.prototype[o]||(t.prototype[o]=null);return t}var y=[],b={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},g={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)c(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=a({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=a({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=p(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=a({},e.propTypes,t)},statics:function(e,t){l(e,t)},autobind:function(){}},_={componentDidMount:function(){this.__isMounted=!0}},E={componentWillUnmount:function(){this.__isMounted=!1}},w={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},O=function(){};return a(O.prototype,e.prototype,w),v}var a=n("BEQ0"),i=n("TJez"),s=n("cxPT"),u="mixins";e.exports=o},wrs0:function(e,t,n){e.exports=n("zNjz")(307)},wxAW:function(e,t,n){"use strict";t.__esModule=!0;var r=n("C4MV"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},"x//u":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},x6wJ:function(e,t,n){"use strict";function r(){}var o=n("Dd8w"),a=n.n(o),i=n("Zrlr"),s=n.n(i),u=n("wxAW"),c=n.n(u),l=n("zwoO"),f=n.n(l),p=n("Pf15"),d=n.n(p),h=n("Jmof"),m=n.n(h),v=n("KSGD"),y=n.n(v),b=n("Aq3a"),g=n("1C0P"),_=function(e){function t(){var e,n,r,o;s()(this,t);for(var a=arguments.length,i=Array(a),u=0;u<a;u++)i[u]=arguments[u];return n=r=f()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={Component:null},o=n,f()(r,o)}return d()(t,e),c()(t,[{key:"componentDidMount",value:function(){this.props.supportServerRender&&this.setState({Component:this.getComponent()},this.props.onReady)}},{key:"getComponent",value:function(){return"undefined"!=typeof File?b.a:g.a}},{key:"abort",value:function(e){this.refs.inner.abort(e)}},{key:"render",value:function(){if(this.props.supportServerRender){var e=this.state.Component;return e?m.a.createElement(e,a()({},this.props,{ref:"inner"})):null}var t=this.getComponent();return m.a.createElement(t,a()({},this.props,{ref:"inner"}))}}]),t}(h.Component);_.propTypes={component:y.a.string,style:y.a.object,prefixCls:y.a.string,action:y.a.string,name:y.a.string,multipart:y.a.bool,onError:y.a.func,onSuccess:y.a.func,onProgress:y.a.func,onStart:y.a.func,data:y.a.oneOfType([y.a.object,y.a.func]),headers:y.a.object,accept:y.a.string,multiple:y.a.bool,disabled:y.a.bool,beforeUpload:y.a.func,customRequest:y.a.func,onReady:y.a.func,withCredentials:y.a.bool,supportServerRender:y.a.bool},_.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onReady:r,onStart:r,onError:r,onSuccess:r,supportServerRender:!1,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1},t.a=_},xIPz:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("Wpbd"),i=r(a),s=n("FKtm"),u=r(s),c=n("Izpu");t.createLocation=function(e,t,n,r){var a=void 0;"string"==typeof e?(a=(0,c.parsePath)(e),a.state=t):(a=o({},e),void 0===a.pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),r?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=(0,i.default)(a.pathname,r.pathname)):a.pathname=r.pathname:a.pathname||(a.pathname="/"),a},t.locationsAreEqual=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,u.default)(e.state,t.state)}},xLxO:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}var i,s,u,c,l=n("BEQ0"),f=n.n(l),p=n("Jmof"),d=n.n(p),h=n("m0ws"),m=n("KSGD"),v=n.n(m),y=n("211U"),b=n.n(y),g=n("oiih"),_=n("Ha6d"),E=n("Vd9R"),w=n("njf/"),O=n.n(w),P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),S={uploading:"上传中...",uploadError:"上传失败",removeFile:"删除文件",previewFile:"预览文件"},C=(i=b()(O.a,{allowMultiple:g.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onChange=function(e){"fileList"in n.props||n.setState({fileList:e.fileList});var t=n.props.onChange;t&&t(e)},n.onStart=function(e){var t=void 0,r=n.state.fileList.concat();e.length>0?(t=e.map(function(e){var t=Object(_.a)(e);return t.status="uploading",t}),r=r.concat(t)):(t=Object(_.a)(e),t.status="uploading",r.push(t)),n.onChange({file:t,fileList:r}),window.FormData||n.autoUpdateProgress(0,t)},n.onError=function(e,t,r){n.clearProgressTimer();var o=n.state.fileList,a=Object(_.c)(r,o);a&&(a.error=e,a.response=S.uploadError,a.status="error",n.onChange({file:P({},a),fileList:o}))},n.onFileDrop=function(e){n.setState({dragState:e.type})},n.onSuccess=function(e,t){n.clearProgressTimer();try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}var r=n.state.fileList,o=Object(_.c)(t,r);if(o){if(n.props.onResponse){var a=n.props.onResponse(e);a.success?o.status="done":(o.status="error",o.response=a.message)}n.onChange({file:P({},o),fileList:r})}},n.onProgress=function(e,t){var r=n.state.fileList,o=Object(_.c)(t,r);o&&(o.percent=e.percent,n.onChange({event:e,file:P({},o),fileList:n.state.fileList}))},n.handleManualRemove=function(e){n.refs.upload.abort(e),e.status="removed",n.handleRemove(e)},n.state={fileList:n.props.fileList||n.props.defaultFileList||[],dragState:"drop"},n}return a(t,e),x(t,[{key:"componentWillReceiveProps",value:function(e){"fileList"in e&&this.setState({fileList:e.fileList||[]})}},{key:"autoUpdateProgress",value:function(e,t){var n=this,r=Object(_.b)(),o=0;this.clearProgressTimer(),this.progressTimer=setInterval(function(){o=r(o),n.onProgress({percent:o},t)},200)}},{key:"handleRemove",value:function(e){var t=this,n=this.props.onRemove;Promise.resolve("function"==typeof n?n(e):n).then(function(n){if(!1!==n){var r=Object(_.d)(e,t.state.fileList);r&&t.onChange({file:e,fileList:r})}})}},{key:"clearProgressTimer",value:function(){clearInterval(this.progressTimer)}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=void 0===t?"":t,r=e.showUploadList,o=e.listType,a=e.onPreview,i=e.disabled,s=e.children,u=e.className,c=f()({},{onStart:this.onStart,onError:this.onError,onProgress:this.onProgress,onSuccess:this.onSuccess},this.props);delete c.className;var l=r.showRemoveIcon,p=r.showPreviewIcon,m=r?d.a.createElement(E.a,{listType:o,items:this.state.fileList,onPreview:a,onRemove:this.handleManualRemove,showRemoveIcon:l,showPreviewIcon:p,locale:S,disabled:i}):null,v=d.a.createElement("div",{styleName:n+" "+n+"-select "+n+"-select-"+o+" "+(s?"":"hide")},d.a.createElement(h.a,P({},c,{ref:"upload"})));return"picture-card"===o?d.a.createElement("div",{className:u},m,v,d.a.createElement("div",{style:{clear:"both"}})):d.a.createElement("div",{className:u},v,m)}}]),t}(d.a.Component),u.displayName="Upload",u.defaultProps={name:"file",defaultFileList:null,action:"",data:{},headers:null,showUploadList:!0,multiple:!1,accept:"",beforeUpload:null,customRequest:null,onChange:null,listType:"text",onPreview:null,onRemove:null,disabled:!1,withCredentials:!1,prefixCls:"upload",className:"",onResponse:function(e){return"success"===e.result?{success:!0,message:"上传成功"}:{success:!1,message:e.msg}}},u.propTypes={name:v.a.string,defaultFileList:v.a.arrayOf(v.a.object),fileList:v.a.arrayOf(v.a.object),action:v.a.string,data:v.a.object||v.a.func,headers:v.a.object,showUploadList:v.a.bool||v.a.object,multiple:v.a.bool,accept:v.a.string,beforeUpload:v.a.func,customRequest:v.a.func,onChange:v.a.func,listType:v.a.oneOf("text","picture-card"),onPreview:v.a.func,onRemove:v.a.func,disabled:v.a.bool,withCredentials:v.a.bool,prefixCls:v.a.string,className:v.a.string,children:v.a.element.isRequired,onResponse:v.a.func},s=c))||s;t.a=C},xMpm:function(e,t,n){e.exports=n("zNjz")(347)},xONB:function(e,t,n){e.exports=n("zNjz")(303)},xSJG:function(e,t,n){"use strict";function r(){return!1}function o(){return!0}function a(){this.timeStamp=Date.now(),this.target=void 0,this.currentTarget=void 0}Object.defineProperty(t,"__esModule",{value:!0}),a.prototype={isEventObject:1,constructor:a,isDefaultPrevented:r,isPropagationStopped:r,isImmediatePropagationStopped:r,preventDefault:function(){this.isDefaultPrevented=o},stopPropagation:function(){this.isPropagationStopped=o},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=o,this.stopPropagation()},halt:function(e){e?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}},t.default=a,e.exports=t.default},xVc6:function(e,t,n){"use strict";var r=n("pEGt"),o=n("THEY"),a=n("bSeU"),i=n("wXdB"),s=n("wiaE"),u=Object.assign;e.exports=!u||n("zyKz")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=i(e),u=arguments.length,c=1,l=o.f,f=a.f;u>c;)for(var p,d=s(arguments[c++]),h=l?r(d).concat(l(d)):r(d),m=h.length,v=0;m>v;)f.call(d,p=h[v++])&&(n[p]=d[p]);return n}:u},xicH:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function a(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)}n.d(t,"a",function(){return w});var i,s,u,c,l=n("Jmof"),f=(n.n(l),n("KSGD")),p=n.n(f),d=n("211U"),h=n.n(d),m=n("HW6M"),v=n.n(m),y=n("Pp2j"),b=n("oiih"),g=n("WKZb"),_=n.n(g),E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),w=(i=h()(_.a,{allowMultiple:b.b}))((c=u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.deleteButton=function(e){e.stopPropagation(),n.props.deleteButton(n.props.tabKey)},n.clickTab=function(){n.props.onClick(n.props.tabKey)},n.deleteButton=n.deleteButton.bind(n),n.clickTab=n.clickTab.bind(n),n}return a(t,e),E(t,[{key:"render",value:function(){var e=this.props,t=e.closable,n=e.disabled,r=e.status,o=e.tabDeleteButton,a=e.title,i=v()({disabled:!0===n,active:"active"===r,tabs__tab:!0}),s=React.createElement(y.a,{size:12,name:"close",onClick:this.deleteButton});return React.createElement("div",{styleName:i,onClick:this.clickTab},a,o&&t?React.createElement("div",{styleName:"tab__del"},s):null)}}]),t}(l.PureComponent),u.displayName="Tab",u.defaultProps={closable:!0,tabKey:null,deleteButton:function(){},onClick:function(){}},u.propTypes={closable:p.a.bool,tabKey:p.a.string,deleteButton:p.a.func,onClick:p.a.func},s=c))||s},xw40:function(e,t,n){"use strict";function r(e,t,n){e.addEventListener(t,n,!1)}function o(e,t,n){e.removeEventListener(t,n,!1)}Object.defineProperty(t,"__esModule",{value:!0});var a={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},i=[];"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var e=document.createElement("div"),t=e.style;"AnimationEvent"in window||delete a.animationend.animation,"TransitionEvent"in window||delete a.transitionend.transition;for(var n in a)if(a.hasOwnProperty(n)){var r=a[n];for(var o in r)if(o in t){i.push(r[o]);break}}}();var s={addEndEventListener:function(e,t){if(0===i.length)return void window.setTimeout(t,0);i.forEach(function(n){r(e,n,t)})},endEvents:i,removeEndEventListener:function(e,t){0!==i.length&&i.forEach(function(n){o(e,n,t)})}};t.default=s,e.exports=t.default},y9m4:function(e,t,n){e.exports=n("zNjz")(372)},yCNF:function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},yEYY:function(e,t,n){"use strict";function r(e){return a.a.createElement("svg",s({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e),u,c)}var o=n("Jmof"),a=n.n(o),i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var a=t&&t.defaultProps,i=arguments.length-3;if(n||0===i||(n={}),n&&a)for(var s in a)void 0===n[s]&&(n[s]=a[s]);else n||(n=a||{});if(1===i)n.children=o;else if(i>1){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=i("defs",{},void 0,i("style",{})),c=i("path",{d:"M566.594 512.533l288.992-288.994c12.998-12.993 11.492-35.558-3.361-50.407-14.846-14.846-37.405-16.353-50.406-3.358L512.828 458.768l-288.99-288.994c-12.998-12.995-35.559-11.489-50.407 3.358-14.851 14.849-16.359 37.414-3.36 50.407l288.992 288.994-288.987 288.99c-12.995 12.99-11.496 35.56 3.355 50.407 14.842 14.846 37.416 16.349 50.407 3.36l288.99-288.992L801.821 855.29c12.988 12.989 35.564 11.486 50.406-3.36 14.852-14.847 16.35-37.416 3.355-50.408l-288.988-288.99z"});t.a=r},yL62:function(e,t,n){"use strict";function r(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function i(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)}var s=n("Jmof"),u=n.n(s),c=n("KSGD"),l=n.n(c),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},d=function(e){function t(){var n,r,i;o(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=r=a(this,e.call.apply(e,[this].concat(u))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!p(e)){e.preventDefault();var t=r.context.router.history,n=r.props,o=n.replace,a=n.to;o?t.replace(a):t.push(a)}},i=n,a(r,i)}return i(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),n=r(e,["replace","to"]),o=this.context.router.history.createHref("string"==typeof t?{pathname:t}:t);return u.a.createElement("a",f({},n,{onClick:this.handleClick,href:o}))},t}(u.a.Component);d.propTypes={onClick:l.a.func,target:l.a.string,replace:l.a.bool,to:l.a.oneOfType([l.a.string,l.a.object]).isRequired},d.defaultProps={replace:!1},d.contextTypes={router:l.a.shape({history:l.a.shape({push:l.a.func.isRequired,replace:l.a.func.isRequired,createHref:l.a.func.isRequired}).isRequired}).isRequired},t.a=d},yYxz:function(e,t){e.exports={}},yt5j:function(e,t,n){"use strict";n("CIox")},yuXV:function(e,t,n){e.exports=n("zNjz")(291)},yx1U:function(e,t,n){e.exports=n("zNjz")(388)},yzuE:function(e,t,n){function r(e,t){var n=-1,r=a(e)?Array(e.length):[];return o(e,function(e,o,a){r[++n]=t(e,o,a)}),r}var o=n("v9aJ"),a=n("bGc4");e.exports=r},z4hc:function(e,t,n){function r(e){return i(e)&&a(e.length)&&!!s[o(e)]}var o=n("aCM0"),a=n("Rh28"),i=n("UnEC"),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=r},zBOP:function(e,t,n){function r(e,t,n){if(!s(n))return!1;var r=typeof t;return!!("number"==r?a(n)&&i(t,n.length):"string"==r&&t in n)&&o(n[t],e)}var o=n("22B7"),a=n("bGc4"),i=n("ZGh9"),s=n("yCNF");e.exports=r},zFGm:function(e,t,n){"use strict";t.__esModule=!0,t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getConfirmation=function(e,t){return t(window.confirm(e))},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history},t.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},zGZ6:function(e,t,n){function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(a);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(r.Cache||o),n}var o=n("YeCl"),a="Expected a function";r.Cache=o,e.exports=r},zMcl:function(e,t,n){"use strict";function r(e){return Object.keys(e).forEach(function(t){return e[t]=t}),e}function o(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n}function a(e){var t=e;t.nativeEvent&&(t=t.nativeEvent);var n=t.touches,r=t.changedTouches,o=n&&n.length>0,a=r&&r.length>0;return!o&&a?r[0]:o?n[0]:t}function i(){return Date.now()-R>=j}var s=n("Dd8w"),u=n.n(s),c=n("Zrlr"),l=n.n(c),f=n("wxAW"),p=n.n(f),d=n("zwoO"),h=n.n(d),m=n("Pf15"),v=n.n(m),y=n("Jmof"),b=n.n(y),g=n("wLXD"),_=n.n(g),E=n("fpbq"),w=r({NOT_RESPONDER:null,RESPONDER_INACTIVE_PRESS_IN:null,RESPONDER_INACTIVE_PRESS_OUT:null,RESPONDER_ACTIVE_PRESS_IN:null,RESPONDER_ACTIVE_PRESS_OUT:null,RESPONDER_ACTIVE_LONG_PRESS_IN:null,RESPONDER_ACTIVE_LONG_PRESS_OUT:null,ERROR:null}),O={RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0},P={RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0},x={RESPONDER_ACTIVE_LONG_PRESS_IN:!0},S=r({DELAY:null,RESPONDER_GRANT:null,RESPONDER_RELEASE:null,RESPONDER_TERMINATED:null,ENTER_PRESS_RECT:null,LEAVE_PRESS_RECT:null,LONG_PRESS_DETECTED:null}),C={NOT_RESPONDER:{DELAY:w.ERROR,RESPONDER_GRANT:w.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:w.ERROR,RESPONDER_TERMINATED:w.ERROR,ENTER_PRESS_RECT:w.ERROR,LEAVE_PRESS_RECT:w.ERROR,LONG_PRESS_DETECTED:w.ERROR},RESPONDER_INACTIVE_PRESS_IN:{DELAY:w.RESPONDER_ACTIVE_PRESS_IN,RESPONDER_GRANT:w.ERROR,RESPONDER_RELEASE:w.NOT_RESPONDER,RESPONDER_TERMINATED:w.NOT_RESPONDER,ENTER_PRESS_RECT:w.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:w.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:w.ERROR},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:w.RESPONDER_ACTIVE_PRESS_OUT,RESPONDER_GRANT:w.ERROR,RESPONDER_RELEASE:w.NOT_RESPONDER,RESPONDER_TERMINATED:w.NOT_RESPONDER,ENTER_PRESS_RECT:w.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:w.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:w.ERROR},RESPONDER_ACTIVE_PRESS_IN:{DELAY:w.ERROR,RESPONDER_GRANT:w.ERROR,RESPONDER_RELEASE:w.NOT_RESPONDER,RESPONDER_TERMINATED:w.NOT_RESPONDER,ENTER_PRESS_RECT:w.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:w.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:w.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:w.ERROR,RESPONDER_GRANT:w.ERROR,RESPONDER_RELEASE:w.NOT_RESPONDER,RESPONDER_TERMINATED:w.NOT_RESPONDER,ENTER_PRESS_RECT:w.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:w.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:w.ERROR},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:w.ERROR,RESPONDER_GRANT:w.ERROR,RESPONDER_RELEASE:w.NOT_RESPONDER,RESPONDER_TERMINATED:w.NOT_RESPONDER,ENTER_PRESS_RECT:w.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:w.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:w.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:w.ERROR,RESPONDER_GRANT:w.ERROR,RESPONDER_RELEASE:w.NOT_RESPONDER,RESPONDER_TERMINATED:w.NOT_RESPONDER,ENTER_PRESS_RECT:w.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:w.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:w.ERROR},error:{DELAY:w.NOT_RESPONDER,RESPONDER_GRANT:w.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:w.NOT_RESPONDER,RESPONDER_TERMINATED:w.NOT_RESPONDER,ENTER_PRESS_RECT:w.NOT_RESPONDER,LEAVE_PRESS_RECT:w.NOT_RESPONDER,LONG_PRESS_DETECTED:w.NOT_RESPONDER}},k=10,R=0,j=200,T=function(e){function t(){l()(this,t);var e=h()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={active:!1},e.onTouchStart=function(t){e.callChildEvent("onTouchStart",t),e.lockMouse=!0,e.releaseLockTimer&&clearTimeout(e.releaseLockTimer),e.touchableHandleResponderGrant(t.nativeEvent)},e.onTouchMove=function(t){e.callChildEvent("onTouchMove",t),e.touchableHandleResponderMove(t.nativeEvent)},e.onTouchEnd=function(t){e.callChildEvent("onTouchEnd",t),e.releaseLockTimer=setTimeout(function(){e.lockMouse=!1},300),e.touchableHandleResponderRelease(new E.a(t.nativeEvent))},e.onTouchCancel=function(t){e.callChildEvent("onTouchCancel",t),e.releaseLockTimer=setTimeout(function(){e.lockMouse=!1},300),e.touchableHandleResponderTerminate(t.nativeEvent)},e.onMouseDown=function(t){e.callChildEvent("onMouseDown",t),e.lockMouse||(e.touchableHandleResponderGrant(t.nativeEvent),document.addEventListener("mousemove",e.touchableHandleResponderMove,!1),document.addEventListener("mouseup",e.onMouseUp,!1))},e.onMouseUp=function(t){document.removeEventListener("mousemove",e.touchableHandleResponderMove,!1),document.removeEventListener("mouseup",e.onMouseUp,!1),e.touchableHandleResponderRelease(new E.a(t))},e.touchableHandleResponderMove=function(t){if(e.touchable.startMouse&&e.touchable.dimensionsOnActivate&&e.touchable.touchState!==w.NOT_RESPONDER&&e.touchable.touchState!==w.RESPONDER_INACTIVE_PRESS_IN){var n=a(t),r=n&&n.pageX,o=n&&n.pageY;e.pressInLocation&&e._getDistanceBetweenPoints(r,o,e.pressInLocation.pageX,e.pressInLocation.pageY)>k&&e._cancelLongPressDelayTimeout(),e.checkTouchWithinActive(t)?(e._receiveSignal(S.ENTER_PRESS_RECT,t),e.touchable.touchState===w.RESPONDER_INACTIVE_PRESS_IN&&e._cancelLongPressDelayTimeout()):(e._cancelLongPressDelayTimeout(),e._receiveSignal(S.LEAVE_PRESS_RECT,t))}},e}return v()(t,e),p()(t,[{key:"componentWillMount",value:function(){this.touchable={touchState:void 0}}},{key:"componentDidMount",value:function(){this.root=_.a.findDOMNode(this)}},{key:"componentDidUpdate",value:function(){this.root=_.a.findDOMNode(this),this.props.disabled&&this.state.active&&this.setState({active:!1})}},{key:"componentWillUnmount",value:function(){this.releaseLockTimer&&clearTimeout(this.releaseLockTimer),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout)}},{key:"callChildEvent",value:function(e,t){var n=b.a.Children.only(this.props.children).props[e];n&&n(t)}},{key:"_remeasureMetricsOnInit",value:function(e){var t=this.root,n=a(e),r=t.getBoundingClientRect();this.touchable={touchState:this.touchable.touchState,startMouse:{pageX:n.pageX,pageY:n.pageY},positionOnGrant:{left:r.left+window.pageXOffset,top:r.top+window.pageYOffset,width:r.width,height:r.height,clientLeft:r.left,clientTop:r.top}}}},{key:"touchableHandleResponderGrant",value:function(e){var t=this;if(this.touchable.touchState=w.NOT_RESPONDER,this.pressOutDelayTimeout&&(clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null),!this.props.fixClickPenetration||i()){this._remeasureMetricsOnInit(e),this._receiveSignal(S.RESPONDER_GRANT,e);var n=this.props,r=n.delayPressIn,o=n.delayLongPress;r?this.touchableDelayTimeout=setTimeout(function(){t._handleDelay(e)},r):this._handleDelay(e);var a=new E.a(e);this.longPressDelayTimeout=setTimeout(function(){t._handleLongDelay(a)},o+r)}}},{key:"checkScroll",value:function(e){var t=this.touchable.positionOnGrant,n=this.root.getBoundingClientRect();if(n.left!==t.clientLeft||n.top!==t.clientTop)return this._receiveSignal(S.RESPONDER_TERMINATED,e),!1}},{key:"touchableHandleResponderRelease",value:function(e){if(this.touchable.startMouse){var t=a(e);if(Math.abs(t.pageX-this.touchable.startMouse.pageX)>30||Math.abs(t.pageY-this.touchable.startMouse.pageY)>30)return void this._receiveSignal(S.RESPONDER_TERMINATED,e);!1!==this.checkScroll(e)&&this._receiveSignal(S.RESPONDER_RELEASE,e)}}},{key:"touchableHandleResponderTerminate",value:function(e){this.touchable.startMouse&&this._receiveSignal(S.RESPONDER_TERMINATED,e)}},{key:"checkTouchWithinActive",value:function(e){var t=this.touchable.positionOnGrant,n=this.props,r=n.pressRetentionOffset,o=void 0===r?{}:r,i=n.hitSlop,s=o.left,u=o.top,c=o.right,l=o.bottom;i&&(s+=i.left,u+=i.top,c+=i.right,l+=i.bottom);var f=a(e),p=f&&f.pageX,d=f&&f.pageY;return p>t.left-s&&d>t.top-u&&p<t.left+t.width+c&&d<t.top+t.height+l}},{key:"callProp",value:function(e,t){this.props[e]&&!this.props.disabled&&this.props[e](t)}},{key:"touchableHandleActivePressIn",value:function(e){this.setActive(!0),this.callProp("onPressIn",e)}},{key:"touchableHandleActivePressOut",value:function(e){this.setActive(!1),this.callProp("onPressOut",e)}},{key:"touchableHandlePress",value:function(e){Object(E.b)(e)&&this.callProp("onPress",e),R=Date.now()}},{key:"touchableHandleLongPress",value:function(e){Object(E.b)(e)&&this.callProp("onLongPress",e)}},{key:"setActive",value:function(e){(this.props.activeClassName||this.props.activeStyle)&&this.setState({active:e})}},{key:"_remeasureMetricsOnActivation",value:function(){this.touchable.dimensionsOnActivate=this.touchable.positionOnGrant}},{key:"_handleDelay",value:function(e){this.touchableDelayTimeout=null,this._receiveSignal(S.DELAY,e)}},{key:"_handleLongDelay",value:function(e){this.longPressDelayTimeout=null;var t=this.touchable.touchState;t!==w.RESPONDER_ACTIVE_PRESS_IN&&t!==w.RESPONDER_ACTIVE_LONG_PRESS_IN?console.error("Attempted to transition from state `"+t+"` to `"+w.RESPONDER_ACTIVE_LONG_PRESS_IN+"`, which is not supported. This is most likely due to `Touchable.longPressDelayTimeout` not being cancelled."):this._receiveSignal(S.LONG_PRESS_DETECTED,e)}},{key:"_receiveSignal",value:function(e,t){var n=this.touchable.touchState,r=C[n]&&C[n][e];r&&r!==w.ERROR&&n!==r&&(this._performSideEffectsForTransition(n,r,e,t),this.touchable.touchState=r)}},{key:"_cancelLongPressDelayTimeout",value:function(){this.longPressDelayTimeout&&(clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null)}},{key:"_isHighlight",value:function(e){return e===w.RESPONDER_ACTIVE_PRESS_IN||e===w.RESPONDER_ACTIVE_LONG_PRESS_IN}},{key:"_savePressInLocation",value:function(e){var t=a(e),n=t&&t.pageX,r=t&&t.pageY;this.pressInLocation={pageX:n,pageY:r}}},{key:"_getDistanceBetweenPoints",value:function(e,t,n,r){var o=e-n,a=t-r;return Math.sqrt(o*o+a*a)}},{key:"_performSideEffectsForTransition",value:function(e,t,n,r){var o=this._isHighlight(e),a=this._isHighlight(t);if((n===S.RESPONDER_TERMINATED||n===S.RESPONDER_RELEASE)&&this._cancelLongPressDelayTimeout(),!O[e]&&O[t]&&this._remeasureMetricsOnActivation(),P[e]&&n===S.LONG_PRESS_DETECTED&&this.touchableHandleLongPress(r),a&&!o?this._startHighlight(r):!a&&o&&this._endHighlight(r),P[e]&&n===S.RESPONDER_RELEASE){var i=!!this.props.onLongPress,s=x[e]&&(!i||!this.props.longPressCancelsPress);(!x[e]||s)&&(a||o||(this._startHighlight(r),this._endHighlight(r)),this.touchableHandlePress(r))}this.touchableDelayTimeout&&(clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null)}},{key:"_startHighlight",value:function(e){this._savePressInLocation(e),this.touchableHandleActivePressIn(e)}},{key:"_endHighlight",value:function(e){var t=this;this.props.delayPressOut?this.pressOutDelayTimeout=setTimeout(function(){t.touchableHandleActivePressOut(e)},this.props.delayPressOut):this.touchableHandleActivePressOut(e)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.disabled,r=e.activeStyle,a=e.activeClassName,i=n?void 0:o(this,["onTouchStart","onTouchMove","onTouchEnd","onTouchCancel","onMouseDown"]),s=b.a.Children.only(t);if(!n&&this.state.active){var c=s.props,l=c.style,f=c.className;return r&&(l=u()({},l,r)),a&&(f?f+=" "+a:f=a),b.a.cloneElement(s,u()({className:f,style:l},i))}return b.a.cloneElement(s,i)}}]),t}(b.a.Component);t.a=T,T.defaultProps={fixClickPenetration:!1,disabled:!1,delayPressIn:130,delayLongPress:370,delayPressOut:100,pressRetentionOffset:{left:20,right:20,top:20,bottom:20},hitSlop:void 0,longPressCancelsPress:!0}},zNjz:function(e,t){e.exports=dllBundle_cda1536466cea710ed06},zTU1:function(e,t,n){"use strict";var r={topLeft:{points:["bl","tl"],offset:[0,-4]},topCenter:{points:["bc","tc"],offset:[0,-4]},topRight:{points:["br","tr"],offset:[0,-4]},bottomLeft:{points:["tl","bl"],offset:[0,4]},bottomCenter:{points:["tc","bc"],offset:[0,4]},bottomRight:{points:["tr","br"],offset:[0,4]}};t.a=r},zbwT:function(e,t){e.exports={ThemePicker:"_15yckqK",ThemePicker__palette:"T556HjM",ThemePicker__colorGrid:"dVWBjnf",theme__tag:"KrSoLNx"}},zmx7:function(e,t,n){e.exports=n("zNjz")(410)},zpMW:function(e,t,n){"use strict";n.d(t,"b",function(){return b}),n.d(t,"a",function(){return g});var r=n("Jmof"),o=n.n(r),a=n("sgb3"),i=(n.n(a),n("OCGy")),s=(n.n(i),n("Fvgr")),u=(n.n(s),n("2MIV")),c=(n.n(u),"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}),l=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=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)},d=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},h=function(e,t,n,r,a){if(!e&&t)return n(a?f({},r,{children:a}):r);var i=n;return a?o.a.createElement(i,r,a):o.a.createElement(i,r)},m=function(e){return Boolean(e&&e.prototype&&"object"===c(e.prototype.isReactComponent))},v=function(e){return Boolean(!("function"!=typeof e||m(e)||e.defaultProps||e.contextTypes))},y=function(e){var t=v(e);return function(n,r){return h(!1,t,e,n,r)}},b=function(e){return function(t){var n=y(t);return function(t){return n(e(t))}}},g=(Object.keys,function(e){function t(){return l(this,t),d(this,e.apply(this,arguments))}p(t,e),t.prototype.render=function(){return null}}(r.Component),function(e){return function(t){var n=y(t),o=function(e){function t(){return l(this,t),d(this,e.apply(this,arguments))}return p(t,e),t.prototype.render=function(){return n(f({},this.props,this.state))},t}(r.Component);return Object.keys(e).forEach(function(t){return o.prototype[t]=e[t]}),o}})},zpVT:function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!a||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(r)}return n.set(e,t),this.size=n.size,this}var o=n("duB3"),a=n("POb3"),i=n("YeCl"),s=200;e.exports=r},zwoO:function(e,t,n){"use strict";t.__esModule=!0;var r=n("pFYg"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},zyKz:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},zzRL:function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},zznV:function(e,t,n){"use strict";var r=n("JJqH");n.d(t,"a",function(){return r.a})}}); //# sourceMappingURL=site.212e90d3e72b9f472773.js.map
44,957.666667
385,547
0.694018
683d6c730741c73397b742dc60ffd5a09f75fa2d
14,455
js
JavaScript
wp-content/plugins/radio-buttons-for-taxonomies/js/src/radio-term-selector.js
shaharcoh/wp-docker
23bc1d67ea7d7e08e03547a3b2e5215261823c35
[ "MIT" ]
null
null
null
wp-content/plugins/radio-buttons-for-taxonomies/js/src/radio-term-selector.js
shaharcoh/wp-docker
23bc1d67ea7d7e08e03547a3b2e5215261823c35
[ "MIT" ]
null
null
null
wp-content/plugins/radio-buttons-for-taxonomies/js/src/radio-term-selector.js
shaharcoh/wp-docker
23bc1d67ea7d7e08e03547a3b2e5215261823c35
[ "MIT" ]
null
null
null
/* * Modified version of https://github.com/WordPress/gutenberg/blob/master/packages/editor/src/components/post-taxonomies/hierarchical-term-selector.js */ /** * External dependencies */ import { get, unescape as unescapeString, without, find, some, invoke } from 'lodash'; /** * WordPress dependencies */ import { __, _x, _n, sprintf } from '@wordpress/i18n'; import { Component } from '@wordpress/element'; import { TreeSelect, withSpokenMessages, withFilters, Button } from '@wordpress/components'; import { withSelect, withDispatch } from '@wordpress/data'; import { withInstanceId, compose } from '@wordpress/compose'; import apiFetch from '@wordpress/api-fetch'; import { addQueryArgs } from '@wordpress/url'; /** * Internal dependencies */ import { buildTermsTree } from './terms'; /** * Module Constants */ const DEFAULT_QUERY = { per_page: -1, orderby: 'name', order: 'asc', _fields: 'id,name,parent', }; const MIN_TERMS_COUNT_FOR_FILTER = 8; class RadioTermSelector extends Component { constructor() { super( ...arguments ); this.findTerm = this.findTerm.bind( this ); this.onChange = this.onChange.bind( this ); this.onChangeFormName = this.onChangeFormName.bind( this ); this.onChangeFormParent = this.onChangeFormParent.bind( this ); this.onAddTerm = this.onAddTerm.bind( this ); this.onToggleForm = this.onToggleForm.bind( this ); this.setFilterValue = this.setFilterValue.bind( this ); this.sortBySelected = this.sortBySelected.bind( this ); this.state = { loading: true, availableTermsTree: [], availableTerms: [], adding: false, formName: '', formParent: '', showForm: false, filterValue: '', filteredTermsTree: [], }; } onChange( event ) { // @helgatheviking const { onUpdateTerms, taxonomy } = this.props; const termId = parseInt( event.target.value, 10 ); onUpdateTerms( [ termId ], taxonomy.rest_base ); } onChangeFormName( event ) { const newValue = event.target.value.trim() === '' ? '' : event.target.value; this.setState( { formName: newValue } ); } onChangeFormParent( newParent ) { this.setState( { formParent: newParent } ); } onToggleForm() { this.setState( ( state ) => ( { showForm: ! state.showForm, } ) ); } findTerm( terms, parent, name ) { return find( terms, ( term ) => { return ( ( ! term.parent && ! parent ) || parseInt( term.parent ) === parseInt( parent ) ) && term.name.toLowerCase() === name.toLowerCase(); } ); } onAddTerm( event ) { event.preventDefault(); const { onUpdateTerms, taxonomy, terms, slug } = this.props; const { formName, formParent, adding, availableTerms } = this.state; if ( formName === '' || adding ) { return; } // check if the term we are adding already exists const existingTerm = this.findTerm( availableTerms, formParent, formName ); if ( existingTerm ) { // if the term we are adding exists but is not selected select it if ( ! some( terms, ( term ) => term === existingTerm.id ) ) { onUpdateTerms( [ existingTerm.id ], taxonomy.rest_base ); // @helgatheviking } this.setState( { formName: '', formParent: '', } ); return; } this.setState( { adding: true, } ); this.addRequest = apiFetch( { path: `/wp/v2/${ taxonomy.rest_base }`, method: 'POST', data: { name: formName, parent: formParent ? formParent : undefined, }, } ); // Tries to create a term or fetch it if it already exists const findOrCreatePromise = this.addRequest .catch( ( error ) => { const errorCode = error.code; if ( errorCode === 'term_exists' ) { // search the new category created since last fetch this.addRequest = apiFetch( { path: addQueryArgs( `/wp/v2/${ taxonomy.rest_base }`, { ...DEFAULT_QUERY, parent: formParent || 0, search: formName } ), } ); return this.addRequest .then( ( searchResult ) => { return this.findTerm( searchResult, formParent, formName ); } ); } return Promise.reject( error ); } ); findOrCreatePromise .then( ( term ) => { const hasTerm = !! find( this.state.availableTerms, ( availableTerm ) => availableTerm.id === term.id ); const newAvailableTerms = hasTerm ? this.state.availableTerms : [ term, ...this.state.availableTerms ]; const termAddedMessage = sprintf( _x( '%s added', 'term' ), get( this.props.taxonomy, [ 'labels', 'singular_name' ], slug === 'category' ? __( 'Category' ) : __( 'Term' ) ) ); this.props.speak( termAddedMessage, 'assertive' ); this.addRequest = null; this.setState( { adding: false, formName: '', formParent: '', availableTerms: newAvailableTerms, availableTermsTree: this.sortBySelected( buildTermsTree( newAvailableTerms ) ), } ); onUpdateTerms( [ term.id ], taxonomy.rest_base ); // @helgatheviking }, ( xhr ) => { if ( xhr.statusText === 'abort' ) { return; } this.addRequest = null; this.setState( { adding: false, } ); } ); } componentDidMount() { this.fetchTerms(); } componentWillUnmount() { invoke( this.fetchRequest, [ 'abort' ] ); invoke( this.addRequest, [ 'abort' ] ); } componentDidUpdate( prevProps ) { if ( this.props.taxonomy !== prevProps.taxonomy ) { this.fetchTerms(); } } fetchTerms() { const { taxonomy } = this.props; if ( ! taxonomy ) { return; } this.fetchRequest = apiFetch( { path: addQueryArgs( `/wp/v2/${ taxonomy.rest_base }`, DEFAULT_QUERY ), } ); this.fetchRequest.then( ( terms ) => { // resolve const availableTermsTree = this.sortBySelected( buildTermsTree( terms ) ); this.fetchRequest = null; this.setState( { loading: false, availableTermsTree, availableTerms: terms, } ); }, ( xhr ) => { // reject if ( xhr.statusText === 'abort' ) { return; } this.fetchRequest = null; this.setState( { loading: false, } ); } ); } sortBySelected( termsTree ) { const { terms } = this.props; const treeHasSelection = ( termTree ) => { if ( terms.indexOf( termTree.id ) !== -1 ) { return true; } if ( undefined === termTree.children ) { return false; } const anyChildIsSelected = termTree.children.map( treeHasSelection ).filter( ( child ) => child ).length > 0; if ( anyChildIsSelected ) { return true; } return false; }; const termOrChildIsSelected = ( termA, termB ) => { const termASelected = treeHasSelection( termA ); const termBSelected = treeHasSelection( termB ); if ( termASelected === termBSelected ) { return 0; } if ( termASelected && ! termBSelected ) { return -1; } if ( ! termASelected && termBSelected ) { return 1; } return 0; }; termsTree.sort( termOrChildIsSelected ); return termsTree; } setFilterValue( event ) { const { availableTermsTree } = this.state; const filterValue = event.target.value; const filteredTermsTree = availableTermsTree.map( this.getFilterMatcher( filterValue ) ).filter( ( term ) => term ); const getResultCount = ( terms ) => { let count = 0; for ( let i = 0; i < terms.length; i++ ) { count++; if ( undefined !== terms[ i ].children ) { count += getResultCount( terms[ i ].children ); } } return count; }; this.setState( { filterValue, filteredTermsTree, } ); const resultCount = getResultCount( filteredTermsTree ); const resultsFoundMessage = sprintf( _n( '%d result found.', '%d results found.', resultCount ), resultCount ); this.props.debouncedSpeak( resultsFoundMessage, 'assertive' ); } getFilterMatcher( filterValue ) { const matchTermsForFilter = ( originalTerm ) => { if ( '' === filterValue ) { return originalTerm; } // Shallow clone, because we'll be filtering the term's children and // don't want to modify the original term. const term = { ...originalTerm }; // Map and filter the children, recursive so we deal with grandchildren // and any deeper levels. if ( term.children.length > 0 ) { term.children = term.children.map( matchTermsForFilter ).filter( ( child ) => child ); } // If the term's name contains the filterValue, or it has children // (i.e. some child matched at some point in the tree) then return it. if ( -1 !== term.name.toLowerCase().indexOf( filterValue.toLowerCase() ) || term.children.length > 0 ) { return term; } // Otherwise, return false. After mapping, the list of terms will need // to have false values filtered out. return false; }; return matchTermsForFilter; } renderTerms( renderedTerms ) { const { terms = [], taxonomy } = this.props; // @helgatheviking const klass = taxonomy.hierarchical ? 'hierarchical' : 'non-hierarchical'; // @helgatheviking return renderedTerms.map( ( term ) => { const id = `editor-post-taxonomies-${ klass }-term-${ term.id }`; // @helgatheviking return ( <div key={ term.id } className={ 'editor-post-taxonomies__' + klass + '-terms-choice ' }> <input id={ id } className={ 'editor-post-taxonomies__' + klass + '-terms-input ' } type="radio" // @helgatheviking checked={ terms.indexOf( term.id ) !== -1 } value={ term.id } onChange={ this.onChange } name={ 'radio_tax_input-' + this.props.slug } // @helgatheviking /> <label htmlFor={ id }>{ unescapeString( term.name ) }</label> { !! term.children.length && ( <div className={ 'editor-post-taxonomies__' + klass + '-terms-subchoices ' }> { this.renderTerms( term.children ) } </div> ) } </div> ); } ); } render() { const { slug, taxonomy, instanceId, hasCreateAction, hasAssignAction } = this.props; const klass = taxonomy.hierarchical ? 'hierarchical' : 'non-hierarchical'; // @helgatheviking if ( ! hasAssignAction ) { return null; } const { availableTermsTree, availableTerms, filteredTermsTree, formName, formParent, loading, showForm, filterValue } = this.state; const labelWithFallback = ( labelProperty, fallbackIsCategory, fallbackIsNotCategory ) => get( taxonomy, [ 'labels', labelProperty ], slug === 'category' ? fallbackIsCategory : fallbackIsNotCategory ); const newTermButtonLabel = labelWithFallback( 'add_new_item', __( 'Add new category' ), __( 'Add new term' ) ); const newTermLabel = labelWithFallback( 'new_item_name', __( 'Add new category' ), __( 'Add new term' ) ); const parentSelectLabel = labelWithFallback( 'parent_item', __( 'Parent Category' ), __( 'Parent Term' ) ); const noParentOption = `— ${ parentSelectLabel } —`; const newTermSubmitLabel = newTermButtonLabel; const inputId = `editor-post-taxonomies__${ klass }-terms-input-${ instanceId }`; // @helgatheviking const filterInputId = `editor-post-taxonomies__${ klass }-terms-filter-${ instanceId }`; // @helgatheviking const filterLabel = get( this.props.taxonomy, [ 'labels', 'search_items' ], __( 'Search Terms' ) ); const groupLabel = get( this.props.taxonomy, [ 'name' ], __( 'Terms' ) ); const showFilter = availableTerms.length >= MIN_TERMS_COUNT_FOR_FILTER; return [ showFilter && <label key="filter-label" htmlFor={ filterInputId }> { filterLabel } </label>, showFilter && <input type="search" id={ filterInputId } value={ filterValue } onChange={ this.setFilterValue } className="editor-post-taxonomies__hierarchical-terms-filter" key="term-filter-input" />, <div className="editor-post-taxonomies__hierarchical-terms-list" key="term-list" tabIndex="0" role="group" aria-label={ groupLabel } > { this.renderTerms( '' !== filterValue ? filteredTermsTree : availableTermsTree ) } </div>, ! loading && hasCreateAction && ( <Button key="term-add-button" onClick={ this.onToggleForm } className="editor-post-taxonomies__hierarchical-terms-add" aria-expanded={ showForm } isLink > { newTermButtonLabel } </Button> ), showForm && ( <form onSubmit={ this.onAddTerm } key={ klass + '-terms-form' }> <label htmlFor={ inputId } className="editor-post-taxonomies__hierarchical-terms-label" > { newTermLabel } </label> <input type="text" id={ inputId } className="editor-post-taxonomies__hierarchical-terms-input" value={ formName } onChange={ this.onChangeFormName } required /> { taxonomy.hierarchical && !! availableTerms.length && // @helgatheviking <TreeSelect label={ parentSelectLabel } noOptionLabel={ noParentOption } onChange={ this.onChangeFormParent } selectedId={ formParent } tree={ availableTermsTree } /> } <Button isSecondary type="submit" className="editor-post-taxonomies__hierarchical-terms-submit" > { newTermSubmitLabel } </Button> </form> ), ]; } } export default compose( [ withSelect( ( select, { slug } ) => { const { getCurrentPost } = select( 'core/editor' ); const { getTaxonomy } = select( 'core' ); const taxonomy = getTaxonomy( slug ); return { hasCreateAction: taxonomy ? get( getCurrentPost(), [ '_links', 'wp:action-create-' + taxonomy.rest_base ], false ) : false, hasAssignAction: taxonomy ? get( getCurrentPost(), [ '_links', 'wp:action-assign-' + taxonomy.rest_base ], false ) : false, terms: taxonomy ? select( 'core/editor' ).getEditedPostAttribute( taxonomy.rest_base ) : [], taxonomy, }; } ), withDispatch( ( dispatch ) => ( { onUpdateTerms( terms, restBase ) { dispatch( 'core/editor' ).editPost( { [ restBase ]: terms } ); }, } ) ), withSpokenMessages, withInstanceId, //withFilters( 'editor.PostTaxonomyType' ), // Intentionally commented out. ] )( RadioTermSelector );
29.989627
151
0.614528
683f4c388085c24c8643f2c387898e8783205498
108
js
JavaScript
src/utils/formatJson.js
GuillaumeAmat/knuckle
4cb08205600084859c67116eb2ea8bc40f467492
[ "MIT" ]
18
2018-03-03T09:36:30.000Z
2021-11-14T20:22:14.000Z
src/utils/formatJson.js
GuillaumeAmat/knuckle
4cb08205600084859c67116eb2ea8bc40f467492
[ "MIT" ]
33
2018-03-14T17:24:36.000Z
2021-09-01T22:49:46.000Z
src/utils/formatJson.js
GuillaumeAmat/knuckle
4cb08205600084859c67116eb2ea8bc40f467492
[ "MIT" ]
null
null
null
function formatJson(object) { return JSON.stringify(object, null, 2); } module.exports = { formatJson };
18
41
0.712963
68402cd3855408cecc17e2c2da3b924f74c8187e
15,498
js
JavaScript
src/assets/js/rtc.js
rachitGulati/Video-Call-App-NodeJS
32561624c51b8a74f98cc32c822b626fbceb4358
[ "MIT" ]
1
2021-10-06T01:46:01.000Z
2021-10-06T01:46:01.000Z
src/assets/js/rtc.js
bhu1oja/Video-Call-App-NodeJS
8c3c88d44997044e1b6db0d3861229bf284c019d
[ "MIT" ]
null
null
null
src/assets/js/rtc.js
bhu1oja/Video-Call-App-NodeJS
8c3c88d44997044e1b6db0d3861229bf284c019d
[ "MIT" ]
null
null
null
/** * @author Amir Sanni <amirsanni@gmail.com> * @date 6th January, 2020 */ import h from './helpers.js'; window.addEventListener('load', ()=>{ const room = h.getQString(location.href, 'room'); const username = sessionStorage.getItem('username'); if(!room){ document.querySelector('#room-create').attributes.removeNamedItem('hidden'); } else if(!username){ document.querySelector('#username-set').attributes.removeNamedItem('hidden'); } else{ let commElem = document.getElementsByClassName('room-comm'); for(let i = 0; i < commElem.length; i++){ commElem[i].attributes.removeNamedItem('hidden'); } var pc = []; let socket = io('/stream'); var socketId = ''; var myStream = ''; var screen = ''; var recordedStream = []; var mediaRecorder = ''; //Get user video by default getAndSetUserStream(); socket.on('connect', ()=>{ //set socketId socketId = socket.io.engine.id; socket.emit('subscribe', { room: room, socketId: socketId }); socket.on('new user', (data)=>{ socket.emit('newUserStart', {to:data.socketId, sender:socketId}); pc.push(data.socketId); init(true, data.socketId); }); socket.on('newUserStart', (data)=>{ pc.push(data.sender); init(false, data.sender); }); socket.on('ice candidates', async (data)=>{ data.candidate ? await pc[data.sender].addIceCandidate(new RTCIceCandidate(data.candidate)) : ''; }); socket.on('sdp', async (data)=>{ if(data.description.type === 'offer'){ data.description ? await pc[data.sender].setRemoteDescription(new RTCSessionDescription(data.description)) : ''; h.getUserFullMedia().then(async (stream)=>{ if(!document.getElementById('local').srcObject){ h.setLocalStream(stream); } //save my stream myStream = stream; stream.getTracks().forEach((track)=>{ pc[data.sender].addTrack(track, stream); }); let answer = await pc[data.sender].createAnswer(); await pc[data.sender].setLocalDescription(answer); socket.emit('sdp', {description:pc[data.sender].localDescription, to:data.sender, sender:socketId}); }).catch((e)=>{ console.error(e); }); } else if(data.description.type === 'answer'){ await pc[data.sender].setRemoteDescription(new RTCSessionDescription(data.description)); } }); socket.on('chat', (data)=>{ h.addChat(data, 'remote'); }) }); function getAndSetUserStream(){ h.getUserFullMedia().then((stream)=>{ //save my stream myStream = stream; h.setLocalStream(stream); }).catch((e)=>{ console.error(`stream error: ${e}`); }); } function sendMsg(msg){ let data = { room: room, msg: msg, sender: username }; //emit chat message socket.emit('chat', data); //add localchat h.addChat(data, 'local'); } function init(createOffer, partnerName){ pc[partnerName] = new RTCPeerConnection(h.getIceServer()); if(screen && screen.getTracks().length){ screen.getTracks().forEach((track)=>{ pc[partnerName].addTrack(track, screen);//should trigger negotiationneeded event }); } else if(myStream){ myStream.getTracks().forEach((track)=>{ pc[partnerName].addTrack(track, myStream);//should trigger negotiationneeded event }); } else{ h.getUserFullMedia().then((stream)=>{ //save my stream myStream = stream; stream.getTracks().forEach((track)=>{ pc[partnerName].addTrack(track, stream);//should trigger negotiationneeded event }); h.setLocalStream(stream); }).catch((e)=>{ console.error(`stream error: ${e}`); }); } //create offer if(createOffer){ pc[partnerName].onnegotiationneeded = async ()=>{ let offer = await pc[partnerName].createOffer(); await pc[partnerName].setLocalDescription(offer); socket.emit('sdp', {description:pc[partnerName].localDescription, to:partnerName, sender:socketId}); }; } //send ice candidate to partnerNames pc[partnerName].onicecandidate = ({candidate})=>{ socket.emit('ice candidates', {candidate: candidate, to:partnerName, sender:socketId}); }; //add pc[partnerName].ontrack = (e)=>{ let str = e.streams[0]; if(document.getElementById(`${partnerName}-video`)){ document.getElementById(`${partnerName}-video`).srcObject = str; } else{ //video elem let newVid = document.createElement('video'); newVid.id = `${partnerName}-video`; newVid.srcObject = str; newVid.autoplay = true; newVid.className = 'remote-video'; //video controls elements let controlDiv = document.createElement('div'); controlDiv.className = 'remote-video-controls'; controlDiv.innerHTML = `<i class="fa fa-microphone text-white pr-3 mute-remote-mic" title="Mute"></i> <i class="fa fa-expand text-white expand-remote-video" title="Expand"></i>`; //create a new div for card let cardDiv = document.createElement('div'); cardDiv.className = 'card mb-3'; cardDiv.appendChild(newVid); cardDiv.appendChild(controlDiv); //create a new div for everything let div = document.createElement('div'); div.className = 'col-sm-12 col-md-6'; div.id = partnerName; div.appendChild(cardDiv); //put div in videos elem document.getElementById('videos').appendChild(div); } }; pc[partnerName].onconnectionstatechange = (d)=>{ switch(pc[partnerName].iceConnectionState){ case 'disconnected': case 'failed': h.closeVideo(partnerName); break; case 'closed': h.closeVideo(partnerName); break; } }; pc[partnerName].onsignalingstatechange = (d)=>{ switch(pc[partnerName].signalingState){ case 'closed': console.log("Signalling state is 'closed'"); h.closeVideo(partnerName); break; } }; } function shareScreen(){ h.shareScreen().then((stream)=>{ h.toggleShareIcons(true); //disable the video toggle btns while sharing screen. This is to ensure clicking on the btn does not interfere with the screen sharing //It will be enabled was user stopped sharing screen h.toggleVideoBtnDisabled(true); //save my screen stream screen = stream; //share the new stream with all partners broadcastNewTracks(stream, 'video', false); //When the stop sharing button shown by the browser is clicked screen.getVideoTracks()[0].addEventListener('ended', ()=>{ stopSharingScreen(); }); }).catch((e)=>{ console.error(e); }); } function stopSharingScreen(){ //enable video toggle btn h.toggleVideoBtnDisabled(false); return new Promise((res, rej)=>{ screen.getTracks().length ? screen.getTracks().forEach(track => track.stop()) : ''; res(); }).then(()=>{ h.toggleShareIcons(false); broadcastNewTracks(myStream, 'video'); }).catch((e)=>{ console.error(e); }); } function broadcastNewTracks(stream, type, mirrorMode=true){ h.setLocalStream(stream, mirrorMode); let track = type == 'audio' ? stream.getAudioTracks()[0] : stream.getVideoTracks()[0]; for(let p in pc){ let pName = pc[p]; if(typeof pc[pName] == 'object'){ h.replaceTrack(track, pc[pName]); } } } function toggleRecordingIcons(isRecording){ let e = document.getElementById('record'); if(isRecording){ e.setAttribute('title', 'Stop recording'); e.children[0].classList.add('text-danger'); e.children[0].classList.remove('text-white'); } else{ e.setAttribute('title', 'Record'); e.children[0].classList.add('text-white'); e.children[0].classList.remove('text-danger'); } } function startRecording(stream){ mediaRecorder = new MediaRecorder(stream, { mimeType: 'video/webm;codecs=vp9' }); mediaRecorder.start(1000); toggleRecordingIcons(true); mediaRecorder.ondataavailable = function(e){ recordedStream.push(e.data); } mediaRecorder.onstop = function(){ toggleRecordingIcons(false); h.saveRecordedStream(recordedStream, username); setTimeout(()=>{ recordedStream = []; }, 3000); } mediaRecorder.onerror = function(e){ console.error(e); } } //Chat textarea document.getElementById('chat-input').addEventListener('keypress', (e)=>{ if(e.which === 13 && (e.target.value.trim())){ e.preventDefault(); sendMsg(e.target.value); setTimeout(()=>{ e.target.value = ''; }, 50); } }); //When the video icon is clicked document.getElementById('toggle-video').addEventListener('click', (e)=>{ e.preventDefault(); let elem = document.getElementById('toggle-video'); if(myStream.getVideoTracks()[0].enabled){ e.target.classList.remove('fa-video'); e.target.classList.add('fa-video-slash'); elem.setAttribute('title', 'Show Video'); myStream.getVideoTracks()[0].enabled = false; } else{ e.target.classList.remove('fa-video-slash'); e.target.classList.add('fa-video'); elem.setAttribute('title', 'Hide Video'); myStream.getVideoTracks()[0].enabled = true; } broadcastNewTracks(myStream, 'video'); }); //When the mute icon is clicked document.getElementById('toggle-mute').addEventListener('click', (e)=>{ e.preventDefault(); let elem = document.getElementById('toggle-mute'); if(myStream.getAudioTracks()[0].enabled){ e.target.classList.remove('fa-microphone-alt'); e.target.classList.add('fa-microphone-alt-slash'); elem.setAttribute('title', 'Unmute'); myStream.getAudioTracks()[0].enabled = false; } else{ e.target.classList.remove('fa-microphone-alt-slash'); e.target.classList.add('fa-microphone-alt'); elem.setAttribute('title', 'Mute'); myStream.getAudioTracks()[0].enabled = true; } broadcastNewTracks(myStream, 'audio'); }); //When user clicks the 'Share screen' button document.getElementById('share-screen').addEventListener('click', (e)=>{ e.preventDefault(); if(screen && screen.getVideoTracks().length && screen.getVideoTracks()[0].readyState != 'ended'){ stopSharingScreen(); } else{ shareScreen(); } }); //When record button is clicked document.getElementById('record').addEventListener('click', (e)=>{ /** * Ask user what they want to record. * Get the stream based on selection and start recording */ if(!mediaRecorder || mediaRecorder.state == 'inactive'){ h.toggleModal('recording-options-modal', true); } else if(mediaRecorder.state == 'paused'){ mediaRecorder.resume(); } else if(mediaRecorder.state == 'recording'){ mediaRecorder.stop(); } }); //When user choose to record screen document.getElementById('record-screen').addEventListener('click', ()=>{ h.toggleModal('recording-options-modal', false); if(screen && screen.getVideoTracks().length){ startRecording(screen); } else{ h.shareScreen().then((screenStream)=>{ startRecording(screenStream); }).catch(()=>{}); } }); //When user choose to record own video document.getElementById('record-video').addEventListener('click', ()=>{ h.toggleModal('recording-options-modal', false); if(myStream && myStream.getTracks().length){ startRecording(myStream); } else{ h.getUserFullMedia().then((videoStream)=>{ startRecording(videoStream); }).catch(()=>{}); } }); } });
31.693252
150
0.477029
68409e373e65b07e09f4b5f30854008b2564507d
2,026
js
JavaScript
dist/lib/pouch-db.js
garfieldnate/rxdb
fc0b464b10baa46f29e013bb1de3c1399a7f72f4
[ "Apache-2.0" ]
null
null
null
dist/lib/pouch-db.js
garfieldnate/rxdb
fc0b464b10baa46f29e013bb1de3c1399a7f72f4
[ "Apache-2.0" ]
null
null
null
dist/lib/pouch-db.js
garfieldnate/rxdb
fc0b464b10baa46f29e013bb1de3c1399a7f72f4
[ "Apache-2.0" ]
null
null
null
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _pouchdbCore = _interopRequireDefault(require("pouchdb-core")); var _pouchdbFind = _interopRequireDefault(require("pouchdb-find")); var _rxError = _interopRequireDefault(require("./rx-error")); /** * this handles the pouchdb-instance * to easy add modules and manipulate things * Adapters can be found here: * @link https://github.com/pouchdb/pouchdb/tree/master/packages/node_modules */ /* // comment in to debug const pouchdbDebug = require('pouchdb-debug'); PouchDB.plugin(pouchdbDebug); PouchDB.debug.enable('*'); */ // pouchdb-find _pouchdbCore["default"].plugin(_pouchdbFind["default"]); /** * get the number of all undeleted documents * @param {PouchDB} pouchdb instance * @return {Promise<number>} number of documents */ _pouchdbCore["default"].countAllUndeleted = function (pouchdb) { return pouchdb.allDocs({ include_docs: false, attachments: false }).then(function (docs) { return docs.rows.filter(function (row) { return !row.id.startsWith('_design/'); }).length; }); }; /** * get a batch of documents from the pouch-instance * @param {PouchDB} pouchdb instance * @param {number} limit * @return {Promise<{}[]>} array with documents */ _pouchdbCore["default"].getBatch = function (pouchdb, limit) { if (limit <= 1) { throw _rxError["default"].newRxError('P1', { limit: limit }); } return pouchdb.allDocs({ include_docs: true, attachments: false, limit: limit }).then(function (docs) { return docs.rows.map(function (row) { return row.doc; }).filter(function (doc) { return !doc._id.startsWith('_design'); }); }); }; _pouchdbCore["default"].isInstanceOf = function (obj) { return obj instanceof _pouchdbCore["default"]; }; var _default = _pouchdbCore["default"]; exports["default"] = _default;
25.012346
85
0.686575
684128883fc4602b5972b17bc7c81fd6e2c7b02d
1,139
js
JavaScript
_helpers/db.js
anxdroid/tombola-backend
29e6a5d5fcb8595e5f294b40b9583eed1ed09db1
[ "MIT" ]
null
null
null
_helpers/db.js
anxdroid/tombola-backend
29e6a5d5fcb8595e5f294b40b9583eed1ed09db1
[ "MIT" ]
null
null
null
_helpers/db.js
anxdroid/tombola-backend
29e6a5d5fcb8595e5f294b40b9583eed1ed09db1
[ "MIT" ]
null
null
null
const config = require('config.json'); const mysql = require('mysql2/promise'); const { Sequelize } = require('sequelize'); module.exports = db = {}; initialize(); async function initialize() { // create db if it doesn't already exist const { host, port, user, password, database } = config.database; //const connection = await mysql.createConnection({ host, port, user, password }); //await connection.query(`CREATE DATABASE IF NOT EXISTS \`${database}\`;`); // connect to db const sequelize = new Sequelize(database, user, password, { host: '192.168.1.5', dialect: 'mysql', logging: false }); //const sequelize = new Sequelize({dialect: 'sqlite', storage: 'data/dev-db.sqlite3', logging: false}) // init models and add them to the exported db object db.User = require('../users/user.model')(sequelize); db.Estrazione = require('../tombola/estrazione.model')(sequelize); db.Sessione = require('../tombola/sessione.model')(sequelize); db.Cartella = require('../tombola/cartella.model')(sequelize); // sync all models with database await sequelize.sync({ force: false }); }
40.678571
121
0.67252
68414f07d1f9ecf05b5e3aa23bafe72e9ba2b351
327
js
JavaScript
seeds/mozilla/non262/expressions/destructuring-array-default-call.js
gustavopinto/entente
19b65d8cafd77c198c9c441f4f5e01503360309b
[ "BSD-2-Clause" ]
5
2018-03-20T21:53:38.000Z
2018-12-28T21:08:47.000Z
seeds/mozilla/non262/expressions/destructuring-array-default-call.js
gustavopinto/entente
19b65d8cafd77c198c9c441f4f5e01503360309b
[ "BSD-2-Clause" ]
14
2018-04-09T20:16:00.000Z
2019-06-11T12:31:10.000Z
seeds/mozilla/non262/expressions/destructuring-array-default-call.js
gustavopinto/entente
19b65d8cafd77c198c9c441f4f5e01503360309b
[ "BSD-2-Clause" ]
12
2018-04-06T00:52:24.000Z
2018-07-10T19:44:16.000Z
var BUGNUMBER = 1184922; var summary = "Array destructuring with various default values in various context - call/new expression"; //print(BUGNUMBER + ": " + summary); testDestructuringArrayDefault("func()"); testDestructuringArrayDefault("new func()"); if (typeof reportCompare === "function") reportCompare(true, true);
29.727273
105
0.746177
6841b292b07191546d40e6a54c7f65be49e252cc
290
js
JavaScript
template/src/components/widgets/crow/rem-times.js
luozhihua/generator-ydl-mobile
f750030e2d43a6193138b9cf8f7cd73ba6e15317
[ "MIT" ]
null
null
null
template/src/components/widgets/crow/rem-times.js
luozhihua/generator-ydl-mobile
f750030e2d43a6193138b9cf8f7cd73ba6e15317
[ "MIT" ]
null
null
null
template/src/components/widgets/crow/rem-times.js
luozhihua/generator-ydl-mobile
f750030e2d43a6193138b9cf8f7cd73ba6e15317
[ "MIT" ]
null
null
null
const fs = require('fs') let less = fs.readFileSync('./style.less', 'utf-8') let regexp = /([\d\.]+)rem/gi less = less.replace(regexp, function (a) { // console.log('replace', a) return (parseFloat(a, 10) / 0.95) + 'rem' }) fs.writeFileSync('./style.less', less) console.log(less)
19.333333
51
0.62069
6842b323261704c0b215235e8afc920df0483def
1,203
js
JavaScript
src/views/search/tab/SearchMovieTab.js
mysticmetal/movx
7fc77c5e780693cad7fd4ec284cfb96028194e1e
[ "MIT" ]
null
null
null
src/views/search/tab/SearchMovieTab.js
mysticmetal/movx
7fc77c5e780693cad7fd4ec284cfb96028194e1e
[ "MIT" ]
null
null
null
src/views/search/tab/SearchMovieTab.js
mysticmetal/movx
7fc77c5e780693cad7fd4ec284cfb96028194e1e
[ "MIT" ]
null
null
null
import React from 'react'; import { useDispatch } from 'react-redux'; import MovieList from 'components/movies/MovieList'; import PaginationBar from 'components/common/PaginationBar'; import { searchMovies } from 'actions/searchActions'; import { isEmpty } from 'helpers/helperFunctions'; const SearchMovieTab = ({ movies, favorites, isLoading, query }) => { const dispatch = useDispatch(); const handlePageChange = (page) => { if (movies.page !== page && !isLoading) { dispatch(searchMovies(`/search/movie?query=${query}`, page)); } }; return (!isEmpty(movies) && movies.results.length !== 0) ? ( <> <MovieList category="movie" isLoading={isLoading} movies={movies.results} favorites={favorites} /> <PaginationBar activePage={movies.page} itemsCountPerPage={1} onChange={handlePageChange} pageRangeDisplayed={10} totalItemsCount={movies.total_pages} totalPage={movies.total_pages} /> </> ) : ( <div className="search__no-result"> <h1>No movie found.</h1> <i className="fa fa-film" /> </div> ); }; export default SearchMovieTab;
26.733333
69
0.628429
6844507ff9ed7644c9b196760ba13debaf98f45a
766
js
JavaScript
lib/withApollo/index.js
acorcutt/next-auth0-components
feb43c34d19e158c748b7d3f058716b8df98c69d
[ "MIT" ]
4
2017-04-25T10:41:55.000Z
2018-10-22T15:44:25.000Z
lib/withApollo/index.js
acorcutt/next-auth0-components
feb43c34d19e158c748b7d3f058716b8df98c69d
[ "MIT" ]
3
2017-05-05T22:47:44.000Z
2017-05-05T22:57:55.000Z
lib/withApollo/index.js
acorcutt/next-auth0-components
feb43c34d19e158c748b7d3f058716b8df98c69d
[ "MIT" ]
null
null
null
import { createNetworkInterface } from 'react-apollo'; import nextApolloProvider from 'next-apollo-provider'; import authMiddleware from './authMiddleware'; export default nextApolloProvider((initialState, ssrMode, context)=>{ //console.log('process.env.GRAPHQL_URL',process.env.GRAPHQL_URL); const networkInterface = createNetworkInterface({ uri: process.env.GRAPHQL_URL, opts: { credentials: 'same-origin' } }); networkInterface.use([authMiddleware]); const clientSettings = { initialState, ssrMode, connectToDevTools: (process.browser && process.env.NODE_ENV !== 'production'), dataIdFromObject: (result) => (result.id || null), networkInterface: networkInterface }; return clientSettings; });
26.413793
82
0.710183
6844dafc858a924c9c6ba482389e5a00b494be5f
20
js
JavaScript
test/fixtures/lightscript/for-in/obj-val/input.js
lightscript/parser
187989fcba9c9e9cdcf96ce0f8d1023490b3877e
[ "MIT" ]
3
2018-08-18T15:45:02.000Z
2020-11-27T03:53:18.000Z
test/fixtures/lightscript/for-in/obj-val/input.js
lightscript/parser
187989fcba9c9e9cdcf96ce0f8d1023490b3877e
[ "MIT" ]
1
2021-05-19T23:15:33.000Z
2021-05-19T23:15:33.000Z
test/fixtures/lightscript/for-in/obj-val/input.js
lightscript/parser
187989fcba9c9e9cdcf96ce0f8d1023490b3877e
[ "MIT" ]
null
null
null
for val v in obj {}
10
19
0.6
68451354f3bb81245576f7403caf3cf7fa7c8c80
4,599
js
JavaScript
src/icons/svg/category-security.js
wendy81/react-webpack-loadable
875716a6d818c4c5f1c22646682bd9d527aaf271
[ "MIT" ]
null
null
null
src/icons/svg/category-security.js
wendy81/react-webpack-loadable
875716a6d818c4c5f1c22646682bd9d527aaf271
[ "MIT" ]
null
null
null
src/icons/svg/category-security.js
wendy81/react-webpack-loadable
875716a6d818c4c5f1c22646682bd9d527aaf271
[ "MIT" ]
null
null
null
import React from 'react'; export default class ArrowDown extends React.Component { render() { const { width, height, color } = this.props; return ( <svg width={width} height={height} viewBox="0 0 140 140" version="1.1" > <g id="Icons" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd"> <g transform="translate(-2589.000000, -1670.000000)" fill={color} fillRule="nonzero" id="icon_Category_Security"> <g transform="translate(2594.000000, 1670.000000)"> <path d="M121.968,17.248 C121.612911,16.8545576 121.107317,16.6306031 120.577333,16.632 C116.221778,16.632 112.009333,16.4733333 107.94,16.156 C104.270817,15.8955827 100.618956,15.4313103 97.0013333,14.7653333 C93.8031111,14.1431111 90.7262222,13.4462222 87.7706667,12.6746667 C84.8213333,11.9 82.236,11.088 80.0146667,10.2666667 C77.7933333,9.44533333 75.74,8.57733333 73.8733333,7.68133333 C72.0066667,6.78533333 70.448,5.992 69.1506667,5.27333333 C67.8533333,4.55466667 66.7426667,3.88266667 65.8093333,3.248 L63.784,1.86666667 L63.168,1.25066667 C62.8585283,0.4920117 62.1206807,-0.00387975264 61.3013333,-0.00387975264 C60.481986,-0.00387975264 59.7441384,0.4920117 59.4346667,1.25066667 C59.332,1.35333333 58.6226667,1.904 57.344,2.884 C55.2213184,4.35084859 52.986919,5.64904715 50.6613333,6.76666667 C47.0973071,8.54421273 43.4142405,10.0723267 39.6386667,11.34 C34.3264014,13.0589898 28.8734629,14.3082311 23.3426667,15.0733333 C16.2808079,16.1341859 9.14767371,16.6490446 2.00666667,16.6133333 C1.4786215,16.6209683 0.976474859,16.8433957 0.616,17.2293333 C0.222557575,17.5844219 -0.00139691873,18.0900161 0,18.62 L10.2666667,87.2013333 C11.2960239,93.0544243 13.6277024,98.6013312 17.0893333,103.432 C20.4978229,108.49986 24.5373818,113.113362 29.1106667,117.161333 C33.5783127,121.015128 38.2956977,124.569536 43.232,127.801333 C48.3466667,131.161333 52.2044444,133.516444 54.8053333,134.866667 C57.3906667,136.201333 59.304,137.134667 60.536,137.666667 C60.7785781,137.778445 61.0436769,137.832742 61.3106667,137.825333 L62.0853333,137.666667 C63.224,137.153333 65.1653333,136.173333 67.9093333,134.717333 C70.6533333,133.261333 74.5546667,130.834667 79.6226667,127.418667 C84.5754674,124.088121 89.342574,120.489423 93.9026667,116.638667 C98.5449641,112.652176 102.626442,108.055803 106.036,102.974667 C109.395823,98.3124946 111.579549,92.907612 112.401333,87.22 L122.668,18.6293333 C122.621967,18.0957229 122.371094,17.6006671 121.968,17.248 Z M101.322667,83.3373333 C100.539872,87.776148 98.7344422,91.9717742 96.0493333,95.592 C93.3149088,99.5362783 90.1084484,103.131401 86.5013333,106.297333 C82.9821,109.344563 79.2757563,112.168741 75.404,114.753333 C71.4653333,117.394667 68.4413333,119.289333 66.332,120.418667 C64.2226667,121.548 62.9066667,122.285333 62.0386667,122.668 C61.946227,122.720198 61.8449961,122.754996 61.74,122.770667 L61.6,122.826667 C61.2891209,122.914136 60.9569319,122.884239 60.6666667,122.742667 C60.0506667,122.425333 58.9586667,121.865333 57.4186667,121.034667 C55.8786667,120.204 53.62,118.906667 50.6706667,117.152 C47.5801332,115.292085 44.6235749,113.218128 41.8226667,110.945333 C38.8733333,108.574667 35.952,105.970667 33.0493333,103.189333 C30.1268625,100.372097 27.5739962,97.1951272 25.452,93.7346667 C23.4221008,90.5633139 22.0038918,87.0399511 21.2706667,83.3466667 L12.0773333,30.2773333 C12.0257692,30.0279711 12.0257692,29.7706956 12.0773333,29.5213333 C12.1422477,29.2343889 12.2879957,28.9720426 12.4973333,28.7653333 C12.7788823,28.4611236 13.1748303,28.2885309 13.5893333,28.2893333 C18.9686359,28.1926515 24.3311807,27.6588941 29.624,26.6933333 C34.1311579,26.0576058 38.5813272,25.0683325 42.9333333,23.7346667 C46.0822275,22.741777 49.1652556,21.5509613 52.164,20.1693333 C54.1389577,19.2767318 56.0588226,18.2669328 57.9133333,17.1453333 C58.7066667,16.632 59.248,16.268 59.5653333,16.0533333 C59.7426667,15.932 60.564,14.924 61.1146667,14.896 C61.2077991,14.8873394 61.3015342,14.8873394 61.3946667,14.896 C61.936,14.9986667 62.832,16.1093333 63.028,16.2493333 L64.5026667,17.1826667 C66.3613024,18.2746073 68.2808828,19.2593271 70.252,20.132 C73.2884245,21.5074325 76.4052204,22.6980485 79.5853333,23.6973333 C83.9497786,25.0297505 88.4125007,26.0159184 92.932,26.6466667 C98.2248193,27.6122275 103.587364,28.1459848 108.966667,28.2426667 C109.38117,28.2418642 109.777118,28.4144569 110.058667,28.7186667 C110.346288,29.0100305 110.510151,29.4012955 110.516,29.8106667 C110.524661,29.9037991 110.524661,29.9975342 110.516,30.0906667 L101.322667,83.3373333 Z"></path> </g> </g> </g> </svg> ) } }
242.052632
4,044
0.783431
68453bdc0ede240d42dcf807d6df044900bff4af
4,027
js
JavaScript
index.test.js
ya-kostik/hooks-mixin
9f507cc29f73f7e49cd6a791f662f29fb4b0a421
[ "MIT" ]
1
2018-04-17T13:28:11.000Z
2018-04-17T13:28:11.000Z
index.test.js
ya-kostik/hooks-mixin
9f507cc29f73f7e49cd6a791f662f29fb4b0a421
[ "MIT" ]
5
2020-04-07T14:33:16.000Z
2021-06-02T10:32:29.000Z
index.test.js
ya-kostik/hooks-mixin
9f507cc29f73f7e49cd6a791f662f29fb4b0a421
[ "MIT" ]
null
null
null
/*global test expect jest */ const HooksMixin = require('./'); function mockClassInstance() { const Class = function() {}; HooksMixin(Class); return new Class(); } test('Add hooks ability to Class', () => { const instance = mockClassInstance(); expect(instance).toHaveProperty('hook'); expect(instance).toHaveProperty('removeHook'); expect(instance).toHaveProperty('processHooks'); expect(instance).toHaveProperty('processHooksAsync'); expect(instance).not.toHaveProperty('__hooks'); instance.hook('test', () => {}); expect(instance).toHaveProperty('__hooks'); expect(instance).toHaveProperty('__hooks.test'); expect(instance.__hooks.test).toHaveLength(1); }); test('Call hooks', () => { const instance = mockClassInstance(); const mockHook = jest.fn(); instance.hook('test', mockHook); instance.hook('test', mockHook); instance.processHooks('test'); expect(mockHook).toHaveBeenCalledTimes(2); }); test('Call hooks with arguments', () => { const instance = mockClassInstance(); let called = false; instance.hook('test', (a, b, c, self) => { expect(a).toBe(1); expect(b).toBe(2); expect(c).toBe(3); expect(self).toBe(instance); called = true; }); instance.processHooks('test', 1, 2, 3); expect(called).toBe(true); }); test('Call hooks without arguments', () => { const instance = mockClassInstance(); let called = false; instance.hook('test', (self) => { expect(self).toBe(instance); called = true; }); instance.processHooks('test'); expect(called).toBe(true); }); test('Remove hook', () => { const instance = mockClassInstance(); const hook = () => {}; instance.hook('test', hook); expect(instance.__hooks.test[0]).toBe(hook); instance.removeHook('test', hook); expect(instance.__hooks.test[0]).toBe(undefined); const hook2 = () => {}; instance.hook('test', hook); instance.hook('test', hook2); instance.removeHook('test', hook); expect(instance.__hooks.test[0]).toBe(hook2); }); test('Async hooks call', async () => { const instance = mockClassInstance(); let called = 0; let done = false; const hook = () => { return new Promise((resolve) => { setTimeout(() => { called += 1; resolve(); }, 10); }); }; const TIMES = 4; for (let i = 0; i < TIMES; i++) { instance.hook('test', hook); } instance.test = async function() { await this.processHooksAsync('test'); expect(called).toBe(TIMES); done = true; } await instance.test(); expect(done).toBe(true); }); test('Add hooks bulk', () => { const instance = mockClassInstance(); const [hook1, hook2, hook3] = [jest.fn(), jest.fn(), jest.fn()]; instance.hooks({ a: [hook1, hook2], b: hook3 }); instance.test = function() { this.processHooks('a'); this.processHooks('b'); } instance.test(); for (const hook of [hook1, hook2, hook3]) { expect(hook).toBeCalled(); } }); test('Remove hooks bulk', () => { const instance = mockClassInstance(); const [hook1, hook2, hook3, hook4] = [jest.fn(), jest.fn(), jest.fn(), jest.fn()]; instance.hooks({ a: [hook1, hook2], b: hook3, c: hook4 }); instance.removeHooks({ b: hook3, c: hook4 }); instance.test = function() { this.processHooks('a'); this.processHooks('b'); this.processHooks('c'); } instance.test(); for (const hook of [hook1, hook2]) { expect(hook).toBeCalled(); } for (const hook of [hook3, hook4]) { expect(hook).not.toBeCalled(); } }); test('Remove all hooks', () => { const instance = mockClassInstance(); const [hook1, hook2, hook3, hook4] = [jest.fn(), jest.fn(), jest.fn(), jest.fn()]; instance.hooks({ a: [hook1, hook2], b: hook3, c: hook4 }); instance.removeHooks(); instance.test = function() { this.processHooks('a'); this.processHooks('b'); this.processHooks('c'); } instance.test(); for (const hook of [hook1, hook2, hook3, hook4]) { expect(hook).not.toBeCalled(); } });
24.113772
84
0.615843
68462d0b5108e991316e501e78dbbc7901600478
1,005
js
JavaScript
build/bin/gen-cssfile.js
paygle/elem-ui-ext
af2b98037ef3fda0c5195bed5c76c2efb6de5499
[ "MIT" ]
1
2017-08-11T09:57:15.000Z
2017-08-11T09:57:15.000Z
build/bin/gen-cssfile.js
paygle/elem-ui-ext
af2b98037ef3fda0c5195bed5c76c2efb6de5499
[ "MIT" ]
null
null
null
build/bin/gen-cssfile.js
paygle/elem-ui-ext
af2b98037ef3fda0c5195bed5c76c2efb6de5499
[ "MIT" ]
1
2020-03-20T11:57:23.000Z
2020-03-20T11:57:23.000Z
var fs = require('fs'); var path = require('path'); var Components = require('../../components.json'); var themes = [ 'theme-default' ]; Components = Object.keys(Components); var basepath = path.resolve(__dirname, '../../packages/'); function fileExists(filePath) { try { return fs.statSync(filePath).isFile(); } catch (err) { return false; } } themes.forEach((theme) => { var indexContent = '@import "./base.css";\n'; Components.forEach(function(key) { if (['icon', 'option', 'option-group'].indexOf(key) > -1) return; var fileName = key + '.css'; indexContent += '@import "./' + fileName + '";\n'; var filePath = path.resolve(basepath, theme, 'src', fileName); if (!fileExists(filePath)) { fs.writeFileSync(filePath, '', 'utf8'); console.log(theme, ' 创建遗漏的 ', fileName, ' 文件'); } }); indexContent += '@import "./common/page-layout.css";\n'; // 添加自定义样式 fs.writeFileSync(path.resolve(basepath, theme, 'src', 'index.css'), indexContent); });
30.454545
84
0.6199
68464e349a48d7c04b8fb399c857768bf66cf6f5
287
js
JavaScript
packages/plugin-node/test/fixtures/helpers/api/index.js
Mortaro/vercel
bae26cc0178ff49c3050ceaf5db00969e510cc6b
[ "Apache-2.0" ]
1
2022-01-31T14:24:07.000Z
2022-01-31T14:24:07.000Z
packages/plugin-node/test/fixtures/helpers/api/index.js
Mortaro/vercel
bae26cc0178ff49c3050ceaf5db00969e510cc6b
[ "Apache-2.0" ]
112
2022-02-09T23:11:57.000Z
2022-03-26T00:24:24.000Z
packages/plugin-node/test/fixtures/helpers/api/index.js
Mortaro/vercel
bae26cc0178ff49c3050ceaf5db00969e510cc6b
[ "Apache-2.0" ]
1
2022-01-31T14:24:21.000Z
2022-01-31T14:24:21.000Z
module.exports = (req, res) => { res.status(200); let who = 'anonymous'; if (req.body && req.body.who) { who = req.body.who; } else if (req.query.who) { who = req.query.who; } else if (req.cookies.who) { who = req.cookies.who; } res.send(`hello ${who}`); };
17.9375
33
0.554007
6846c1c92028206b0103e14d87d492a485e9cb27
1,193
js
JavaScript
tests/tsc-references/jsx/tsxStatelessFunctionComponentsWithTypeArguments2x/input.tsx/es5.1.normal/output.js
swc-project/swc
d83bde8ca5be3536632a51c9143f414879aeaf13
[ "Apache-2.0", "MIT" ]
21,008
2017-04-01T04:06:55.000Z
2022-03-31T23:11:05.000Z
tests/tsc-references/jsx/tsxStatelessFunctionComponentsWithTypeArguments2x/input.tsx/es5.1.normal/output.js
dsherret/swc
bf886bac73ad348ab7bc333e6eae824c96e9abde
[ "Apache-2.0", "MIT" ]
2,309
2018-01-14T05:54:44.000Z
2022-03-31T15:48:40.000Z
tests/tsc-references/jsx/tsxStatelessFunctionComponentsWithTypeArguments2x/input.tsx/es5.1.normal/output.js
dsherret/swc
bf886bac73ad348ab7bc333e6eae824c96e9abde
[ "Apache-2.0", "MIT" ]
768
2018-01-14T05:15:43.000Z
2022-03-30T11:29:42.000Z
function _extends() { _extends = Object.assign || function(target) { for(var i = 1; i < arguments.length; i++){ var source = arguments[i]; for(var key in source){ if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } // @filename: file.tsx // @jsx: preserve // @module: amd // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts var React = require('react'); // Error function Bar(arg) { var a1 = /*#__PURE__*/ React.createElement(ComponentSpecific1, _extends({ }, arg, { "ignore-prop": 10 })); } // Error function Baz(arg) { var a0 = /*#__PURE__*/ React.createElement(ComponentSpecific1, _extends({ }, arg)); } // Error function createLink(func) { var o = /*#__PURE__*/ React.createElement(Link, { func: func }); } // Error var i = /*#__PURE__*/ React.createElement(InferParamComponent, { values: [ 1, 2, 3, 4 ], selectHandler: function(val) { } }); export { };
22.942308
77
0.546521
6847fc544fe61d82a687bea0db7d0ff8bab27dee
268
js
JavaScript
client/src/pages/LoginPage/LoginPage.js
niceynice/quiz-app-client
3bdcf05d3f258746295bd50cdda9ececa2091aa2
[ "MIT" ]
null
null
null
client/src/pages/LoginPage/LoginPage.js
niceynice/quiz-app-client
3bdcf05d3f258746295bd50cdda9ececa2091aa2
[ "MIT" ]
null
null
null
client/src/pages/LoginPage/LoginPage.js
niceynice/quiz-app-client
3bdcf05d3f258746295bd50cdda9ececa2091aa2
[ "MIT" ]
null
null
null
import React, { Component } from "react"; import Login from "../../components/Login/Login"; class LoginPage extends Component { render() { return ( <div> <Login /> </div> ) } } export default LoginPage;
14.888889
49
0.518657
684846f4d7abca67e6f32cc66774e99ce3763fac
270
js
JavaScript
src/graphql/prefs.js
CUCB/website
4eb47f3e11995970b793c8d467a2ac75fe7e41f4
[ "MIT" ]
3
2021-01-15T00:39:21.000Z
2021-12-26T23:47:17.000Z
src/graphql/prefs.js
CUCB/website
4eb47f3e11995970b793c8d467a2ac75fe7e41f4
[ "MIT" ]
82
2020-10-21T21:49:28.000Z
2022-02-12T16:46:06.000Z
src/graphql/prefs.js
CUCB/website
4eb47f3e11995970b793c8d467a2ac75fe7e41f4
[ "MIT" ]
null
null
null
import gql from "graphql-tag"; export const QueryPrefsLike = gql` query QueryPrefsLike($name: String!) { cucb_users { prefs(where: { pref_type: { name: { _ilike: $name } } }) { value pref_type { name } } } } `;
18
64
0.522222
6848b06b9fdaa52dfebde5a9a7676829fa55a08c
24,608
js
JavaScript
bitrix/modules/crm/install/components/bitrix/crm.requisite.form.editor/templates/.default/script.min.js
shuchitamathur28/bitrix24
fafc179382f028989a4ee4a5f97422e49b1526b4
[ "Unlicense" ]
1
2020-10-05T04:28:40.000Z
2020-10-05T04:28:40.000Z
bitrix/modules/crm/install/components/bitrix/crm.requisite.form.editor/templates/.default/script.min.js
shuchitamathur28/bitrix24
fafc179382f028989a4ee4a5f97422e49b1526b4
[ "Unlicense" ]
null
null
null
bitrix/modules/crm/install/components/bitrix/crm.requisite.form.editor/templates/.default/script.min.js
shuchitamathur28/bitrix24
fafc179382f028989a4ee4a5f97422e49b1526b4
[ "Unlicense" ]
null
null
null
BX.namespace("BX.Crm");if(typeof BX.Crm.RequisiteFormEditor==="undefined"){BX.Crm.RequisiteFormEditor=function(e){this.containerId=e.containerId;this.container=BX(this.containerId);this.requisiteEntityTypeId=e.requisiteEntityTypeId;this.requisiteEntityId=e.requisiteEntityId;this.presetList=e.presetList;this.presetLastSelectedId=e.presetLastSelectedId;this.requisiteDataList=e.requisiteDataList;this.visible=!!e.visible;this.messages=e.messages||{};this.presetSelector=null;this.requisitePopupManager=null;this.requisitePopupAjaxUrl=e.requisitePopupAjaxUrl;this.requisiteFormEditorAjaxUrl=e.requisiteFormEditorAjaxUrl;this.blockArea=null};BX.Crm.RequisiteFormEditor.prototype={initialize:function(){if(this.container){if(this.visible)this.container.style.display="block";this.requisiteEditHandler=BX.delegate(this.onRequisiteEdit,this);if(!this.blockArea){this.blockArea=new BX.Crm.RequisiteFormEditorBlockArea({container:this.container,nextNode:null,editor:this,requisiteDataList:this.requisiteDataList,ajaxUrl:this.requisiteFormEditorAjaxUrl,requisiteEditHandler:this.requisiteEditHandler})}if(!this.presetSelector){this.presetSelector=new BX.Crm.RequisitePresetSelectorClass({editor:this,container:this.container,nextNode:this.blockArea?this.blockArea.getWrapperNode():null,containerId:this.containerId,requisiteEntityTypeId:this.requisiteEntityTypeId,requisiteEntityId:this.requisiteEntityId,presetList:this.presetList,presetLastSelectedId:this.presetLastSelectedId,requisiteEditHandler:this.requisiteEditHandler})}}},getMessage:function(e){return this.messages[e]},onRequisiteEdit:function(e,t,i,s,r,n,a,o){if(BX.type.isNumber(a)&&a>=0||BX.type.isNotEmptyString(a))a=parseInt(a);else a=-1;r=BX.type.isNotEmptyString(r)?r:"";n=BX.type.isNotEmptyString(n)?n:"";o=!!o;if(!this.requisitePopupManager){this.requisitePopupManager=new BX.Crm.RequisitePopupFormManagerClass({editor:this,blockArea:this.blockArea,requisiteEntityTypeId:e,requisiteEntityId:t,requisiteId:s,requisiteData:r,requisiteDataSign:n,presetId:i,requisitePopupAjaxUrl:this.requisitePopupAjaxUrl,popupDestroyCallback:BX.delegate(this.onRequisitePopupDestroy,this),blockIndex:a,copyMode:o});this.requisitePopupManager.openPopup()}},onRequisitePopupDestroy:function(){if(this.requisitePopupManager){this.requisitePopupManager.destroy();this.requisitePopupManager=null}}};BX.Crm.RequisiteFormEditor.items={};BX.Crm.RequisiteFormEditor.create=function(e,t){var i=new BX.Crm.RequisiteFormEditor(t);i.initialize();this.items[e]=i;return i}}if(typeof BX.Crm.RequisiteFormEditorBlockArea==="undefined"){BX.Crm.RequisiteFormEditorBlockArea=function(e){this.editor=e.editor;this.requisiteDataList=e.requisiteDataList;this.ajaxUrl=e.ajaxUrl;this.container=e.container;this.nextNode=e.nextNode;this.requisiteEditHandler=e.requisiteEditHandler;this.wrapper=null;this.blockList=[];if(this.container){this.wrapper=BX.create("DIV",{attrs:{class:"crm-offer-requisite-blocks"}});if(this.wrapper){if(this.nextNode)this.container.insertBefore(this.wrapper,this.nextNode);else this.container.appendChild(this.wrapper)}}if(this.requisiteDataList&&this.requisiteDataList instanceof Array){var t;for(var i=0;i<this.requisiteDataList.length;i++){if(this.requisiteDataList[i]["requisiteId"]&&this.requisiteDataList[i]["requisiteData"]&&this.requisiteDataList[i]["requisiteDataSign"]){this.addBlock(this.requisiteDataList[i]["requisiteId"],this.requisiteDataList[i]["requisiteData"],this.requisiteDataList[i]["requisiteDataSign"])}}}};BX.Crm.RequisiteFormEditorBlockArea.prototype={getWrapperNode:function(){return this.wrapper},addBlock:function(e,t,i){var s=this.blockList.length;var r=new BX.Crm.RequisiteFormEditorBlock({editor:this.editor,blockArea:this,blockIndex:s,ajaxUrl:this.ajaxUrl,container:this.wrapper,nextNode:null,requisiteEditHandler:this.requisiteEditHandler,requisiteId:e,requisiteData:t,requisiteDataSign:i});if(r)this.blockList[s]=r},updateBlock:function(e,t,i,s){e=BX.type.isNumber(e)&&e>=0||BX.type.isNotEmptyString(e)?parseInt(e):-1;if(e>=0){var r=this.blockList[e];if(r){r.update({requisiteId:t,requisiteData:i,requisiteDataSign:s})}}},onBlockDestroy:function(e){if(e>=0&&this.blockList&&this.blockList.length>e){this.blockList.splice(e,1);this.reindexBlocks(e)}},reindexBlocks:function(e){for(var t=e;t<this.blockList.length;t++)this.blockList[t].setIndex(t)}}}if(typeof BX.Crm.RequisiteFormEditorBlock==="undefined"){BX.Crm.RequisiteFormEditorBlock=function(e){this.editor=e.editor;this.blockArea=e.blockArea;this.blockIndex=e.blockIndex;this.ajaxUrl=e.ajaxUrl;this.container=e.container;this.nextNode=e.nextNode;this.requisiteId=parseInt(e.requisiteId);this.requisiteDataJson=e.requisiteData;this.requisiteDataSign=e.requisiteDataSign;this.requisiteEditHandler=e.requisiteEditHandler;this.requisiteData=null;this.entityTypeId=0;this.entityId=0;this.presetId=0;this.viewData=null;this.isRequestRunning=false;this.wrapper=null;this.closeButtonNode=null;this.closeButtonClickHandler=null;this.requisiteDataInputNode=null;this.requisiteDataSignInputNode=null;this.initialize()};BX.Crm.RequisiteFormEditorBlock.prototype={update:function(e){this.requisiteId=parseInt(e.requisiteId);this.requisiteDataJson=e.requisiteData;this.requisiteDataSign=e.requisiteDataSign;this.requisiteData=null;this.entityTypeId=0;this.entityId=0;this.presetId=0;this.viewData=null;this.isRequestRunning=false;this.initialize()},initialize:function(){this.requisiteData=BX.parseJSON(this.requisiteDataJson,this);if(this.requisiteData&&this.requisiteData["fields"]){this.entityTypeId=parseInt(this.requisiteData["fields"]["ENTITY_TYPE_ID"]);this.entityId=parseInt(this.requisiteData["fields"]["ENTITY_ID"]);this.presetId=parseInt(this.requisiteData["fields"]["PRESET_ID"])}if(this.requisiteData&&this.requisiteData["viewData"]){this.viewData=this.requisiteData["viewData"]}if(this.container){this.clean();if(!this.wrapper){this.wrapper=BX.create("DIV",{attrs:{class:"crm-offer-requisite","data-tab-block":"tabBlock"}});if(this.wrapper){if(this.nextNode)this.container.insertBefore(this.wrapper,this.nextNode);else this.container.appendChild(this.wrapper)}}}if(this.wrapper){if(this.viewData&&this.viewData["title"]){var e=BX.create("DIV",{attrs:{class:"crm-offer-requisite-title",style:"cursor: pointer;"},html:BX.util.htmlspecialchars(this.viewData["title"])});this.wrapper.appendChild(e);var t=BX.create("SPAN",{attrs:{class:"crm-offer-tab-close-btn","data-tab-block":"closeBtn"}});this.wrapper.appendChild(t);if(this.viewData["fields"]){var i,s,r,n;var a=this.viewData["fields"];if(a instanceof Array&&a.length>0){i=BX.create("TABLE",{attrs:{class:"crm-offer-tab-table"}});for(n=0;n<a.length;n++){s=i.insertRow(-1);r=s.insertCell(-1);r.className="crm-offer-tab-cell";r.innerHTML=(a[n]["title"]?BX.util.htmlspecialchars(a[n]["title"]):"")+":";r=s.insertCell(-1);r.className="crm-offer-tab-cell";r.innerHTML=a[n]["textValue"]?BX.util.nl2br(BX.util.htmlspecialchars(a[n]["textValue"])):""}this.wrapper.appendChild(i)}}if(t){this.closeButtonNode=t;this.closeButtonClickHandler=BX.delegate(this.onCloseButtonClick,this);BX.bind(this.closeButtonNode,"click",this.closeButtonClickHandler)}if(e){this.titleNode=e;this.titleClickHandler=BX.delegate(this.onBlockTitleClick,this);BX.bind(this.titleNode,"click",this.titleClickHandler)}}if(this.requisiteId===0&&this.requisiteDataJson&&this.requisiteDataSign){this.requisiteDataInputNode=BX.create("INPUT",{attrs:{type:"hidden",name:"REQUISITE_DATA["+this.blockIndex+"]",value:this.requisiteDataJson}});this.wrapper.appendChild(this.requisiteDataInputNode);this.requisiteDataSignInputNode=BX.create("INPUT",{attrs:{type:"hidden",name:"REQUISITE_DATA_SIGN["+this.blockIndex+"]",value:this.requisiteDataSign}});this.wrapper.appendChild(this.requisiteDataSignInputNode)}}},getWrapperNode:function(){return this.wrapper},onCloseButtonClick:function(){if(this.requisiteId>0)this.startRequisiteDeleteRequest(this.requisiteId);else this.destroy()},onBlockTitleClick:function(){if(this.requisiteEditHandler)this.requisiteEditHandler(this.entityTypeId,this.entityId,this.presetId,this.requisiteId,this.requisiteDataJson,this.requisiteDataSign,this.blockIndex)},startRequisiteDeleteRequest:function(e){e=parseInt(e);if(this.isRequestRunning)return;this.isRequestRunning=true;BX.ajax({url:this.ajaxUrl,method:"POST",dataType:"json",data:{action:"deleteRequisite",requisite_id:e},onsuccess:BX.delegate(this.onRequisiteDeleteRequestSuccess,this),onfailure:BX.delegate(this.onRequestFailure,this)})},setIndex:function(e){this.blockIndex=e;if(this.requisiteDataInputNode)this.requisiteDataInputNode.setAttribute("name","REQUISITE_DATA["+this.blockIndex+"]");if(this.requisiteDataSignInputNode)this.requisiteDataSignInputNode.setAttribute("name","REQUISITE_DATA_SIGN["+this.blockIndex+"]")},onRequisiteDeleteRequestSuccess:function(e){var t=false;var i=4;if(e&&e["status"]){if(e["status"]==="success"&&e["response"]&&e["response"]["id"]&&parseInt(e["response"]["id"])==this.requisiteId){t=true}else if(e["status"]==="error"&&e["errors"]&&e["errors"][0]&&e["errors"][0]["code"]&&parseInt(e["errors"][0]["code"])===i){t=true}}this.isRequestRunning=false;if(t)this.destroy()},onRequestFailure:function(e){this.isRequestRunning=false},clean:function(e){e=!!e;if(this.wrapper){if(this.requisiteDataInputNode){BX.cleanNode(this.requisiteDataInputNode,true);this.requisiteDataInputNode=null}if(this.requisiteDataSignInputNode){BX.cleanNode(this.requisiteDataSignInputNode,true);this.requisiteDataSignInputNode=null}if(this.titleNode){BX.unbind(this.titleNode,"click",this.titleClickHandler);this.titleClickHandler=null;this.titleNode=null}if(this.closeButtonNode){BX.unbind(this.closeButtonNode,"click",this.closeButtonClickHandler);this.closeButtonClickHandler=null;this.closeButtonNode=null}BX.cleanNode(this.wrapper,e)}},destroy:function(){this.clean(true);if(this.blockArea)this.blockArea.onBlockDestroy(this.blockIndex)}}}if(typeof BX.setTextContent==="undefined"){BX.setTextContent=function(e,t){if(e){if(e.textContent!==undefined)e.textContent=t;else e.innerText=t}}}if(typeof BX.Crm.RequisiteFormManager==="undefined"){BX.Crm.RequisiteFormManager=function(){this._id="";this._settings={};this._entityTypeId=0;this._entityId=0;this._countryId=0;this._container=null;this._isVisible=true;this._presetList=null;this._presetSelector=null;this._presetLastSelectedId=0;this._presetSelectHandler=BX.delegate(this.onPresetSelect,this);this._pseudoIdSequence=0;this._pseudoIdStartNumber=0;this._fieldNameTemplate="";this._enableFieldMasquerading=false;this._formCreateHandler=BX.delegate(this.onFormCreate,this);this._forms={};this._isRequestRunning=false;this._requestForm=null;this._formLoaderUrl="";this._serviceUrl=""};BX.Crm.RequisiteFormManager.prototype={initialize:function(e,t){this._id=BX.type.isNotEmptyString(e)?e:"crm_requisite_form_manager";this._settings=t?t:{};this._container=BX(this.getSetting("containerId",""));if(!this._container){throw"BX.Crm.RequisiteFormManager: Could not find container."}this._formLoaderUrl=this.getSetting("formLoaderUrl","");if(!BX.type.isNotEmptyString(this._formLoaderUrl)){throw"BX.Crm.RequisiteFormManager: Could not find parameter 'formLoaderUrl' in settings."}this._serviceUrl=this.getSetting("serviceUrl","");if(!BX.type.isNotEmptyString(this._serviceUrl)){throw"BX.Crm.RequisiteFormManager: Could not find parameter 'serviceUrl' in settings."}this._pseudoIdSequence=parseInt(this.getSetting("pseudoIdStartNumber",0));this._pseudoIdStartNumber=this._pseudoIdSequence;this._fieldNameTemplate=this.getSetting("fieldNameTemplate","");this._enableFieldMasquerading=this._fieldNameTemplate!=="";this._entityTypeId=parseInt(this.getSetting("entityTypeId",0));this._entityId=parseInt(this.getSetting("entityId",0));this._presetList=this.getSetting("presetList",null);if(!BX.type.isArray(this._presetList)){this._presetList=[]}this._countryId=parseInt(this.getSetting("countryId",0));if(isNaN(this._countryId)||this._countryId<0){this._countryId=0}this._presetLastSelectedId=parseInt(this.getSetting("presetLastSelectedId",0));this._isVisible=!!this.getSetting("isVisible",true);this._container.style.display=this._isVisible?"":"none";this._presetSelector=new BX.Crm.RequisitePresetSelectorClass({editor:this,id:this._id,container:this._container,position:"top",requisiteEntityTypeId:this._entityTypeId,requisiteEntityId:this._entityId,presetList:this._presetList,presetLastSelectedId:this._presetLastSelectedId,requisiteEditHandler:this._presetSelectHandler});BX.addCustomEvent(window,"CrmRequisiteEditFormCreate",this._formCreateHandler)},getId:function(){return this._id},getSetting:function(e,t){return this._settings.hasOwnProperty(e)?this._settings[e]:t},getMessage:function(e){var t=BX.Crm.RequisiteFormManager.messages;return t.hasOwnProperty(e)?t[e]:e},getEntityTypeId:function(){return this._entityTypeId},getEntityId:function(){return this._entityId},onPresetSelect:function(e,t,i){this.startLoadRequest({presetId:parseInt(i),requisiteId:0,requisitePseudoId:"n"+(this._pseudoIdSequence++).toString()})},onFormCreate:function(e){var t=e["formId"];if(this._forms[t]){delete this._forms[t]}var i=BX.type.isNumber(e["elementId"])?e["elementId"]:0;var s=0;if(BX.type.isString(e["pseudoId"])&&e["pseudoId"].length>1){s=parseInt(e["pseudoId"].substr(1))}var r=BX.type.isBoolean(e["enableFieldMasquerading"])?e["enableFieldMasquerading"]:this._enableFieldMasquerading;var n=BX.type.isNotEmptyString(e["fieldNameTemplate"])?e["fieldNameTemplate"]:this._fieldNameTemplate;var a=BX.type.isNotEmptyString(e["containerId"])?e["containerId"]:"container_"+t;var o=BX.type.isNumber(e["countryId"])?e["countryId"]:this._countryId;var l=BX.type.isBoolean(e["enableClientResolution"])?e["enableClientResolution"]:false;var d=BX.type.isPlainObject(e["externalRequisiteSearchConfig"])?e["externalRequisiteSearchConfig"]:{};var u=BX.Crm.RequisiteInnerForm.create(t,{manager:this,settingManagerId:t.toLowerCase(),countryId:o,enableClientResolution:l,externalRequisiteSearchConfig:d,containerId:a,elementId:i,enableFieldMasquerading:r,fieldNameTemplate:n,serviceUrl:this._serviceUrl});if(i<=0&&s>=this._pseudoIdStartNumber){var h=this.getTopmostForm();if(h){this._container.insertBefore(u.getWrapper(),h.getWrapper())}}this._forms[t]=u},getTopmostForm:function(){var e=null;for(var t in this._forms){if(!this._forms.hasOwnProperty(t)){continue}var i=this._forms[t];if(e===null||e.getSort()>i.getSort()){e=i}}return e},reloadForm:function(e){this.startLoadRequest({presetId:e.getPresetId(),requisiteId:e.getElementId(),requisitePseudoId:e.getElementPseudoId(),form:e})},startLoadRequest:function(e){if(this._isRequestRunning){return}this._isRequestRunning=true;if(typeof e["form"]!=="undefined"){this._requestForm=e["form"]}var t={entityTypeId:this._entityTypeId,entityId:this._entityId};var i=BX.type.isNumber(e["presetId"])?e["presetId"]:0;if(i>0){t["presetId"]=i}var s=BX.type.isNumber(e["requisiteId"])?e["requisiteId"]:0;if(s>0){t["requisiteId"]=s}var r=BX.type.isNotEmptyString(e["requisitePseudoId"])?e["requisitePseudoId"]:"";if(r!==""){t["requisitePseudoId"]=e["requisitePseudoId"]}if(this._enableFieldMasquerading){t["fieldNameTemplate"]=BX.util.urlencode(this._fieldNameTemplate)}BX.ajax({url:BX.util.add_url_param(this._formLoaderUrl,t),method:"GET",dataType:"html",data:{},onsuccess:BX.delegate(this.onLoadRequestSuccess,this),onfailure:BX.delegate(this.onRequestFailure,this)})},onLoadRequestSuccess:function(e){var t=null;this._isRequestRunning=false;if(this._requestForm){t=this._requestForm.getNextSiblingWrapper();this._requestForm.release(true);this._requestForm=null}var i=BX.create("DIV",{html:e});while(i.childNodes.length>0){var s=i.childNodes[0];if(t){this._container.insertBefore(i.removeChild(s),t)}else{this._container.appendChild(i.removeChild(s))}}},onRequestFailure:function(e){this._isRequestRunning=false;this._requestForm=null}};if(typeof BX.Crm.RequisiteFormManager.messages==="undefined"){BX.Crm.RequisiteFormManager.messages={}}BX.Crm.RequisiteFormManager.items={};BX.Crm.RequisiteFormManager.create=function(e,t){var i=new BX.Crm.RequisiteFormManager;i.initialize(e,t);return this.items[i.getId()]=i}}if(typeof BX.Crm.RequisiteInnerForm==="undefined"){BX.Crm.RequisiteInnerForm=function(){this._id="";this._settings={};this._manager=null;this._serviceUrl="";this._containerId="";this._elementId=0;this._pseudoId=null;this._sort=-1;this._presetId=-1;this._countryId=0;this._enableClientResolution=false;this._enableFieldMasquerading=false;this._multiAddressEditor=null;this._fieldNameTemplate="";this._settingManagerId="";this._settingManager="";this._settingManagerCreateHandler=BX.delegate(this.onFormSettingManagerCreate,this);this._settingManagerSaveHandler=BX.delegate(this.onFormSettingManagerSave,this);this._settingManagerSectionEditHandler=BX.delegate(this.onFormSettingManagerSectionEdit,this);this._settingManagerSectionRemoveHandler=BX.delegate(this.onFormSettingManagerSectionRemove,this);this._settingManagerFormReloadHandler=BX.delegate(this.onFormSettingManagerFormReload,this);this._settingManagerFormReloadHandler=BX.delegate(this.onFormSettingManagerFormReload,this);this._addressCreateHandler=BX.delegate(this.onAddressCreate,this);this._isMarkedAsDeleted=false;this._requisiteExternalSearchManager=null};BX.Crm.RequisiteInnerForm.prototype={initialize:function(e,t){this._id=BX.type.isNotEmptyString(e)?e:"crm_requisite_form_manager";this._settings=t?t:{};this._countryId=this.getSetting("countryId",0);this._enableClientResolution=this.getSetting("enableClientResolution",false);this._manager=this.getSetting("manager",null);if(!this._manager){throw"BX.Crm.RequisiteInnerForm: Could not find parameter 'manager' in settings."}this._serviceUrl=this.getSetting("serviceUrl","");if(!BX.type.isNotEmptyString(this._serviceUrl)){throw"BX.Crm.RequisiteInnerForm: Could not find parameter 'serviceUrl' in settings."}this._containerId=this.getSetting("containerId","");this._elementId=parseInt(this.getSetting("elementId",0));this._enableFieldMasquerading=!!this.getSetting("enableFieldMasquerading",false);this._fieldNameTemplate=this.getSetting("fieldNameTemplate","");this._settingManagerId=this.getSetting("settingManagerId","");if(this._settingManagerId===""){this._settingManagerId=this._id}this._settingManager=BX.CrmFormSettingManager.getItemById(this._settingManagerId,true);if(this._settingManager){this.bind()}else{BX.addCustomEvent(window,"CrmFormSettingManagerCreate",this._settingManagerCreateHandler)}var i="";var s="";switch(this._countryId){case 1:i=BX.Crm.RequisiteFieldType.itin;s="RQ_INN";break;case 14:i=BX.Crm.RequisiteFieldType.sro;s="RQ_EDRPOU";break}var r=this.getSetting("externalRequisiteSearchConfig",null);var n=BX.type.isPlainObject(r)&&r.hasOwnProperty("enabled")&&r["enabled"];var a=[];var o;if(s.length>0){var l=this.getFieldControl(s);if(l&&this._enableClientResolution){o=BX.Crm.RequisiteFieldController.create(s,{countryId:this._countryId,typeId:i,input:l,serviceUrl:this._serviceUrl,callbacks:{onFieldsLoad:BX.delegate(this.setupFields,this)}});if(n){a.push({fieldId:"REQUISITE."+r["requisitePseudoId"]+"."+s,controller:o})}}}this.destroyRequisiteExternalSearchManager();if(n){r["containerId"]=this._containerId;r["countryId"]=this._countryId;r["addressOriginatorId"]=this.getId();r["defaultFieldControllers"]=a;this._requisiteExternalSearchManager=BX.Crm.RequisiteExternalSearchManager.create(null,r)}var d=BX.CrmMultipleAddressEditor.getItemsByFormId(this._id);if(d.length>0){this._multiAddressEditor=d[0];BX.addCustomEvent(this._multiAddressEditor,"CrmMultipleAddressItemCreated",this._addressCreateHandler)}},release:function(e){e=!!e;this.unbind();if(this._settingManager){var t=this._settingManager.getManager();t.release(e);delete BX.CrmEditFormManager.items[t.getId()];this._settingManager=null}if(e){var i=this.getContainer();if(i){BX.remove(i.parentNode)}}},getId:function(){return this._id},getSetting:function(e,t){return this._settings.hasOwnProperty(e)?this._settings[e]:t},getContainer:function(){return BX(this._containerId)},getWrapper:function(){var e=this.getContainer();return BX.type.isElementNode(e)?e.parentNode:null},getNextSiblingWrapper:function(){var e=this.getWrapper();return BX.type.isElementNode(e)?BX.findNextSibling(e,{className:"crm-offer-requisite-form-wrap"}):null},bind:function(){if(this._settingManager){BX.addCustomEvent(this._settingManager,"CrmFormSettingManagerSave",this._settingManagerSaveHandler);BX.addCustomEvent(this._settingManager,"CrmFormSettingManagerSectionEditEnd",this._settingManagerSectionEditHandler);BX.addCustomEvent(this._settingManager,"CrmFormSettingManagerSectionRemove",this._settingManagerSectionRemoveHandler);BX.addCustomEvent(this._settingManager,"CrmFormSettingManagerReloadForm",this._settingManagerFormReloadHandler)}},unbind:function(){if(this._settingManager){BX.removeCustomEvent(this._settingManager,"CrmFormSettingManagerSave",this._settingManagerSaveHandler);BX.removeCustomEvent(this._settingManager,"CrmFormSettingManagerSectionEditEnd",this._settingManagerSectionEditHandler);BX.removeCustomEvent(this._settingManager,"CrmFormSettingManagerSectionRemove",this._settingManagerSectionRemoveHandler);BX.removeCustomEvent(this._settingManager,"CrmFormSettingManagerReloadForm",this._settingManagerFormReloadHandler)}},getElementId:function(){return this._elementId},getFieldControl:function(e){var t=document.getElementsByName(this.resolveFieldInputName(e));return t.length>0?t[0]:null},getFieldValue:function(e){var t=this.getFieldControl(e);return t!==null?t.value:""},setFieldValue:function(e,t){var i=this.getFieldControl(e);if(i!==null){i.value=t}},setupFields:function(e){var t=this.getContainer().querySelectorAll('input[type="text"][data-requisite="field"],textarea[data-requisite="field"]');for(var i=0;i<t.length;i++){t[i].value=""}for(var s in e){if(!e.hasOwnProperty(s)){continue}if(s!=="RQ_ADDR"){this.setFieldValue(s,e[s])}else if(this._multiAddressEditor){var r=e[s];for(var n in r){if(!r.hasOwnProperty(n)){continue}var a=r[n];var o=parseInt(n);var l=this._multiAddressEditor.getItemByTypeId(o);if(l===null){l=this._multiAddressEditor.createItem(o,this._id)}l.setup(a)}}}},getElementPseudoId:function(){if(this._pseudoId===null){this._pseudoId=this.getFieldValue("PSEUDO_ID","")}return this._pseudoId},getPresetId:function(){if(this._presetId<0){this._presetId=parseInt(this.getFieldValue("PRESET_ID"));if(isNaN(this._presetId)){this._presetId=0}}return this._presetId},getSort:function(){if(this._sort<0){this._sort=parseInt(this.getFieldValue("SORT"));if(isNaN(this._sort)){this._sort=0}}return this._sort},setSort:function(e){if(!BX.type.isNumber(e)){e=parseInt(e);if(isNaN(e)){e=0}}this._sort=e;this.setFieldValue("SORT",this._sort)},resolveFieldInputName:function(e){if(this._enableFieldMasquerading&&this._fieldNameTemplate!==""){return this._fieldNameTemplate.replace(/#FIELD_NAME#/g,e)}return e},markAsDeleted:function(){if(this._isMarkedAsDeleted){return}this._isMarkedAsDeleted=true;this.destroyRequisiteExternalSearchManager();var e=this.getContainer();if(e){e.appendChild(BX.create("INPUT",{props:{name:this.resolveFieldInputName("DELETED"),type:"hidden",value:"Y"}}));var t=e.parentNode;t.style.display="none"}},isMarkedAsDeleted:function(){return this._isMarkedAsDeleted},onFormSettingManagerCreate:function(e){if(e.getId().toLowerCase()===this._settingManagerId.toLowerCase()){this._settingManager=e;this.bind();BX.removeCustomEvent(window,"CrmFormSettingManagerCreate",this._settingManagerCreateHandler)}},onFormSettingManagerSave:function(e,t){if(this._settingManager===e&&this._enableFieldMasquerading){BX.CrmFormSettingManager.replaceIdentity(t["data"],"rawId")}},onFormSettingManagerSectionEdit:function(e,t){if(this._settingManager===e){t["cancel"]=true;var i=t["section"];var s=i.getAssociatedField();if(s){var r=BX(s["id"]);if(r){r.value=i.getName()}}}},onFormSettingManagerSectionRemove:function(e,t){if(this._settingManager===e){t["cancel"]=true;this.markAsDeleted()}},onFormSettingManagerFormReload:function(e,t){t["cancel"]=true;this._manager.reloadForm(this)},onAddressCreate:function(e,t){if(t.getOriginatorId()===this._id){return}var i=this._manager.getEntityTypeId();var s=this._manager.getEntityId();if(i>0&&s>0){t.setupByEntity(i,s)}},destroyRequisiteExternalSearchManager:function(){if(this._requisiteExternalSearchManager){BX.Crm.RequisiteExternalSearchManager.delete(this._requisiteExternalSearchManager.getId());this._requisiteExternalSearchManager=null}}};BX.Crm.RequisiteInnerForm.create=function(e,t){var i=new BX.Crm.RequisiteInnerForm;i.initialize(e,t);return i}} //# sourceMappingURL=script.map.js
12,304
24,573
0.815751
6848fc584b67e2725c3e6e8d8c3b20ef9b331281
4,825
js
JavaScript
src/packages/@ncigdc/components/Aggregations/FacetHeader.js
KPMP/portal-ui
1033eca57e574df261e1ce2299ed4172bbb52e68
[ "Apache-2.0" ]
null
null
null
src/packages/@ncigdc/components/Aggregations/FacetHeader.js
KPMP/portal-ui
1033eca57e574df261e1ce2299ed4172bbb52e68
[ "Apache-2.0" ]
null
null
null
src/packages/@ncigdc/components/Aggregations/FacetHeader.js
KPMP/portal-ui
1033eca57e574df261e1ce2299ed4172bbb52e68
[ "Apache-2.0" ]
null
null
null
/* @flow */ import React from 'react'; import { compose, defaultProps, setDisplayName, } from 'recompose'; import { css } from 'glamor'; import { parseFilterParam } from '@ncigdc/utils/uri'; import LocationSubscriber from '@ncigdc/components/LocationSubscriber'; import styled from '@ncigdc/theme/styled'; import { ResultHighlights } from '@ncigdc/components/QuickSearch/QuickSearchResults'; import FacetResetButton from '@ncigdc/components/Aggregations/FacetResetButton'; import CloseIcon from '@ncigdc/theme/icons/CloseIcon'; import SearchIcon from '@ncigdc/theme/icons/SearchIcon'; import AngleIcon from '@ncigdc/theme/icons/AngleIcon'; import QuestionIcon from '@ncigdc/theme/icons/Question'; import { Row } from '@ncigdc/uikit/Flex'; import { Tooltip } from '@ncigdc/uikit/Tooltip'; import { internalHighlight } from '@ncigdc/uikit/Highlight'; import { IRawQuery } from '@ncigdc/utils/uri/types'; const Header = styled(Row, { color: ({ theme }) => theme.primary, fontSize: '1.7rem', cursor: 'pointer', alignItems: 'center', justifyContent: 'space-between', padding: '1rem 1.2rem 0.5rem 1.2rem', backgroundColor: 'white', }); const IconsRow = styled(Row, { color: ({ theme }) => theme.greyScale7, lineHeight: '1.48px', fontSize: '1.2em', ':link': { color: ({ theme }) => theme.greyScale7, }, ':visited': { color: ({ theme }) => theme.greyScale7, }, }); const RemoveIcon = styled(CloseIcon, { ':hover::before': { textShadow: ({ theme }) => theme.textShadow, }, color: ({ theme }) => theme.greyScale7, paddingLeft: '2px', }); const MagnifyingGlass = styled(SearchIcon, { ':hover::before': { textShadow: ({ theme }) => theme.textShadow, }, }); const FacetHeader = ({ angleIconRight = false, collapsed, description, DescriptionComponent, field, handleRequestRemove, hasValueSearch, isRemovable, searchValue, setCollapsed, setShowingValueSearch, showingValueSearch, style, title, hover }) => ( <LocationSubscriber> {(ctx: { pathname: string, query: IRawQuery }) => { const currentFilters = ctx.query && parseFilterParam((ctx.query || {}).filters, {}); const spanStyle = { cursor: 'pointer' }; if (angleIconRight) { spanStyle.width = '100%'; } return ( <Header className="test-facet-header" style={style} > <Row onClick={() => setCollapsed(!collapsed)} style={{ flex: 8 }}> <Tooltip Component={ DescriptionComponent ? ( <div style={{ maxWidth: '24em' }}>{DescriptionComponent}</div> ) : null } > {!angleIconRight && ( <AngleIcon style={{ paddingRight: '0.25rem', transform: `rotate(${collapsed ? 270 : 0}deg)`, }} /> )} {searchValue ? internalHighlight(searchValue, title, { backgroundColor: '#FFFF00', }, hover) : <span title={hover}>{title}</span>} {angleIconRight && ( <AngleIcon style={{ display: 'flex', float: 'right', overflow: 'auto', transform: `rotate(${collapsed ? 270 : 0}deg)`, }} /> )} </Tooltip> </Row> <IconsRow style={{ flex: 1, justifyContent: 'flex-end', }} > {description && ( <Tooltip Component={description} {...css({ ':not(:last-child)': { marginRight: 8 } })} > <QuestionIcon /> </Tooltip> )} {hasValueSearch && ( <MagnifyingGlass onClick={() => setShowingValueSearch(!showingValueSearch)} /> )} <FacetResetButton currentFilters={currentFilters} field={field} /> {isRemovable && ( <RemoveIcon aria-label="Close" onClick={handleRequestRemove} onKeyPress={event => event.key === 'Enter' && handleRequestRemove()} role="button" tabIndex="0" /> )} </IconsRow> </Header> ); }} </LocationSubscriber> ); export default compose( setDisplayName('EnhancedFacetHeader'), defaultProps({ handleRequestRemove: () => { }, hasValueSearch: false, isRemovable: false, setShowingValueSearch: () => { }, }), )(FacetHeader);
28.382353
85
0.52829
6849d3e798cbc766fddbe9c86aa76ca468ebf063
5,958
js
JavaScript
public/resources/js/dashboard/profileController.js
mahdanahmad/translator-gator
9634c89cf7138ffeba7ad826aa86c1fd7ad246e3
[ "CC0-1.0" ]
null
null
null
public/resources/js/dashboard/profileController.js
mahdanahmad/translator-gator
9634c89cf7138ffeba7ad826aa86c1fd7ad246e3
[ "CC0-1.0" ]
null
null
null
public/resources/js/dashboard/profileController.js
mahdanahmad/translator-gator
9634c89cf7138ffeba7ad826aa86c1fd7ad246e3
[ "CC0-1.0" ]
null
null
null
app.controller('ProfileController', ['$scope', 'localStorageService', '$state', '$window', '$location', 'fetcher', 'config', 'messageHelper', 'Notification', function ($scope, localStorageService, $state, $window, $location, fetcher, config, messageHelper, Notification) { 'use strict'; $scope.$parent.hideHeader = true; $scope.$parent.needClose = true; $scope.$parent.hideNavbar = false; $scope.slides = ['leaderboard', 'details']; $scope.index = 0; $scope.profileDetails = {}; $scope.language_list = {}; $scope.leaderboard = []; $scope.isEdited = false; $scope.showRedeem = false $scope.twitter = { text : config.twitter_text, hashtags : config.twitter_hashtag, url : config.twitter_url .replace('((baseURL))', $location.protocol() + "%3A%2F%2F" + $location.host()) .replace('((referral))', "ref%3D" + localStorageService.get('username')), }; $scope.nextSlide = function() { if ($scope.index < $scope.slides.length - 1) { $scope.index++; } else { $scope.index = 0; } }; $scope.prevSlide = function() { if ($scope.index > 0) { $scope.index--; } else { $scope.index = $scope.slides.length - 1; } }; $scope.goTo = function(index) { $scope.index = index; } $scope.goToRedeem = function() { $state.go('dashboard.redeem'); } $scope.toggleSelection = function (language_id) { var idx = $scope.profileDetails.user.languages.indexOf(language_id); if (idx > -1) { $scope.profileDetails.user.languages.splice(idx, 1); } else { $scope.profileDetails.user.languages.push(language_id); } }; $scope.editProfile = function () { var data = { // email : $scope.profileDetails.email, languages : JSON.stringify($scope.profileDetails.user.languages), }; if ($scope.old_password) { if ($scope.new_password == $scope.password_again) { data.old_password = CryptoJS.SHA1($scope.old_password).toString(); data.new_password = CryptoJS.SHA1($scope.new_password).toString(); } else { Notification.error("Your new password didn't match"); $scope.old_password = ""; $scope.new_password = ""; $scope.password_again = ""; return false; } } else { } fetcher.putUser(localStorageService.get('_id'), data, function (response) { $scope.old_password = ""; $scope.new_password = ""; $scope.password_again = ""; if ((response.status_code == "200") && (response.response == "OK")) { $scope.isEdited = false; Notification.info("Your profile successfully updated."); // init(); } else { Notification.error(response.message); } }); }; $scope.edited = function() { // console.log($scope.isEdited); $scope.isEdited = !$scope.isEdited; } $scope.share = function(type) { switch (type) { case "facebook" : FB.ui({ method : 'feed', name : config.fb_name, caption : config.fb_caption .replace("((point))", $scope.$parent.points) .replace('((baseURL))', $location.protocol() + "://" + $location.host()) .replace('((referral))', "ref=" + localStorageService.get('username')), description : config.fb_description .replace("((point))", $scope.$parent.points) .replace('((baseURL))', $location.protocol() + "://" + $location.host()) .replace('((referral))', "ref=" + localStorageService.get('username')), link : config.fb_link .replace('((baseURL))', $location.protocol() + "://" + $location.host()) .replace('((referral))', "ref=" + localStorageService.get('username')), picture : config.fb_picture .replace('((baseURL))', $location.protocol() + "://" + $location.host()), }, function(response){}); break; case "twitter" : $scope.twitter.text = $scope.twitter.text.replace("((point))", $scope.$parent.points); break; case "path" : break; default : break; } } var init = function () { fetcher.getLanguage(function (response) { _.each(response.result, function(val, key) { $scope.language_list[val._id] = val.language_name; }); }); fetcher.getUser(localStorageService.get('_id'), function(response) { if ((response.status_code) == "200" && (response.response == "OK")) { $scope.profileDetails = response.result; $scope.$parent.points = response.result.user.point; $scope.$parent.health = response.result.user.health; $scope.$parent.max_health = response.result.max_health; $scope.showRedeem = response.result.redeem_time; } }); fetcher.getLeaderboard(function (response) { $scope.leaderboard = response.result; }); }; init(); }]);
37.471698
272
0.485733
684a388a8022906418993ce239a4ae882269adc5
4,573
js
JavaScript
lib/yamlParser.js
deconltd/serverless-step-functions
be44120631159e67b97c87161acbb51fe8f01b86
[ "MIT" ]
null
null
null
lib/yamlParser.js
deconltd/serverless-step-functions
be44120631159e67b97c87161acbb51fe8f01b86
[ "MIT" ]
null
null
null
lib/yamlParser.js
deconltd/serverless-step-functions
be44120631159e67b97c87161acbb51fe8f01b86
[ "MIT" ]
null
null
null
'use strict'; const BbPromise = require('bluebird'); const path = require('path'); const _ = require('lodash'); module.exports = { yamlParse() { const servicePath = this.serverless.config.servicePath; if (!servicePath) { return BbPromise.resolve(); } const fromYamlFile = serverlessYmlPath => this.serverless.yamlParser.parse(serverlessYmlPath); let parse = null; const serviceFileName = this.options.config || this.serverless.config.serverless.service.serviceFilename || 'serverless.yml'; const serverlessYmlPath = path.join(servicePath, serviceFileName); if (['.js', '.json'].includes(path.extname(serverlessYmlPath))) { parse = this.loadFromRequiredFile; } else { parse = fromYamlFile; } return parse(serverlessYmlPath) .then(serverlessFileParam => this.serverless.variables.populateObject(serverlessFileParam) .then((parsedObject) => { this.serverless.service.stepFunctions = { validate: parsedObject.stepFunctions ? parsedObject.stepFunctions.validate : false, }; this.serverless.service.stepFunctions.stateMachines = parsedObject.stepFunctions && parsedObject.stepFunctions.stateMachines ? parsedObject.stepFunctions.stateMachines : {}; this.serverless.service.stepFunctions.activities = parsedObject.stepFunctions && parsedObject.stepFunctions.activities ? parsedObject.stepFunctions.activities : []; if (!this.serverless.pluginManager.cliOptions.stage) { this.serverless.pluginManager.cliOptions.stage = this.options.stage || (this.serverless.service.provider && this.serverless.service.provider.stage) || 'dev'; } if (!this.serverless.pluginManager.cliOptions.region) { this.serverless.pluginManager.cliOptions.region = this.options.region || (this.serverless.service.provider && this.serverless.service.provider.region) || 'us-east-1'; } this.serverless.variables.populateService(this.serverless.pluginManager.cliOptions); return BbPromise.resolve(); })); }, // This function must be ignored since mocking the require system is more // dangerous than beneficial loadFromRequiredFile(serverlessYmlPath) { /* istanbul ignore next */ // eslint-disable-next-line global-require, import/no-dynamic-require const fileContents = require(serverlessYmlPath); /* istanbul ignore next */ return BbPromise.resolve(fileContents); }, getAllStateMachines() { if (Object.prototype.toString.call(this.serverless.service.stepFunctions.stateMachines) !== '[object Object]') { const errorMessage = [ 'stateMachines property is not an object', ' Please check the README for more info.', ].join(''); throw new this.serverless.classes .Error(errorMessage); } return Object.keys(this.serverless.service.stepFunctions.stateMachines); }, getStateMachine(stateMachineName) { if (stateMachineName in this.serverless.service.stepFunctions.stateMachines) { return this.serverless.service.stepFunctions.stateMachines[stateMachineName]; } throw new this.serverless.classes .Error(`stateMachine "${stateMachineName}" doesn't exist in this Service`); }, isStateMachines() { if (this.serverless.service.stepFunctions != null && this.serverless.service.stepFunctions.stateMachines != null && !_.isEmpty(this.serverless.service.stepFunctions.stateMachines)) { return true; } return false; }, getAllActivities() { if (!Array.isArray(this.serverless.service.stepFunctions.activities)) { const errorMessage = [ 'activities property is not an array', ' Please check the README for more info.', ].join(''); throw new this.serverless.classes .Error(errorMessage); } return this.serverless.service.stepFunctions.activities; }, getActivity(activityName) { if (this.serverless.service.stepFunctions.activities.indexOf(activityName) !== -1) { return activityName; } throw new this.serverless.classes .Error(`activity "${activityName}" doesn't exist in this Service`); }, isActivities() { if (this.serverless.service.stepFunctions != null && this.serverless.service.stepFunctions.activities != null && !_.isEmpty(this.serverless.service.stepFunctions.activities)) { return true; } return false; }, };
36.584
129
0.680953
684b6b140bf9e42805df64f9bc675a49c89330ca
3,449
js
JavaScript
src/components/pages/AccountSettings/RenderAccountSettings.js
Lambda-School-Labs/story-squad-fe-a
40d89d7da6c2ed30768258310b750c8aa496c8ea
[ "MIT" ]
4
2021-02-16T22:05:13.000Z
2021-05-04T01:33:11.000Z
src/components/pages/AccountSettings/RenderAccountSettings.js
Lambda-School-Labs/scribble-stadium-fe
99e0a363fab51758f0d0b5a8d4168c34f41d9296
[ "MIT" ]
64
2021-07-16T02:06:18.000Z
2021-11-16T14:25:55.000Z
src/components/pages/AccountSettings/RenderAccountSettings.js
Lambda-School-Labs/story-squad-fe-a
40d89d7da6c2ed30768258310b750c8aa496c8ea
[ "MIT" ]
19
2020-11-11T19:25:52.000Z
2021-05-01T00:13:08.000Z
import React, { useState, useEffect } from 'react'; import { Modal, Button, Form } from 'antd'; import { useAuth0 } from '@auth0/auth0-react'; import bc from 'bcryptjs'; import { getProfileData } from '../../../api'; import PinInput from 'react-pin-input'; import AccountSettingsForm from '../AccountSettingsForm/AccountSettingsForm'; function RenderAccountSettings() { const { user } = useAuth0(); const [unlock, setUnlock] = useState(true); const [error, setError] = useState(false); const [userInfo, setUserInfo] = useState(); const [isModalVisible, setIsModalVisible] = useState(false); //Grab the parents userInfo so we can validate their information (pin) useEffect(() => { getProfileData(user).then(res => { const parent = res.find(user => user.type === 'Parent'); if (parent !== null) { setUserInfo(parent); } }); }, [user]); //These functions handle's exiting the modal once it is activated const handleModal = () => { setIsModalVisible(false); }; // this function runs once the user has inputted the correct pin. //It toggles the opacity and disabled prop of the editFormsAndButtonsContainer // allowing the user to see that they can now access the elements to update their account const onFinish = value => { setUnlock(!unlock); setIsModalVisible(!isModalVisible); }; let pin; return ( <div className="accountSettingsContainer"> <Modal visible={isModalVisible} onCancel={handleModal} afterClose={() => pin.clear()} centered="true" width="25vw" bodyStyle={{ display: 'flex', flexDirection: 'column', alignItems: 'center', }} > <h4>Enter Pin</h4> <Form name="verify" onFinish={onFinish} initialValues=""> <PinInput length={4} ref={p => (pin = p)} initialValue="" secret={true} type="numeric" inputMode="number" focus={true} style={{ padding: '10px', borderRadius: '20px' }} inputStyle={{ borderRadius: '15px' }} inputFocusStyle={{ borderColor: 'blue' }} onComplete={(value, index) => { const x = bc.compareSync(value, userInfo.PIN); if (x === true) { onFinish(); } else { setError(true); } }} autoSelect={true} /> <p style={error ? null : { display: 'none' }}>Incorrect PIN!</p> </Form> </Modal> <div className="textAndButtonContainer"> <div className="editText"> <h3>Edit Account Settings</h3> </div> </div> <div className="editFormsAndButtonsContainer" style={unlock ? { opacity: '.3' } : null} > <AccountSettingsForm disabled={unlock} /> </div> <div className="settings-buttons-container"> <button className="plainButton" style={unlock ? { opacity: '.3' } : null} disabled={unlock} > Edit Credit Card Info </button> <br /> <button className="plainButton" style={unlock ? { opacity: '.3' } : null} disabled={unlock} > Edit Subscription Plan </button> </div> </div> ); } export default RenderAccountSettings;
29.991304
91
0.559872
684bd963f460710a63f1f31497993a923b22f079
30,094
js
JavaScript
src/Input/Input.spec.js
maxvektor/wix-style-react
8b77dd51ba741f8e779942474d2074a00fd39249
[ "MIT" ]
null
null
null
src/Input/Input.spec.js
maxvektor/wix-style-react
8b77dd51ba741f8e779942474d2074a00fd39249
[ "MIT" ]
null
null
null
src/Input/Input.spec.js
maxvektor/wix-style-react
8b77dd51ba741f8e779942474d2074a00fd39249
[ "MIT" ]
null
null
null
import React from 'react'; import sinon from 'sinon'; import inputDriverFactory from './Input.driver'; import Input from '.'; import { createDriverFactory } from 'wix-ui-test-utils/driver-factory'; import { inputTestkitFactory, tooltipTestkitFactory } from '../../testkit'; import { inputTestkitFactory as enzymeInputTestkitFactory } from '../../testkit/enzyme'; import { isTestkitExists, isEnzymeTestkitExists, } from '../../test/utils/testkit-sanity'; import { makeControlled, resolveIn } from '../../test/utils'; import { mount } from 'enzyme'; import { createRendererWithDriver, cleanup, render, } from '../../test/utils/unit'; import Search from '../new-icons/Search'; describe('Input', () => { /* eslint-disable-next-line no-shadow */ const render = createRendererWithDriver(inputDriverFactory); const createDriver = createDriverFactory(inputDriverFactory); const ControlledInput = makeControlled(Input); afterEach(() => { cleanup(); }); describe('test tooltip', () => { it('should display the error tooltip on hover', () => { const driver = createDriver( <Input error errorMessage="I'm the error message" />, ); const dataHook = driver.getTooltipDataHook(); const wrapper = driver.getTooltipElement(); const tooltipDriver = tooltipTestkitFactory({ wrapper, dataHook }); tooltipDriver.mouseEnter(); return resolveIn(500).then(() => { expect(tooltipDriver.getContent()).toBe("I'm the error message"); }); }); describe('tooltipPlacement attribute', () => { ['top', 'bottom', 'left', 'right'].forEach(placement => { it(`should have a tooltip positioned to the ${placement}`, () => { const driver = createDriver( <Input error errorMessage="I'm the error message" theme="amaterial" tooltipPlacement={placement} />, ); const dataHook = driver.getTooltipDataHook(); const wrapper = driver.getTooltipElement(); const tooltipDriver = tooltipTestkitFactory({ wrapper, dataHook }); tooltipDriver.mouseEnter(); return resolveIn(500).then(() => { expect(tooltipDriver.getPlacement()).toBe(placement); }); }); }); }); describe('onTooltipShow attribute (only for amaterial theme for now)', () => { it('should be called when error tooltip is active', () => { const onTooltipShow = sinon.spy(); const driver = createDriver( <Input theme="amaterial" error errorMessage="I'm the error message" onTooltipShow={onTooltipShow} />, ); const dataHook = driver.getTooltipDataHook(); const wrapper = driver.getTooltipElement(); const tooltipDriver = tooltipTestkitFactory({ wrapper, dataHook }); tooltipDriver.mouseEnter(); return resolveIn(500).then(() => { expect(onTooltipShow.calledOnce).toBeTruthy(); }); }); it('should be called when help tooltip is active (only for amaterial theme for now)', () => { const onTooltipShow = sinon.spy(); const driver = createDriver( <Input theme="amaterial" help helpMessage="I'm the help message" onTooltipShow={onTooltipShow} />, ); const dataHook = driver.getTooltipDataHook(); const wrapper = driver.getTooltipElement(); const tooltipDriver = tooltipTestkitFactory({ wrapper, dataHook }); tooltipDriver.mouseEnter(); return resolveIn(500).then(() => { expect(onTooltipShow.calledOnce).toBeTruthy(); }); }); }); }); describe('enterText driver method', () => { it('passes the name and value attribute', () => { const onChange = jest.fn(); const props = { type: 'text', name: 'gal', onChange, }; const driver = createDriver(<Input {...props} />); driver.enterText('some text'); expect(onChange).toHaveBeenCalledTimes(1); const eventTarget = onChange.mock.calls[0][0].target; expect(eventTarget).toEqual({ name: 'gal', type: 'text', value: 'some text', }); }); }); describe('name attribute', () => { it('should pass down to the wrapped input', () => { const props = { name: 'hello', }; const driver = createDriver(<Input {...props} />); expect(driver.getName()).toEqual(props.name); }); }); describe('type attribute', () => { it('should pass down to the wrapped input', () => { const props = { type: 'number', }; const driver = createDriver(<Input {...props} />); expect(driver.getType()).toEqual(props.type); }); }); describe('value attribute', () => { it('should pass down to the wrapped input', () => { const props = { value: 'hello', onChange: () => {}, }; const driver = createDriver(<Input {...props} />); expect(driver.getValue()).toEqual(props.value); }); }); describe('required attribute', () => { it('should pass down to the wrapped input', () => { const driver = createDriver(<Input required />); expect(driver.getRequired()).toBeTruthy(); }); }); describe('autocomplete attribute', () => { it('should pass down to the wrapped input', () => { const driver = createDriver(<Input autocomplete="email" />); expect(driver.getAutocomplete()).toBe('email'); }); }); describe('defaultValue attribute', () => { it('should pass down to the wrapped input', () => { const defaultValue = 'hello'; const driver = createDriver(<Input defaultValue={defaultValue} />); expect(driver.getDefaultValue()).toEqual(defaultValue); }); }); describe('tabIndex attribute', () => { it('should pass down to the wrapped input', () => { const tabIndex = 1; const driver = createDriver(<Input tabIndex={tabIndex} />); expect(driver.getTabIndex()).toEqual(tabIndex); }); }); describe('readOnly attribute', () => { it('should pass down to the wrapped input', () => { const driver = createDriver(<Input readOnly />); expect(driver.getReadOnly()).toBeTruthy(); }); it('should pass down to the wrapped input with default false value', () => { const driver = createDriver(<Input />); expect(driver.getReadOnly()).toBeFalsy(); }); }); describe('textOverflow attribute', () => { it('should pass down to the wrapped input', () => { const driver = createDriver(<Input textOverflow="ellipsis" />); expect(driver.getTextOverflow()).toBe('ellipsis'); }); it('should pass down to the wrapped input with default clip value', () => { const driver = createDriver(<Input />); expect(driver.getTextOverflow()).toBe('clip'); }); }); describe('`type` prop', () => { it('should set type attribute', () => { const driver = createDriver(<Input type="number" />); expect(driver.getType()).toBe('number'); }); describe('when "number"', () => { it('should prevent onChange to be called with non numeric values', () => { const onChange = jest.fn(); const driver = createDriver( <Input type="number" onChange={onChange} value="2" />, ); driver.trigger('change', { target: { value: 'a' } }); driver.trigger('keyPress', { target: { key: 'l' } }); expect(driver.getValue()).toEqual('2'); expect(onChange).not.toHaveBeenCalled(); }); }); }); describe('status attribute', () => { it('deprecated - should display an error icon if error is true', () => { const driver = createDriver(<Input error />); expect(driver.hasExclamation()).toBeTruthy(); expect(driver.hasError()).toBeTruthy(); }); it('should display an error icon if status is error', () => { const driver = createDriver(<Input status={'error'} />); expect(driver.hasExclamation()).toBeTruthy(); expect(driver.hasError()).toBeTruthy(); }); it('should display a loader icon if status is loading', () => { const driver = createDriver(<Input status={'loading'} />); expect(driver.hasLoader()).toBeTruthy(); }); }); describe('help attribute', () => { it('should display an help icon if help is true', () => { const driver = createDriver(<Input help />); expect(driver.hasHelp()).toBeTruthy(); }); }); describe('unit attribute', () => { it('should the unit text if passed', () => { const unit = '$'; const driver = createDriver(<Input unit={unit} />); expect(driver.getUnit()).toEqual(unit); }); it('should invoke onInputClicked while click on unit', () => { const onInputClicked = jest.fn(); const driver = createDriver( <Input unit="$" onInputClicked={onInputClicked} />, ); driver.clickUnit(); expect(onInputClicked).toBeCalled(); }); it('should not fail while click on unit without passing onInputClicked', () => { const driver = createDriver(<Input unit="$" />); expect(() => { driver.clickUnit(); }).not.toThrowError(/onInputClicked is not a function/); }); }); describe('magnifyingGlass attribute', () => { it('should display a magnifying glass icon if magnifyingGlass is true', () => { const driver = createDriver(<Input magnifyingGlass />); expect(driver.hasMagnifyingGlass()).toBeTruthy(); }); it('should not display a magnifying glass icon if magnifyingGlass is false', () => { const driver = createDriver(<Input magnifyingGlass={false} />); expect(driver.hasMagnifyingGlass()).toBeFalsy(); }); it('should not display a magnifying glass icon if error is true', () => { const driver = createDriver(<Input magnifyingGlass error />); expect(driver.hasMagnifyingGlass()).toBeFalsy(); }); it('should invoke onInputClicked while click on magnifying glass icon', () => { const onInputClicked = jest.fn(); const driver = createDriver( <Input magnifyingGlass onInputClicked={onInputClicked} />, ); driver.clickMagnifyingGlass(); expect(onInputClicked).toBeCalled(); }); it('should not fail while click on magnifying glass icon without passing onInputClicked', () => { const driver = createDriver(<Input magnifyingGlass />); expect(() => { driver.clickMagnifyingGlass(); }).not.toThrowError(/onInputClicked is not a function/); }); }); describe('menuArrow attribute', () => { it('should display a menu arrow icon if menuArrow is true', () => { const driver = createDriver(<Input menuArrow />); expect(driver.hasMenuArrow()).toBeTruthy(); }); it('should not display a menu arrow icon if menuArrow is false', () => { const driver = createDriver(<Input menuArrow={false} />); expect(driver.hasMenuArrow()).toBeFalsy(); }); it('should display a menu arrow icon if error is true', () => { const driver = createDriver(<Input menuArrow error />); expect(driver.hasMenuArrow()).toBeTruthy(); }); it('should have a narrow error style of arrow is shown', () => { const driver = createDriver(<Input menuArrow error />); expect(driver.isNarrowError()).toBeTruthy(); expect(driver.hasExclamation()).toBeTruthy(); }); it('should not display a menu arrow icon if magnifyingGlass is true', () => { const driver = createDriver(<Input menuArrow magnifyingGlass />); expect(driver.hasMenuArrow()).toBeFalsy(); }); it('should invoke onInputClicked while click on menu arrow icon', () => { const onInputClicked = jest.fn(); const driver = createDriver( <Input menuArrow onInputClicked={onInputClicked} />, ); driver.clickMenuArrow(); expect(onInputClicked).toBeCalled(); }); it('should not fail while click on menu arrow icon without passing onInputClicked', () => { const driver = createDriver(<Input menuArrow />); expect(() => { driver.clickMenuArrow(); }).not.toThrowError(/onInputClicked is not a function/); }); }); describe('rtl attribute', () => { it('should have rtl if rtl prop is true', () => { const driver = createDriver(<Input rtl />); expect(driver.isRTL()).toBeTruthy(); }); it('should not have rtl if rtl prop is false', () => { const driver = createDriver(<Input rtl={false} />); expect(driver.isRTL()).toBeFalsy(); }); }); describe('onChange attribute', () => { it('should be called when text is entered to the input', () => { const onChange = jest.fn(); const event = { target: { value: 'world' } }; const driver = createDriver(<Input onChange={onChange} />); driver.trigger('change', event); expect(onChange).toBeCalled(); }); }); describe('onKeyUp attribute', () => { it('should be called after keybord key got pressed and then released', () => { const onKeyUp = jest.fn(); const event = { target: { value: 'world' } }; const driver = createDriver(<Input onKeyUp={onKeyUp} />); driver.trigger('keyUp', event); expect(onKeyUp).toBeCalled(); }); }); describe('onFocus attribute', () => { it('should be called when the input gets focused', () => { const onFocus = jest.fn(); const driver = createDriver(<Input onFocus={onFocus} />); driver.trigger('focus'); expect(onFocus).toBeCalled(); }); }); describe('onBlur attribute', () => { it('should be called when the input gets blured', () => { const onBlur = jest.fn(); const driver = createDriver(<Input onBlur={onBlur} />); driver.trigger('blur'); expect(onBlur).toBeCalled(); }); }); describe('onKeyDown attribute', () => { it('should be called when text is entered to the wrapped input', () => { const onKeyDown = jest.fn(); const event = { keyCode: 40 }; const driver = createDriver(<Input onKeyDown={onKeyDown} />); driver.trigger('keyDown', event); expect(onKeyDown).toBeCalled(); }); }); describe('onPaste attribute', () => { it('should be called when pasting text to the input', () => { const onPaste = jest.fn(); const driver = createDriver(<Input onPaste={onPaste} />); driver.trigger('paste'); expect(onPaste).toBeCalled(); }); }); describe('forceFocus attribute', () => { it('should have focus class on input if forceFocus is true', () => { const driver = createDriver(<Input forceFocus />); expect(driver.isFocusedStyle()).toBeTruthy(); }); }); describe('forceHover attribute', () => { it('should have hover class on input if forceHover is true', () => { const driver = createDriver(<Input forceHover />); expect(driver.isHoveredStyle()).toBeTruthy(); }); it('should be hovered if forceFocus is false and forceHover is true', () => { const driver = createDriver(<Input forceHover forceFocus={false} />); expect(driver.isHoveredStyle()).toBeTruthy(); }); }); describe('disable attribute', () => { it('should have disabled class on input if disabled is true', () => { const driver = createDriver(<Input disabled />); expect(driver.isDisabled()).toBeTruthy(); }); }); describe('autoFocus attribute', () => { it('Mounting an input element with autoFocus=false, should give it the focus', () => { const { driver, rerender } = render(<Input autoFocus={false} />); expect(driver.isFocus()).toBeFalsy(); rerender(<Input autoFocus />); expect(driver.isFocus()).toBeFalsy(); }); it('Mounting an input element with autoFocus=true, gives it the focus', () => { const driver = createDriver(<Input autoFocus />); expect(driver.isFocus()).toBeTruthy(); }); describe('with value attribute', () => { const value = 'this is a string'; it('Should focus with cursor located at the end of the value', () => { const driver = createDriver(<Input autoFocus value={value} />); expect(driver.getCursorLocation()).toEqual(value.length); }); }); }); describe('driver.focus', () => { it('calling driver.focus (wihtout enzyme) should give focus to the input', () => { const driver = createDriver(<Input autoFocus={false} />); expect(driver.isFocus()).toBeFalsy(); driver.focus(); expect(driver.isFocus()).toBeTruthy(); }); }); describe('Input.focus', () => { it('calling driver.focus (with enzyme) with options, should call the Input instance focus method and pass options', () => { const wrapper = mount(<Input autoFocus={false} dataHook="test" />); const focusMock = jest.fn(); wrapper.instance().input.focus = focusMock; wrapper.instance().focus({ preventScroll: true }); expect(focusMock).toHaveBeenCalledWith({ preventScroll: true }); }); }); describe('theme attribute', () => { it('should set the theme by default to "normal"', () => { const driver = createDriver(<Input />); expect(driver.isOfStyle('normal')).toBeTruthy(); }); it('should allowing setting the theme to "paneltitle"', () => { const driver = createDriver(<Input theme="paneltitle" />); expect(driver.isOfStyle('paneltitle')).toBeTruthy(); }); it('should allow setting the theme to "material"', () => { const driver = createDriver(<Input theme="material" />); expect(driver.isOfStyle('material')).toBeTruthy(); }); it('should allow setting the theme to "flat"', () => { const driver = createDriver(<Input theme="flat" />); expect(driver.isOfStyle('flat')).toBeTruthy(); }); it('should allow setting the theme to "flatdark"', () => { const driver = createDriver(<Input theme="flatdark" />); expect(driver.isOfStyle('flatdark')).toBeTruthy(); }); }); describe('clearButton attribute', () => { it('should be displayed when input text is not empty', () => { const driver = createDriver(<Input value="some value" clearButton />); expect(driver.hasClearButton()).toBe(true); }); it('should not be displayed when input text is empty', () => { const driver = createDriver(<Input value="" clearButton />); expect(driver.hasClearButton()).toBe(false); }); it('should clear input and focus it', () => { const driver = createDriver( <ControlledInput clearButton value="some value" />, ); driver.clickClear(); expect(driver.getValue()).toBe(''); expect(driver.isFocus()).toBe(true); }); it('should trigger onChange on clearing as if input just emptied', () => { const onChange = jest.fn(); const driver = createDriver( <Input onChange={onChange} value="some value" clearButton />, ); driver.clickClear(); expect(onChange).toHaveBeenCalledTimes(1); expect(onChange.mock.calls[0][0].target.value).toBe(''); }); describe.skip('Uncontrolled', () => { // TODO it('should be displayed when using uncontrolled component with defaultValue', () => { const driver = createDriver( <Input defaultValue="some value" clearButton />, ); expect(driver.hasClearButton()).toBe(true); }); // TODO it('should be displayed after entering text into empty uncontrolled input', () => { const driver = createDriver(<Input clearButton />); driver.enterText('some value'); expect(driver.hasClearButton()).toBe(true); }); // TODO it('should clear input when using uncontrolled component', () => { const driver = createDriver(<Input clearButton />); driver.enterText('some value'); driver.clickClear(); expect(driver.getValue()).toBe(''); expect(driver.isFocus()).toBe(true); }); // TODO it('should be hidden after default value was overridden with some input', () => { const driver = createDriver( <Input defaultValue="some default value" clearButton />, ); expect(driver.hasClearButton()).toBe(true); driver.clearText(); driver.enterText('new value'); expect(driver.hasClearButton()).toBe(false); }); }); }); describe('onClear attribute', () => { it('should display clear-button when input text is not empty', () => { const driver = createDriver( <Input value="some value" onClear={() => null} />, ); expect(driver.hasClearButton()).toBe(true); }); it('should invoke callback', () => { const onClear = sinon.spy(); const driver = createDriver( <Input onClear={onClear} value="some value" />, ); expect(driver.hasClearButton()).toBe(true); driver.clickClear(); expect(onClear.calledOnce).toBe(true); }); }); describe('clear method', () => { it('should fire onChange one time when onChange implementation fires clear', () => { class ControlledInputWithRef extends React.Component { state = { value: '', }; constructor(props) { super(props); this.handleChange = this.handleChange.bind(this); } handleChange(e) { this.setState({ value: e.target.value }); this.input.clear(); } render() { return ( <Input ref={comp => (this.input = comp)} value={this.state.value} onChange={this.handleChange} dataHook="my-input" /> ); } } const handleChangeSpy = jest.spyOn( ControlledInputWithRef.prototype, 'handleChange', ); const { driver } = render(<ControlledInputWithRef />, 'my-input'); driver.enterText('foo'); expect(handleChangeSpy).toHaveBeenCalledTimes(2); expect(handleChangeSpy.mock.calls[0][0].target.value).toBe('foo'); expect(handleChangeSpy.mock.calls[1][0].target.value).toBe(''); }); }); describe('prefix attribute', () => { it('should allow adding a custom prefix component', () => { const driver = createDriver( <Input prefix={<div className="my-button" />} />, ); expect(driver.hasPrefix()).toBeTruthy(); expect(driver.prefixComponentExists('.my-button')).toBeTruthy(); }); it('should add `withPrefix` classname to input', () => { const driver = createDriver(<Input prefix="hello" />); expect(driver.hasPrefixClass()).toBeTruthy(); }); it('should invoke onInputClicked while click on custom affix', () => { const onInputClicked = jest.fn(); const driver = createDriver( <Input prefix={<Input.Affix>$</Input.Affix>} onInputClicked={onInputClicked} />, ); driver.clickCustomAffix(); expect(onInputClicked).toBeCalled(); }); it('should not fail while click on custom affix without passing onInputClicked', () => { const driver = createDriver( <Input prefix={<Input.Affix>$</Input.Affix>} />, ); expect(() => { driver.clickCustomAffix(); }).not.toThrowError(/onInputClicked is not a function/); }); it('should invoke onInputClicked while click on icon affix', () => { const onInputClicked = jest.fn(); const driver = createDriver( <Input prefix={ <Input.IconAffix dataHook="icon-affix"> <Search /> </Input.IconAffix> } onInputClicked={onInputClicked} />, ); driver.clickIconAffix(); expect(onInputClicked).toBeCalled(); }); it('should not fail while click on icon affix without passing onInputClicked', () => { const driver = createDriver( <Input prefix={ <Input.IconAffix dataHook="icon-affix"> <Search /> </Input.IconAffix> } />, ); expect(() => { driver.clickIconAffix(); }).not.toThrowError(/onInputClicked is not a function/); }); }); describe('suffix attribute', () => { it('should allow adding a custom suffix component', () => { const driver = createDriver( <Input suffix={<div className="my-button" />} />, ); expect(driver.hasSuffix()).toBeTruthy(); expect(driver.suffixComponentExists('.my-button')).toBeTruthy(); }); it('should add `withSuffix` classname to input', () => { const driver = createDriver(<Input suffix="hello" />); expect(driver.hasSuffixClass()).toBeTruthy(); }); it('should add `withSuffixes` classname to input when more than 1 suffix applied', () => { const driver = createDriver(<Input suffix="hello" magnifyingGlass />); expect(driver.hasSuffixesClass()).toBeTruthy(); }); it('should render menu arrow as the last suffix', () => { const driver = createDriver(<Input suffix="hello" menuArrow />); expect(driver.isMenuArrowLast()).toBeTruthy(); }); it('should invoke onInputClicked while click on custom affix', () => { const onInputClicked = jest.fn(); const driver = createDriver( <Input suffix={<Input.Affix>$</Input.Affix>} onInputClicked={onInputClicked} />, ); driver.clickCustomAffix(); expect(onInputClicked).toBeCalled(); }); it('should not fail while click on custom affix without passing onInputClicked', () => { const driver = createDriver( <Input suffix={<Input.Affix>$</Input.Affix>} />, ); expect(() => { driver.clickCustomAffix(); }).not.toThrowError(/onInputClicked is not a function/); }); it('should invoke onInputClicked while click on icon affix', () => { const onInputClicked = jest.fn(); const driver = createDriver( <Input suffix={ <Input.IconAffix dataHook="icon-affix"> <Search /> </Input.IconAffix> } onInputClicked={onInputClicked} />, ); driver.clickIconAffix(); expect(onInputClicked).toBeCalled(); }); it('should not fail while click on icon affix without passing onInputClicked', () => { const driver = createDriver( <Input suffix={ <Input.IconAffix dataHook="icon-affix"> <Search /> </Input.IconAffix> } />, ); expect(() => { driver.clickIconAffix(); }).not.toThrowError(/onInputClicked is not a function/); }); }); describe('aria attributes', () => { it('should allow adding a custom aria-label', () => { const driver = createDriver(<Input ariaLabel="hello" />); expect(driver.getAriaLabel()).toBe('hello'); }); it('should not have any aria label buy default', () => { const driver = createDriver(<Input />); expect(driver.getAriaLabel()).toBeNull; }); it('should allow adding aria-controls', () => { const driver = createDriver(<Input ariaControls="id" />); expect(driver.getAriaControls()).toBe('id'); }); it('should not have any aria controls by default', () => { const driver = createDriver(<Input />); expect(driver.getAriaControls()).toBeNull; }); it('should allow adding aria-describeby', () => { const driver = createDriver(<Input ariaDescribedby="blabla" />); expect(driver.getAriaDescribedby()).toBe('blabla'); }); it('should not have any aria-describeby buy default', () => { const driver = createDriver(<Input />); expect(driver.getAriaDescribedby()).toBeNull; }); }); describe('className prop', () => { it('should set className on root element', () => { const className = 'foo'; const driver = createDriver(<Input className={className} />); expect(driver.getRootElementClasses()).toContain(className); }); it('should NOT affect the native input classes when className passed', () => { const className = 'foo'; const driver = createDriver( <Input className={className} suffix={<div className="my-button" />} />, ); expect(driver.getInputElementClasses()).not.toContain(className); expect(driver.suffixComponentExists('.my-button')).toBeTruthy(); }); }); }); describe('testkit exists', () => { afterEach(() => cleanup()); it('should NOT exist', () => { const dataHook1 = 'hook1'; const dataHook2 = 'hook2'; const value = 'hello'; const onChange = () => {}; const { container } = render( <Input value={value} onChange={onChange} dataHook={dataHook1} />, ); const driver = inputTestkitFactory({ wrapper: container, dataHook: dataHook2, }); expect(driver.exists()).toBeFalsy(); }); }); describe('testkit', () => { it('should exist', () => { const value = 'hello'; const onChange = () => {}; expect( isTestkitExists( <Input value={value} onChange={onChange} />, inputTestkitFactory, ), ).toBe(true); }); it('should NOT exist', () => { const value = 'hello'; const onChange = () => {}; expect( isTestkitExists( <Input value={value} onChange={onChange} />, inputTestkitFactory, ), ).toBe(true); }); }); describe('enzyme testkit', () => { it('should exist', () => { const value = 'hello'; const onChange = () => {}; expect( isEnzymeTestkitExists( <Input value={value} onChange={onChange} />, enzymeInputTestkitFactory, mount, ), ).toBe(true); }); });
32.083156
127
0.589885
684cf4ba675234e19a2b21e977978676870453b3
3,322
js
JavaScript
src/reducers.js
cscheffauer/pokedex
1c95f3c7dbd653d55f0c3082fb790a40e24d5396
[ "MIT" ]
null
null
null
src/reducers.js
cscheffauer/pokedex
1c95f3c7dbd653d55f0c3082fb790a40e24d5396
[ "MIT" ]
9
2020-04-28T18:07:56.000Z
2022-02-27T03:17:13.000Z
src/reducers.js
cscheffauer/pokedex
1c95f3c7dbd653d55f0c3082fb790a40e24d5396
[ "MIT" ]
null
null
null
import { INITIAL_ROUTE, CHANGE_SEARCH_FIELD, CHANGE_EXPANDED, CHANGE_ROUTE } from './constants' //get constants form constants file /** * CHANGEROUTE REDUCER */ //define the initialstate in the reducer const initialRoute = { route: INITIAL_ROUTE //initial object in the redux store } //searchPeople function -> use default params (initialState, empty action object) //reducers get a input of a state and action -> if this one get something we care about (like searching people), we will do something export const changeRoute = (state = initialRoute, action = {}) => { switch (action.type) { case CHANGE_ROUTE: //if a CHANGE_SEARCH_FIELD action comes in, we will do something return Object.assign({}, state, { route: action.payload }) //1st param= new object //2nd param= state we receiving //3rd param=is what we want to change in the state //so what we return is a new object with everything in the state + new searchField -> 2nd principle: State is read only default: return state //if a other action comes in, return the state as it was passed over and do not change anything } } /** * SEARCHPEOPLE REDUCER */ //define the initialstate in the reducer const initialStateSearch = { searchField: '' //initial object in the redux store } //searchPeople function -> use default params (initialState, empty action object) //reducers get a input of a state and action -> if this one get something we care about (like searching people), we will do something export const searchPokemon = (state = initialStateSearch, action = {}) => { switch (action.type) { case CHANGE_SEARCH_FIELD: //if a CHANGE_SEARCH_FIELD action comes in, we will do something return Object.assign({}, state, { searchField: action.payload }) //1st param= new object //2nd param= state we receiving //3rd param=is what we want to change in the state //so what we return is a new object with everything in the state + new searchField -> 2nd principle: State is read only default: return state //if a other action comes in, return the state as it was passed over and do not change anything } } /** * CHANGEROUTE REDUCER */ //define the initialstate in the reducer const initialExpanded = { id: undefined, }; //searchPeople function -> use default params (initialState, empty action object) //reducers get a input of a state and action -> if this one get something we care about (like searching people), we will do something export const changeExpanded = (state = initialExpanded, action = {}) => { switch (action.type) { case CHANGE_EXPANDED: //if a CHANGE_SEARCH_FIELD action comes in, we will do something return Object.assign({}, state, { id: action.payload }) //1st param= new object //2nd param= state we receiving //3rd param=is what we want to change in the state //so what we return is a new object with everything in the state + new searchField -> 2nd principle: State is read only default: return state //if a other action comes in, return the state as it was passed over and do not change anything } }
36.911111
133
0.674594
684d4150af78ba7ac347a81697bea80fb5a0b500
369
js
JavaScript
packages/connectors/hull-clearbit/server/handlers/prospect-properties.js
fossabot/hull-connectors
f9b73b27ee5cf6c3020363139d65dded7c1ea88a
[ "MIT" ]
null
null
null
packages/connectors/hull-clearbit/server/handlers/prospect-properties.js
fossabot/hull-connectors
f9b73b27ee5cf6c3020363139d65dded7c1ea88a
[ "MIT" ]
null
null
null
packages/connectors/hull-clearbit/server/handlers/prospect-properties.js
fossabot/hull-connectors
f9b73b27ee5cf6c3020363139d65dded7c1ea88a
[ "MIT" ]
null
null
null
// @flow import type { HullContext, HullUISelectResponse } from "hull"; const prospect = async (ctx: HullContext): HullUISelectResponse => { const { mappingToOptions } = ctx.helpers; return { status: 200, data: mappingToOptions({ type: "prospect", direction: "incoming", label: "Clearbit Prospect" }) }; }; export default prospect;
23.0625
68
0.655827
684d7034afbb453418d0b601d9a3364b03b228ae
2,072
js
JavaScript
src/store/modules/samples.js
adham-space/alfam
3933060cc1a8ac1e69af9c1fffa6fcdb76eeb235
[ "MIT" ]
null
null
null
src/store/modules/samples.js
adham-space/alfam
3933060cc1a8ac1e69af9c1fffa6fcdb76eeb235
[ "MIT" ]
null
null
null
src/store/modules/samples.js
adham-space/alfam
3933060cc1a8ac1e69af9c1fffa6fcdb76eeb235
[ "MIT" ]
null
null
null
import request from '@/utils/request' import { Message } from 'element-ui' function getSamples(params) { return request({ url: '/products/samples', method: 'GET', params }) } function setSample(_id) { return request({ url: '/products/do-return-sample', data: { _id }, method: 'PUT' }) } const state = { samplesTable: [], tableLoading: false, queryParams: { search_input: 'name', search_text: '', currentPage: 1, perPage: 120, shop: '', return_status: 2 }, total: 0 } const mutations = { SET_QUERY: (state, data) => { state.queryParams[data.key] = data.value }, SET_TABLE_LOADER: (state, status) => { state.tableLoading = status }, SET_TABLE_DATA: (state, data) => { state.total = data.length state.samplesTable = data state.samplesTable.forEach(elem => { const totalArea = elem.products.reduce((acc, val) => acc + val.packTotalArea, 0) const totalNumber = elem.products.reduce((acc, val) => acc + val.item_num, 0) elem.totalArea = totalArea elem.totalNumber = totalNumber }) } } const actions = { GET_SAMPLES: ({ commit, state }) => { return new Promise((resolve, reject) => { commit('SET_TABLE_LOADER', true) getSamples(state.queryParams).then(res => { commit('SET_TABLE_DATA', res.data) commit('SET_TABLE_LOADER', false) resolve() }).catch(err => { commit('SET_TABLE_LOADER', false) reject(err) }) }) }, DO_RETURN: ({ commit }, data) => { return new Promise((resolve, reject) => { commit('SET_TABLE_LOADER', true) setSample(data).then(res => { Message({ message: res.data.message, duration: 2500, type: 'success' }) resolve() }).catch(err => { Message({ message: err.response.data, duration: 2500, type: 'success' }) reject(err) }) }) } } export default { namespaced: true, state, mutations, actions }
21.810526
86
0.571911
684e8db59f568cd912368c83a659db2376f07c3b
1,323
js
JavaScript
server.js
Hayden-code/EventBook
155db46be7cdf99971cce3afafcab14d6316c5e9
[ "MIT" ]
null
null
null
server.js
Hayden-code/EventBook
155db46be7cdf99971cce3afafcab14d6316c5e9
[ "MIT" ]
null
null
null
server.js
Hayden-code/EventBook
155db46be7cdf99971cce3afafcab14d6316c5e9
[ "MIT" ]
null
null
null
const express = require("express"); const { ApolloServer } = require("apollo-server-express"); const path = require("path"); const db = require("./config/connection"); const { typeDefs, resolvers } = require("./schemas"); const authMiddleWare = require("./utils/auth"); require("dotenv").config(); const PORT = process.env.PORT || 3001; async function startApolloServer(typeDefs, resolvers) { const server = new ApolloServer({ typeDefs, resolvers, context: authMiddleWare, }); // const server = new ApolloServer({ // typeDefs, // resolvers, // context: authMiddleWare, // }); await server.start(); const app = express(); app.use( express.urlencoded({ extended: false, }) ); app.use(express.json()); server.applyMiddleware({ app, path: "/graphql", }); // ... other app.use middleware app.use(express.static(path.join(__dirname, "client", "build"))); app.get("*", (req, res) => { res.sendFile(path.join(__dirname, "client", "build", "index.html")); }); await new Promise((resolve) => app.listen({ port: PORT }, resolve)); console.log(`API server running on port ${PORT}!`); console.log( `🚀 Server ready at http://localhost:${PORT}${server.graphqlPath}` ); } db.once("open", () => { startApolloServer(typeDefs, resolvers); });
25.941176
72
0.635676
684f4df063a9ea029248a61041ae475673e88c8e
19,137
js
JavaScript
dist/main-es5.js
ng-model/io
1fb0c9a44628b1d1856676d22d0f9cd706671e17
[ "MIT" ]
null
null
null
dist/main-es5.js
ng-model/io
1fb0c9a44628b1d1856676d22d0f9cd706671e17
[ "MIT" ]
null
null
null
dist/main-es5.js
ng-model/io
1fb0c9a44628b1d1856676d22d0f9cd706671e17
[ "MIT" ]
null
null
null
(function () { function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } (window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"], { /***/ 0: /*!***************************!*\ !*** multi ./src/main.ts ***! \***************************/ /*! no static exports found */ /***/ function _(module, exports, __webpack_require__) { module.exports = __webpack_require__( /*! /Users/manojm/Downloads/angular-ivy-wallhalla/src/main.ts */ "zUnb"); /***/ }, /***/ "9vUh": /*!****************************************!*\ !*** ./src/app/home/home.component.ts ***! \****************************************/ /*! exports provided: HomeComponent */ /***/ function vUh(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomeComponent", function () { return HomeComponent; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( /*! tslib */ "mrSG"); /* harmony import */ var _raw_loader_home_component_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( /*! raw-loader!./home.component.html */ "Gd4t"); /* harmony import */ var _home_component_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( /*! ./home.component.css */ "RV7M"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( /*! @angular/core */ "fXoL"); var HomeComponent = /*#__PURE__*/function () { function HomeComponent() { _classCallCheck(this, HomeComponent); } _createClass(HomeComponent, [{ key: "ngOnInit", value: function ngOnInit() {} }]); return HomeComponent; }(); HomeComponent.ctorParameters = function () { return []; }; HomeComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({ selector: 'app-home', template: _raw_loader_home_component_html__WEBPACK_IMPORTED_MODULE_1__["default"], styles: [_home_component_css__WEBPACK_IMPORTED_MODULE_2__["default"]] })], HomeComponent); /***/ }, /***/ "A3xY": /*!***********************************!*\ !*** ./src/app/app.component.css ***! \***********************************/ /*! exports provided: default */ /***/ function A3xY(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = "p {\n font-family: Lato;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC5jb21wb25lbnQuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsaUJBQWlCO0FBQ25CIiwiZmlsZSI6ImFwcC5jb21wb25lbnQuY3NzIiwic291cmNlc0NvbnRlbnQiOlsicCB7XG4gIGZvbnQtZmFtaWx5OiBMYXRvO1xufSJdfQ== */"; /***/ }, /***/ "AytR": /*!*****************************************!*\ !*** ./src/environments/environment.ts ***! \*****************************************/ /*! exports provided: environment */ /***/ function AytR(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "environment", function () { return environment; }); // This file can be replaced during build by using the `fileReplacements` array. // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. var environment = { production: false }; /***/ }, /***/ "Gd4t": /*!********************************************************************************!*\ !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/home/home.component.html ***! \********************************************************************************/ /*! exports provided: default */ /***/ function Gd4t(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = "<p>home works!</p>\n"; /***/ }, /***/ "RV7M": /*!*****************************************!*\ !*** ./src/app/home/home.component.css ***! \*****************************************/ /*! exports provided: default */ /***/ function RV7M(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJob21lLmNvbXBvbmVudC5jc3MifQ== */"; /***/ }, /***/ "Sy1n": /*!**********************************!*\ !*** ./src/app/app.component.ts ***! \**********************************/ /*! exports provided: AppComponent */ /***/ function Sy1n(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppComponent", function () { return AppComponent; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( /*! tslib */ "mrSG"); /* harmony import */ var _raw_loader_app_component_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( /*! raw-loader!./app.component.html */ "VzVu"); /* harmony import */ var _app_component_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( /*! ./app.component.css */ "A3xY"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( /*! @angular/core */ "fXoL"); var AppComponent = function AppComponent() { _classCallCheck(this, AppComponent); this.name = 'Angular ' + _angular_core__WEBPACK_IMPORTED_MODULE_3__["VERSION"].major; }; AppComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({ selector: 'my-app', template: _raw_loader_app_component_html__WEBPACK_IMPORTED_MODULE_1__["default"], styles: [_app_component_css__WEBPACK_IMPORTED_MODULE_2__["default"]] })], AppComponent); /***/ }, /***/ "VzVu": /*!**************************************************************************!*\ !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/app.component.html ***! \**************************************************************************/ /*! exports provided: default */ /***/ function VzVu(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = "<hello name=\"{{ name }}\"></hello>\n<p>\n Start editing to see some magic happen :)\n</p>"; /***/ }, /***/ "ZAI4": /*!*******************************!*\ !*** ./src/app/app.module.ts ***! \*******************************/ /*! exports provided: AppModule */ /***/ function ZAI4(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function () { return AppModule; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( /*! tslib */ "mrSG"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( /*! @angular/core */ "fXoL"); /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( /*! @angular/platform-browser */ "jhN1"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( /*! @angular/forms */ "3Pt+"); /* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( /*! ./app.component */ "Sy1n"); /* harmony import */ var _angular_service_worker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__( /*! @angular/service-worker */ "Jho9"); /* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__( /*! ../environments/environment */ "AytR"); /* harmony import */ var _home_home_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__( /*! ./home/home.component */ "9vUh"); /* harmony import */ var _app_routing_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__( /*! ./app.routing.module */ "lm+D"); var AppModule = function AppModule() { _classCallCheck(this, AppModule); }; AppModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({ imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_2__["BrowserModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"], _app_routing_module__WEBPACK_IMPORTED_MODULE_8__["AppRoutingModule"], _angular_service_worker__WEBPACK_IMPORTED_MODULE_5__["ServiceWorkerModule"].register('ngsw-worker.js', { enabled: _environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].production })], declarations: [_app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"], _home_home_component__WEBPACK_IMPORTED_MODULE_7__["HomeComponent"]], bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"]] })], AppModule); /***/ }, /***/ "crnd": /*!**********************************************************!*\ !*** ./src/$$_lazy_route_resource lazy namespace object ***! \**********************************************************/ /*! no static exports found */ /***/ function crnd(module, exports) { function webpackEmptyAsyncContext(req) { // Here Promise.resolve().then() is used instead of new Promise() to prevent // uncaught exception popping up in devtools return Promise.resolve().then(function () { var e = new Error("Cannot find module '" + req + "'"); e.code = 'MODULE_NOT_FOUND'; throw e; }); } webpackEmptyAsyncContext.keys = function () { return []; }; webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext; module.exports = webpackEmptyAsyncContext; webpackEmptyAsyncContext.id = "crnd"; /***/ }, /***/ "hN/g": /*!**************************!*\ !*** ./src/polyfills.ts ***! \**************************/ /*! no exports provided */ /***/ function hNG(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var zone_js_dist_zone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( /*! zone.js/dist/zone */ "pDpN"); /* harmony import */ var zone_js_dist_zone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(zone_js_dist_zone__WEBPACK_IMPORTED_MODULE_0__); /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported after ZoneJS that should be loaded before your main * file. * * The current setup is for so-called "evergreen" browsers; the last versions of browsers that * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. * * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html */ /*************************************************************************************************** * BROWSER POLYFILLS */ /** IE9, IE10 and IE11 requires all of the following polyfills. **/ // import 'core-js/es6/symbol'; // import 'core-js/es6/object'; // import 'core-js/es6/function'; // import 'core-js/es6/parse-int'; // import 'core-js/es6/parse-float'; // import 'core-js/es6/number'; // import 'core-js/es6/math'; // import 'core-js/es6/string'; // import 'core-js/es6/date'; // import 'core-js/es6/array'; // import 'core-js/es6/regexp'; // import 'core-js/es6/map'; // import 'core-js/es6/set'; /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. /** IE10 and IE11 requires the following to support `@angular/animation`. */ // import 'web-animations-js'; // Run `npm install --save web-animations-js`. /** Evergreen browsers require these. **/ // import 'core-js/es6/reflect'; // import 'core-js/es7/reflect'; /** * Web Animations `@angular/platform-browser/animations` * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). */ // import 'web-animations-js'; // Run `npm install --save web-animations-js`. /*************************************************************************************************** * Zone JS is required by Angular itself. */ // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS */ /** * Date, currency, decimal and percent pipes. * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 */ // import 'intl'; // Run `npm install --save intl`. /***/ }, /***/ "lm+D": /*!***************************************!*\ !*** ./src/app/app.routing.module.ts ***! \***************************************/ /*! exports provided: AppRoutingModule */ /***/ function lmD(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppRoutingModule", function () { return AppRoutingModule; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( /*! tslib */ "mrSG"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( /*! @angular/core */ "fXoL"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( /*! @angular/router */ "tyNb"); /* harmony import */ var _home_home_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( /*! ./home/home.component */ "9vUh"); var routes = [{ path: '', redirectTo: '/home', pathMatch: 'full' }, { path: 'home', component: _home_home_component__WEBPACK_IMPORTED_MODULE_3__["HomeComponent"] }]; var AppRoutingModule = function AppRoutingModule() { _classCallCheck(this, AppRoutingModule); }; AppRoutingModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({ imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forRoot(routes)], exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]] })], AppRoutingModule); /***/ }, /***/ "zUnb": /*!*********************!*\ !*** ./src/main.ts ***! \*********************/ /*! no exports provided */ /***/ function zUnb(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _polyfills__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( /*! ./polyfills */ "hN/g"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__( /*! @angular/core */ "fXoL"); /* harmony import */ var _angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__( /*! @angular/platform-browser-dynamic */ "a3Wg"); /* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__( /*! ./app/app.module */ "ZAI4"); /* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__( /*! ./environments/environment */ "AytR"); if (_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].production) { Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["enableProdMode"])(); } Object(_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_2__["platformBrowserDynamic"])().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_3__["AppModule"])["catch"](function (err) { return console.log(err); }); /***/ } }, [[0, "runtime", "vendor"]]]); })(); //# sourceMappingURL=main-es5.js.map
32.326014
353
0.586247
684f837244a6c56a1e307f894ed2dfab9a323200
2,691
js
JavaScript
src/ts/headerAnimation.js
massaox/istio.io
89a271b76c7e33a27dade7b58dbf4c6a12b8278a
[ "Apache-2.0" ]
595
2018-09-21T13:12:59.000Z
2022-03-31T20:03:32.000Z
src/ts/headerAnimation.js
massaox/istio.io
89a271b76c7e33a27dade7b58dbf4c6a12b8278a
[ "Apache-2.0" ]
6,870
2017-03-31T03:56:32.000Z
2022-03-31T18:29:14.000Z
src/ts/headerAnimation.js
massaox/istio.io
89a271b76c7e33a27dade7b58dbf4c6a12b8278a
[ "Apache-2.0" ]
1,181
2017-03-17T23:15:49.000Z
2022-03-31T03:29:53.000Z
var SEPARATION = 40, AMOUNTX = 130, AMOUNTY = 25; var PARTICLE_COLOR = "#6ba2d5"; var ANIMATION_SPEED = 0.015; var container; var camera, scene, renderer; var particles, particle, count = 0; var windowHalfX = window.innerWidth / 2; var windowHalfY = window.innerHeight / 2; document.onreadystatechange = () => { if(document.readyState === "interactive") { init(); animate(); } } function init() { container = document.getElementById( "banner" ); camera = new THREE.PerspectiveCamera( 120, container.offsetWidth / container.offsetHeight, 1, 10000 ); camera.position.y = 150; // Changes how far back you can see i.e the particles towards horizon camera.position.z = 150; // This is how close or far the particles are seen camera.rotation.x = 0.35; camera.rotation.y = 0.75; scene = new THREE.Scene(); particles = new Array(); var PI2 = Math.PI * 2; var material = new THREE.SpriteCanvasMaterial( { color: PARTICLE_COLOR, // Changes color of particles program: function ( context ) { context.beginPath(); context.arc( 0, 0, 0.1, 0, PI2, true ); context.fill(); } } ); var i = 0; for ( var ix = 0; ix < AMOUNTX; ix ++ ) { for ( var iy = 0; iy < AMOUNTY; iy ++ ) { particle = particles[ i ++ ] = new THREE.Sprite( material ); particle.position.y = ix * SEPARATION - ( ( AMOUNTX * SEPARATION ) / 2 ); particle.position.z = iy * SEPARATION - ( ( AMOUNTY * SEPARATION ) - 10 ); scene.add( particle ); } } renderer = new THREE.CanvasRenderer({ alpha: true }); renderer.setSize( container.offsetWidth, container.offsetHeight ); renderer.setClearColor( 0xffffff, 0); renderer.domElement.id = "banner-animation"; container.appendChild( renderer.domElement ); window.addEventListener( 'resize', onWindowResize, false ); } function onWindowResize() { windowHalfX = window.innerWidth / 2; windowHalfY = window.innerHeight / 2; container = document.getElementById( "banner" ); camera.aspect = container.offsetWidth / container.offsetHeight; camera.updateProjectionMatrix(); renderer.setSize( container.offsetWidth, container.offsetHeight ); } function animate() { requestAnimationFrame( animate ); render(); } function render() { var i = 0; for ( var ix = 0; ix < AMOUNTX; ix ++ ) { for ( var iy = 0; iy < AMOUNTY; iy ++ ) { particle = particles[ i++ ]; particle.position.x = ( Math.sin( ( iy + count ) * 0.5 ) * 50 ) + ( Math.sin( ( ix + count ) * 0.5 ) * 120 ); particle.scale.x = particle.scale.y = ( Math.sin( ( ix + count ) * 0.3 ) + 2 ) * 6 + ( Math.sin( ( iy + count ) * 0.5 ) + 1 ) * 6; } } renderer.render( scene, camera ); // This increases or decreases speed count += ANIMATION_SPEED; }
27.742268
133
0.659978
684fd7ce0707bbbc9010855855d1e76e9333e256
249
js
JavaScript
js/common.js
aakash-rajpoot/lead_management
733496b29b1a44c5b3dbd4184a143062a8601e9a
[ "MIT" ]
null
null
null
js/common.js
aakash-rajpoot/lead_management
733496b29b1a44c5b3dbd4184a143062a8601e9a
[ "MIT" ]
null
null
null
js/common.js
aakash-rajpoot/lead_management
733496b29b1a44c5b3dbd4184a143062a8601e9a
[ "MIT" ]
null
null
null
$(document).ready(function() { $('#myTable').DataTable(); }); $(function() { $("#joining_date").datepicker({ dateFormat: 'dd-mm-yy' }); // $( "#joining_date" ).datepicker('show'); $("#dob").datepicker({ dateFormat: 'dd-mm-yy' }); });
31.125
62
0.554217
684ffa9c884419f596fa11809c3e34d330c96a25
8,153
js
JavaScript
src/SubStatement.js
uOttawaMedtech/TinCanJS
a80f9f753e1fc0e3072763ac63fe7e60c3084972
[ "Apache-2.0" ]
null
null
null
src/SubStatement.js
uOttawaMedtech/TinCanJS
a80f9f753e1fc0e3072763ac63fe7e60c3084972
[ "Apache-2.0" ]
null
null
null
src/SubStatement.js
uOttawaMedtech/TinCanJS
a80f9f753e1fc0e3072763ac63fe7e60c3084972
[ "Apache-2.0" ]
null
null
null
/* Copyright 2012 Rustici Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /** TinCan client library @module TinCan @submodule TinCan.SubStatement **/ (function () { "use strict"; /** @class TinCan.SubStatement @constructor @param {Object} [cfg] Configuration used to initialize. @param {TinCan.Agent} [cfg.actor] Actor of statement @param {TinCan.Verb} [cfg.verb] Verb of statement @param {TinCan.Activity|TinCan.Agent} [cfg.object] Alias for 'target' @param {TinCan.Activity|TinCan.Agent} [cfg.target] Object of statement @param {TinCan.Result} [cfg.result] Statement Result @param {TinCan.Context} [cfg.context] Statement Context **/ var SubStatement = TinCan.SubStatement = function (cfg) { this.log("constructor"); /** @property actor @type Object */ this.actor = null; /** @property verb @type Object */ this.verb = null; /** @property target @type Object */ this.target = null; /** @property result @type Object */ this.result = null; /** @property context @type Object */ this.context = null; /** @property timestamp @type Date */ this.timestamp = null; this.init(cfg); }; SubStatement.prototype = { /** @property objectType @type String @default Agent */ objectType: "SubStatement", /** @property LOG_SRC */ LOG_SRC: "SubStatement", /** @method log */ log: TinCan.prototype.log, /** @method init @param {Object} [options] Configuration used to initialize (see constructor) */ init: function (cfg) { this.log("init"); var i, directProps = [ "timestamp" ]; cfg = cfg || {}; if (cfg.hasOwnProperty("object")) { cfg.target = cfg.object; } if (cfg.hasOwnProperty("actor")) { if (typeof cfg.actor.objectType === "undefined" || cfg.actor.objectType === "Person") { cfg.actor.objectType = "Agent"; } if (cfg.actor.objectType === "Agent") { if (cfg.actor instanceof TinCan.Agent) { this.actor = cfg.actor; } else { this.actor = new TinCan.Agent (cfg.actor); } } else if (cfg.actor.objectType === "Group") { if (cfg.actor instanceof TinCan.Group) { this.actor = cfg.actor; } else { this.actor = new TinCan.Group (cfg.actor); } } } if (cfg.hasOwnProperty("verb")) { if (cfg.verb instanceof TinCan.Verb) { this.verb = cfg.verb; } else { this.verb = new TinCan.Verb (cfg.verb); } } if (cfg.hasOwnProperty("target")) { if (cfg.target instanceof TinCan.Activity || cfg.target instanceof TinCan.Agent || cfg.target instanceof TinCan.Group || cfg.target instanceof TinCan.SubStatement || cfg.target instanceof TinCan.StatementRef ) { this.target = cfg.target; } else { if (typeof cfg.target.objectType === "undefined") { cfg.target.objectType = "Activity"; } if (cfg.target.objectType === "Activity") { this.target = new TinCan.Activity (cfg.target); } else if (cfg.target.objectType === "Agent") { this.target = new TinCan.Agent (cfg.target); } else if (cfg.target.objectType === "Group") { this.target = new TinCan.Group (cfg.target); } else if (cfg.target.objectType === "SubStatement") { this.target = new TinCan.SubStatement (cfg.target); } else if (cfg.target.objectType === "StatementRef") { this.target = new TinCan.StatementRef (cfg.target); } else { this.log("Unrecognized target type: " + cfg.target.objectType); } } } if (cfg.hasOwnProperty("result")) { if (cfg.result instanceof TinCan.Result) { this.result = cfg.result; } else { this.result = new TinCan.Result (cfg.result); } } if (cfg.hasOwnProperty("context")) { if (cfg.context instanceof TinCan.Context) { this.context = cfg.context; } else { this.context = new TinCan.Context (cfg.context); } } for (i = 0; i < directProps.length; i += 1) { if (cfg.hasOwnProperty(directProps[i]) && cfg[directProps[i]] !== null) { this[directProps[i]] = cfg[directProps[i]]; } } }, /** @method toString @return {String} String representation of the statement */ toString: function (lang) { this.log("toString"); return (this.actor !== null ? this.actor.toString(lang) : "") + " " + (this.verb !== null ? this.verb.toString(lang) : "") + " " + (this.target !== null ? this.target.toString(lang) : ""); }, /** @method asVersion @param {String} [version] Version to return (defaults to newest supported) */ asVersion: function (version) { this.log("asVersion"); var result, optionalDirectProps = [ "timestamp" ], optionalObjProps = [ "actor", "verb", "result", "context" ], i; result = { objectType: this.objectType }; version = version || TinCan.versions()[0]; for (i = 0; i < optionalDirectProps.length; i += 1) { if (this[optionalDirectProps[i]] !== null) { result[optionalDirectProps[i]] = this[optionalDirectProps[i]]; } } for (i = 0; i < optionalObjProps.length; i += 1) { if (this[optionalObjProps[i]] !== null) { result[optionalObjProps[i]] = this[optionalObjProps[i]].asVersion(version); } } if (this.target !== null) { result.object = this.target.asVersion(version); } return result; } }; /** @method fromJSON @return {Object} SubStatement @static */ SubStatement.fromJSON = function (subStJSON) { SubStatement.prototype.log("fromJSON"); var _subSt = JSON.parse(subStJSON); return new SubStatement(_subSt); }; }());
31.847656
103
0.471606
685007198688269806967848292766febf95aa74
382,186
js
JavaScript
console/static/js/plugins/highcharts/highcharts.js
apaqi/sharkstore
88e0e0f29c8c170b6021dd0743560a94b9fc8b6a
[ "Apache-2.0" ]
1
2021-08-11T02:31:52.000Z
2021-08-11T02:31:52.000Z
console/static/js/plugins/highcharts/highcharts.js
gengdaomi/sharkstore
1b490176846d2da98ceca07a69b6c35646567a28
[ "Apache-2.0" ]
null
null
null
console/static/js/plugins/highcharts/highcharts.js
gengdaomi/sharkstore
1b490176846d2da98ceca07a69b6c35646567a28
[ "Apache-2.0" ]
3
2019-01-24T07:09:19.000Z
2021-06-21T07:54:09.000Z
/* Highcharts JS v5.0.12 (2017-05-24) */ (function(K, S) { "object" === typeof module && module.exports ? module.exports = K.document ? S(K) : S: K.Highcharts = S(K) })("undefined" !== typeof window ? window: this, function(K) { K = function() { var a = window, C = a.document, A = a.navigator && a.navigator.userAgent || "", G = C && C.createElementNS && !!C.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect, F = /(edge|msie|trident)/i.test(A) && !window.opera, m = !G, g = /Firefox/.test(A), k = g && 4 > parseInt(A.split("Firefox/")[1], 10); return a.Highcharts ? a.Highcharts.error(16, !0) : { product: "Highcharts", version: "5.0.12", deg2rad: 2 * Math.PI / 360, doc: C, hasBidiBug: k, hasTouch: C && void 0 !== C.documentElement.ontouchstart, isMS: F, isWebKit: /AppleWebKit/.test(A), isFirefox: g, isTouchDevice: /(Mobile|Android|Windows Phone)/.test(A), SVG_NS: "http://www.w3.org/2000/svg", chartCount: 0, seriesTypes: {}, symbolSizes: {}, svg: G, vml: m, win: a, marginNames: ["plotTop", "marginRight", "marginBottom", "plotLeft"], noop: function() {}, charts: [] } } (); (function(a) { var C = [], A = a.charts, G = a.doc, F = a.win; a.error = function(m, g) { m = a.isNumber(m) ? "Highcharts error #" + m + ": www.highcharts.com/errors/" + m: m; if (g) throw Error(m); F.console && console.log(m) }; a.Fx = function(a, g, k) { this.options = g; this.elem = a; this.prop = k }; a.Fx.prototype = { dSetter: function() { var a = this.paths[0], g = this.paths[1], k = [], q = this.now, v = a.length, u; if (1 === q) k = this.toD; else if (v === g.length && 1 > q) for (; v--;) u = parseFloat(a[v]), k[v] = isNaN(u) ? a[v] : q * parseFloat(g[v] - u) + u; else k = g; this.elem.attr("d", k, null, !0) }, update: function() { var a = this.elem, g = this.prop, k = this.now, q = this.options.step; if (this[g + "Setter"]) this[g + "Setter"](); else a.attr ? a.element && a.attr(g, k, null, !0) : a.style[g] = k + this.unit; q && q.call(a, k, this) }, run: function(a, g, k) { var m = this, v = function(a) { return v.stopped ? !1 : m.step(a) }, u; this.startTime = +new Date; this.start = a; this.end = g; this.unit = k; this.now = this.start; this.pos = 0; v.elem = this.elem; v.prop = this.prop; v() && 1 === C.push(v) && (v.timerId = setInterval(function() { for (u = 0; u < C.length; u++) C[u]() || C.splice(u--, 1); C.length || clearInterval(v.timerId) }, 13)) }, step: function(m) { var g = +new Date, k, q = this.options, v = this.elem, u = q.complete, h = q.duration, e = q.curAnim; v.attr && !v.element ? m = !1 : m || g >= h + this.startTime ? (this.now = this.end, this.pos = 1, this.update(), k = e[this.prop] = !0, a.objectEach(e, function(a) { ! 0 !== a && (k = !1) }), k && u && u.call(v), m = !1) : (this.pos = q.easing((g - this.startTime) / h), this.now = this.start + (this.end - this.start) * this.pos, this.update(), m = !0); return m }, initPath: function(m, g, k) { function q(a) { var b, l; for (y = a.length; y--;) b = "M" === a[y] || "L" === a[y], l = /[a-zA-Z]/.test(a[y + 3]), b && l && a.splice(y + 1, 0, a[y + 1], a[y + 2], a[y + 1], a[y + 2]) } function v(a, b) { for (; a.length < w;) { a[0] = b[w - a.length]; var l = a.slice(0, c); [].splice.apply(a, [0, 0].concat(l)); D && (l = a.slice(a.length - c), [].splice.apply(a, [a.length, 0].concat(l)), y--) } a[0] = "M" } function u(a, l) { for (var r = (w - a.length) / c; 0 < r && r--;) b = a.slice().splice(a.length / H - c, c * H), b[0] = l[w - c - r * c], d && (b[c - 6] = b[c - 2], b[c - 5] = b[c - 1]), [].splice.apply(a, [a.length / H, 0].concat(b)), D && r-- } g = g || ""; var h, e = m.startX, n = m.endX, d = -1 < g.indexOf("C"), c = d ? 7 : 3, w, b, y; g = g.split(" "); k = k.slice(); var D = m.isArea, H = D ? 2 : 1, l; d && (q(g), q(k)); if (e && n) { for (y = 0; y < e.length; y++) if (e[y] === n[0]) { h = y; break } else if (e[0] === n[n.length - e.length + y]) { h = y; l = !0; break } void 0 === h && (g = []) } g.length && a.isNumber(h) && (w = k.length + h * H * c, l ? (v(g, k), u(k, g)) : (v(k, g), u(g, k))); return [g, k] } }; a.Fx.prototype.fillSetter = a.Fx.prototype.strokeSetter = function() { this.elem.attr(this.prop, a.color(this.start).tweenTo(a.color(this.end), this.pos), null, !0) }; a.extend = function(a, g) { var m; a || (a = {}); for (m in g) a[m] = g[m]; return a }; a.merge = function() { var m, g = arguments, k, q = {}, v = function(g, h) { "object" !== typeof g && (g = {}); a.objectEach(h, function(e, n) { ! a.isObject(e, !0) || a.isClass(e) || a.isDOMElement(e) ? g[n] = h[n] : g[n] = v(g[n] || {}, e) }); return g }; ! 0 === g[0] && (q = g[1], g = Array.prototype.slice.call(g, 2)); k = g.length; for (m = 0; m < k; m++) q = v(q, g[m]); return q }; a.pInt = function(a, g) { return parseInt(a, g || 10) }; a.isString = function(a) { return "string" === typeof a }; a.isArray = function(a) { a = Object.prototype.toString.call(a); return "[object Array]" === a || "[object Array Iterator]" === a }; a.isObject = function(m, g) { return !! m && "object" === typeof m && (!g || !a.isArray(m)) }; a.isDOMElement = function(m) { return a.isObject(m) && "number" === typeof m.nodeType }; a.isClass = function(m) { var g = m && m.constructor; return ! (!a.isObject(m, !0) || a.isDOMElement(m) || !g || !g.name || "Object" === g.name) }; a.isNumber = function(a) { return "number" === typeof a && !isNaN(a) }; a.erase = function(a, g) { for (var m = a.length; m--;) if (a[m] === g) { a.splice(m, 1); break } }; a.defined = function(a) { return void 0 !== a && null !== a }; a.attr = function(m, g, k) { var q; a.isString(g) ? a.defined(k) ? m.setAttribute(g, k) : m && m.getAttribute && (q = m.getAttribute(g)) : a.defined(g) && a.isObject(g) && a.objectEach(g, function(a, g) { m.setAttribute(g, a) }); return q }; a.splat = function(m) { return a.isArray(m) ? m: [m] }; a.syncTimeout = function(a, g, k) { if (g) return setTimeout(a, g, k); a.call(0, k) }; a.pick = function() { var a = arguments, g, k, q = a.length; for (g = 0; g < q; g++) if (k = a[g], void 0 !== k && null !== k) return k }; a.css = function(m, g) { a.isMS && !a.svg && g && void 0 !== g.opacity && (g.filter = "alpha(opacity\x3d" + 100 * g.opacity + ")"); a.extend(m.style, g) }; a.createElement = function(m, g, k, q, v) { m = G.createElement(m); var u = a.css; g && a.extend(m, g); v && u(m, { padding: 0, border: "none", margin: 0 }); k && u(m, k); q && q.appendChild(m); return m }; a.extendClass = function(m, g) { var k = function() {}; k.prototype = new m; a.extend(k.prototype, g); return k }; a.pad = function(a, g, k) { return Array((g || 2) + 1 - String(a).length).join(k || 0) + a }; a.relativeLength = function(a, g) { return /%$/.test(a) ? g * parseFloat(a) / 100 : parseFloat(a) }; a.wrap = function(a, g, k) { var q = a[g]; a[g] = function() { var a = Array.prototype.slice.call(arguments), g = arguments, h = this; h.proceed = function() { q.apply(h, arguments.length ? arguments: g) }; a.unshift(q); a = k.apply(this, a); h.proceed = null; return a } }; a.getTZOffset = function(m) { var g = a.Date; return 6E4 * (g.hcGetTimezoneOffset && g.hcGetTimezoneOffset(m) || g.hcTimezoneOffset || 0) }; a.dateFormat = function(m, g, k) { if (!a.defined(g) || isNaN(g)) return a.defaultOptions.lang.invalidDate || ""; m = a.pick(m, "%Y-%m-%d %H:%M:%S"); var q = a.Date, v = new q(g - a.getTZOffset(g)), u = v[q.hcGetHours](), h = v[q.hcGetDay](), e = v[q.hcGetDate](), n = v[q.hcGetMonth](), d = v[q.hcGetFullYear](), c = a.defaultOptions.lang, w = c.weekdays, b = c.shortWeekdays, y = a.pad, q = a.extend({ a: b ? b[h] : w[h].substr(0, 3), A: w[h], d: y(e), e: y(e, 2, " "), w: h, b: c.shortMonths[n], B: c.months[n], m: y(n + 1), y: d.toString().substr(2, 2), Y: d, H: y(u), k: u, I: y(u % 12 || 12), l: u % 12 || 12, M: y(v[q.hcGetMinutes]()), p: 12 > u ? "AM": "PM", P: 12 > u ? "am": "pm", S: y(v.getSeconds()), L: y(Math.round(g % 1E3), 3) }, a.dateFormats); a.objectEach(q, function(a, b) { for (; - 1 !== m.indexOf("%" + b);) m = m.replace("%" + b, "function" === typeof a ? a(g) : a) }); return k ? m.substr(0, 1).toUpperCase() + m.substr(1) : m }; a.formatSingle = function(m, g) { var k = /\.([0-9])/, q = a.defaultOptions.lang; /f$/.test(m) ? (k = (k = m.match(k)) ? k[1] : -1, null !== g && (g = a.numberFormat(g, k, q.decimalPoint, -1 < m.indexOf(",") ? q.thousandsSep: ""))) : g = a.dateFormat(m, g); return g }; a.format = function(m, g) { for (var k = "{", q = !1, v, u, h, e, n = [], d; m;) { k = m.indexOf(k); if ( - 1 === k) break; v = m.slice(0, k); if (q) { v = v.split(":"); u = v.shift().split("."); e = u.length; d = g; for (h = 0; h < e; h++) d = d[u[h]]; v.length && (d = a.formatSingle(v.join(":"), d)); n.push(d) } else n.push(v); m = m.slice(k + 1); k = (q = !q) ? "}": "{" } n.push(m); return n.join("") }; a.getMagnitude = function(a) { return Math.pow(10, Math.floor(Math.log(a) / Math.LN10)) }; a.normalizeTickInterval = function(m, g, k, q, v) { var u, h = m; k = a.pick(k, 1); u = m / k; g || (g = v ? [1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10] : [1, 2, 2.5, 5, 10], !1 === q && (1 === k ? g = a.grep(g, function(a) { return 0 === a % 1 }) : .1 >= k && (g = [1 / k]))); for (q = 0; q < g.length && !(h = g[q], v && h * k >= m || !v && u <= (g[q] + (g[q + 1] || g[q])) / 2); q++); return h = a.correctFloat(h * k, -Math.round(Math.log(.001) / Math.LN10)) }; a.stableSort = function(a, g) { var k = a.length, q, m; for (m = 0; m < k; m++) a[m].safeI = m; a.sort(function(a, h) { q = g(a, h); return 0 === q ? a.safeI - h.safeI: q }); for (m = 0; m < k; m++) delete a[m].safeI }; a.arrayMin = function(a) { for (var g = a.length, k = a[0]; g--;) a[g] < k && (k = a[g]); return k }; a.arrayMax = function(a) { for (var g = a.length, k = a[0]; g--;) a[g] > k && (k = a[g]); return k }; a.destroyObjectProperties = function(m, g) { a.objectEach(m, function(a, q) { a && a !== g && a.destroy && a.destroy(); delete m[q] }) }; a.discardElement = function(m) { var g = a.garbageBin; g || (g = a.createElement("div")); m && g.appendChild(m); g.innerHTML = "" }; a.correctFloat = function(a, g) { return parseFloat(a.toPrecision(g || 14)) }; a.setAnimation = function(m, g) { g.renderer.globalAnimation = a.pick(m, g.options.chart.animation, !0) }; a.animObject = function(m) { return a.isObject(m) ? a.merge(m) : { duration: m ? 500 : 0 } }; a.timeUnits = { millisecond: 1, second: 1E3, minute: 6E4, hour: 36E5, day: 864E5, week: 6048E5, month: 24192E5, year: 314496E5 }; a.numberFormat = function(m, g, k, q) { m = +m || 0; g = +g; var v = a.defaultOptions.lang, u = (m.toString().split(".")[1] || "").length, h, e; - 1 === g ? g = Math.min(u, 20) : a.isNumber(g) || (g = 2); e = (Math.abs(m) + Math.pow(10, -Math.max(g, u) - 1)).toFixed(g); u = String(a.pInt(e)); h = 3 < u.length ? u.length % 3 : 0; k = a.pick(k, v.decimalPoint); q = a.pick(q, v.thousandsSep); m = (0 > m ? "-": "") + (h ? u.substr(0, h) + q: ""); m += u.substr(h).replace(/(\d{3})(?=\d)/g, "$1" + q); g && (m += k + e.slice( - g)); return m }; Math.easeInOutSine = function(a) { return - .5 * (Math.cos(Math.PI * a) - 1) }; a.getStyle = function(m, g, k) { if ("width" === g) return Math.min(m.offsetWidth, m.scrollWidth) - a.getStyle(m, "padding-left") - a.getStyle(m, "padding-right"); if ("height" === g) return Math.min(m.offsetHeight, m.scrollHeight) - a.getStyle(m, "padding-top") - a.getStyle(m, "padding-bottom"); if (m = F.getComputedStyle(m, void 0)) m = m.getPropertyValue(g), a.pick(k, !0) && (m = a.pInt(m)); return m }; a.inArray = function(a, g) { return g.indexOf ? g.indexOf(a) : [].indexOf.call(g, a) }; a.grep = function(a, g) { return [].filter.call(a, g) }; a.find = function(a, g) { return [].find.call(a, g) }; a.map = function(a, g) { for (var k = [], q = 0, m = a.length; q < m; q++) k[q] = g.call(a[q], a[q], q, a); return k }; a.offset = function(a) { var g = G.documentElement; a = a.getBoundingClientRect(); return { top: a.top + (F.pageYOffset || g.scrollTop) - (g.clientTop || 0), left: a.left + (F.pageXOffset || g.scrollLeft) - (g.clientLeft || 0) } }; a.stop = function(a, g) { for (var k = C.length; k--;) C[k].elem !== a || g && g !== C[k].prop || (C[k].stopped = !0) }; a.each = function(a, g, k) { return Array.prototype.forEach.call(a, g, k) }; a.objectEach = function(a, g, k) { for (var q in a) a.hasOwnProperty(q) && g.call(k, a[q], q, a) }; a.addEvent = function(m, g, k) { function q(a) { a.target = a.srcElement || F; k.call(m, a) } var v = m.hcEvents = m.hcEvents || {}; m.addEventListener ? m.addEventListener(g, k, !1) : m.attachEvent && (m.hcEventsIE || (m.hcEventsIE = {}), m.hcEventsIE[k.toString()] = q, m.attachEvent("on" + g, q)); v[g] || (v[g] = []); v[g].push(k); return function() { a.removeEvent(m, g, k) } }; a.removeEvent = function(m, g, k) { function q(a, d) { m.removeEventListener ? m.removeEventListener(a, d, !1) : m.attachEvent && (d = m.hcEventsIE[d.toString()], m.detachEvent("on" + a, d)) } function v() { var e, d; m.nodeName && (g ? (e = {}, e[g] = !0) : e = h, a.objectEach(e, function(a, e) { if (h[e]) for (d = h[e].length; d--;) q(e, h[e][d]) })) } var u, h = m.hcEvents, e; h && (g ? (u = h[g] || [], k ? (e = a.inArray(k, u), -1 < e && (u.splice(e, 1), h[g] = u), q(g, k)) : (v(), h[g] = [])) : (v(), m.hcEvents = {})) }; a.fireEvent = function(m, g, k, q) { var v; v = m.hcEvents; var u, h; k = k || {}; if (G.createEvent && (m.dispatchEvent || m.fireEvent)) v = G.createEvent("Events"), v.initEvent(g, !0, !0), a.extend(v, k), m.dispatchEvent ? m.dispatchEvent(v) : m.fireEvent(g, v); else if (v) for (v = v[g] || [], u = v.length, k.target || a.extend(k, { preventDefault: function() { k.defaultPrevented = !0 }, target: m, type: g }), g = 0; g < u; g++)(h = v[g]) && !1 === h.call(m, k) && k.preventDefault(); q && !k.defaultPrevented && q(k) }; a.animate = function(m, g, k) { var q, v = "", u, h, e; a.isObject(k) || (e = arguments, k = { duration: e[2], easing: e[3], complete: e[4] }); a.isNumber(k.duration) || (k.duration = 400); k.easing = "function" === typeof k.easing ? k.easing: Math[k.easing] || Math.easeInOutSine; k.curAnim = a.merge(g); a.objectEach(g, function(e, d) { a.stop(m, d); h = new a.Fx(m, k, d); u = null; "d" === d ? (h.paths = h.initPath(m, m.d, g.d), h.toD = g.d, q = 0, u = 1) : m.attr ? q = m.attr(d) : (q = parseFloat(a.getStyle(m, d)) || 0, "opacity" !== d && (v = "px")); u || (u = e); u && u.match && u.match("px") && (u = u.replace(/px/g, "")); h.run(q, u, v) }) }; a.seriesType = function(m, g, k, q, v) { var u = a.getOptions(), h = a.seriesTypes; if (h[m]) return a.error(27); u.plotOptions[m] = a.merge(u.plotOptions[g], k); h[m] = a.extendClass(h[g] || function() {}, q); h[m].prototype.type = m; v && (h[m].prototype.pointClass = a.extendClass(a.Point, v)); return h[m] }; a.uniqueKey = function() { var a = Math.random().toString(36).substring(2, 9), g = 0; return function() { return "highcharts-" + a + "-" + g++ } } (); F.jQuery && (F.jQuery.fn.highcharts = function() { var m = [].slice.call(arguments); if (this[0]) return m[0] ? (new(a[a.isString(m[0]) ? m.shift() : "Chart"])(this[0], m[0], m[1]), this) : A[a.attr(this[0], "data-highcharts-chart")] }); G && !G.defaultView && (a.getStyle = function(m, g) { var k = { width: "clientWidth", height: "clientHeight" } [g]; if (m.style[g]) return a.pInt(m.style[g]); "opacity" === g && (g = "filter"); if (k) return m.style.zoom = 1, Math.max(m[k] - 2 * a.getStyle(m, "padding"), 0); m = m.currentStyle[g.replace(/\-(\w)/g, function(a, g) { return g.toUpperCase() })]; "filter" === g && (m = m.replace(/alpha\(opacity=([0-9]+)\)/, function(a, g) { return g / 100 })); return "" === m ? 1 : a.pInt(m) }); Array.prototype.forEach || (a.each = function(a, g, k) { for (var q = 0, m = a.length; q < m; q++) if (!1 === g.call(k, a[q], q, a)) return q }); Array.prototype.indexOf || (a.inArray = function(a, g) { var k, q = 0; if (g) for (k = g.length; q < k; q++) if (g[q] === a) return q; return - 1 }); Array.prototype.filter || (a.grep = function(a, g) { for (var k = [], q = 0, m = a.length; q < m; q++) g(a[q], q) && k.push(a[q]); return k }); Array.prototype.find || (a.find = function(a, g) { var k, q = a.length; for (k = 0; k < q; k++) if (g(a[k], k)) return a[k] }) })(K); (function(a) { var C = a.each, A = a.isNumber, G = a.map, F = a.merge, m = a.pInt; a.Color = function(g) { if (! (this instanceof a.Color)) return new a.Color(g); this.init(g) }; a.Color.prototype = { parsers: [{ regex: /rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/, parse: function(a) { return [m(a[1]), m(a[2]), m(a[3]), parseFloat(a[4], 10)] } }, { regex: /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/, parse: function(a) { return [m(a[1]), m(a[2]), m(a[3]), 1] } }], names: { none: "rgba(255,255,255,0)", white: "#ffffff", black: "#000000" }, init: function(g) { var k, q, m, u; if ((this.input = g = this.names[g && g.toLowerCase ? g.toLowerCase() : ""] || g) && g.stops) this.stops = G(g.stops, function(h) { return new a.Color(h[1]) }); else if (g && "#" === g[0] && (k = g.length, g = parseInt(g.substr(1), 16), 7 === k ? q = [(g & 16711680) >> 16, (g & 65280) >> 8, g & 255, 1] : 4 === k && (q = [(g & 3840) >> 4 | (g & 3840) >> 8, (g & 240) >> 4 | g & 240, (g & 15) << 4 | g & 15, 1])), !q) for (m = this.parsers.length; m--&&!q;) u = this.parsers[m], (k = u.regex.exec(g)) && (q = u.parse(k)); this.rgba = q || [] }, get: function(a) { var g = this.input, q = this.rgba, m; this.stops ? (m = F(g), m.stops = [].concat(m.stops), C(this.stops, function(g, h) { m.stops[h] = [m.stops[h][0], g.get(a)] })) : m = q && A(q[0]) ? "rgb" === a || !a && 1 === q[3] ? "rgb(" + q[0] + "," + q[1] + "," + q[2] + ")": "a" === a ? q[3] : "rgba(" + q.join(",") + ")": g; return m }, brighten: function(a) { var g, q = this.rgba; if (this.stops) C(this.stops, function(g) { g.brighten(a) }); else if (A(a) && 0 !== a) for (g = 0; 3 > g; g++) q[g] += m(255 * a), 0 > q[g] && (q[g] = 0), 255 < q[g] && (q[g] = 255); return this }, setOpacity: function(a) { this.rgba[3] = a; return this }, tweenTo: function(a, k) { var g, m; a.rgba.length ? (g = this.rgba, a = a.rgba, m = 1 !== a[3] || 1 !== g[3], a = (m ? "rgba(": "rgb(") + Math.round(a[0] + (g[0] - a[0]) * (1 - k)) + "," + Math.round(a[1] + (g[1] - a[1]) * (1 - k)) + "," + Math.round(a[2] + (g[2] - a[2]) * (1 - k)) + (m ? "," + (a[3] + (g[3] - a[3]) * (1 - k)) : "") + ")") : a = a.input || "none"; return a } }; a.color = function(g) { return new a.Color(g) } })(K); (function(a) { var C, A, G = a.addEvent, F = a.animate, m = a.attr, g = a.charts, k = a.color, q = a.css, v = a.createElement, u = a.defined, h = a.deg2rad, e = a.destroyObjectProperties, n = a.doc, d = a.each, c = a.extend, w = a.erase, b = a.grep, y = a.hasTouch, D = a.inArray, H = a.isArray, l = a.isFirefox, B = a.isMS, r = a.isObject, z = a.isString, M = a.isWebKit, p = a.merge, E = a.noop, I = a.objectEach, L = a.pick, f = a.pInt, t = a.removeEvent, R = a.stop, J = a.svg, N = a.SVG_NS, O = a.symbolSizes, P = a.win; C = a.SVGElement = function() { return this }; c(C.prototype, { opacity: 1, SVG_NS: N, textProps: "direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline".split(" "), init: function(a, f) { this.element = "span" === f ? v(f) : n.createElementNS(this.SVG_NS, f); this.renderer = a }, animate: function(x, f, t) { f = a.animObject(L(f, this.renderer.globalAnimation, !0)); 0 !== f.duration ? (t && (f.complete = t), F(this, x, f)) : (this.attr(x, null, t), f.step && f.step.call(this)); return this }, colorGradient: function(x, f, t) { var b = this.renderer, l, c, r, Q, e, h, n, y, E, w, J = [], B; x.radialGradient ? c = "radialGradient": x.linearGradient && (c = "linearGradient"); c && (r = x[c], e = b.gradients, n = x.stops, w = t.radialReference, H(r) && (x[c] = r = { x1: r[0], y1: r[1], x2: r[2], y2: r[3], gradientUnits: "userSpaceOnUse" }), "radialGradient" === c && w && !u(r.gradientUnits) && (Q = r, r = p(r, b.getRadialAttr(w, Q), { gradientUnits: "userSpaceOnUse" })), I(r, function(a, x) { "id" !== x && J.push(x, a) }), I(n, function(a) { J.push(a) }), J = J.join(","), e[J] ? w = e[J].attr("id") : (r.id = w = a.uniqueKey(), e[J] = h = b.createElement(c).attr(r).add(b.defs), h.radAttr = Q, h.stops = [], d(n, function(x) { 0 === x[1].indexOf("rgba") ? (l = a.color(x[1]), y = l.get("rgb"), E = l.get("a")) : (y = x[1], E = 1); x = b.createElement("stop").attr({ offset: x[0], "stop-color": y, "stop-opacity": E }).add(h); h.stops.push(x) })), B = "url(" + b.url + "#" + w + ")", t.setAttribute(f, B), t.gradient = J, x.toString = function() { return B }) }, applyTextOutline: function(x) { var f = this.element, t, b, l, c, r; - 1 !== x.indexOf("contrast") && (x = x.replace(/contrast/g, this.renderer.getContrast(f.style.fill))); x = x.split(" "); b = x[x.length - 1]; if ((l = x[0]) && "none" !== l && a.svg) { this.fakeTS = !0; x = [].slice.call(f.getElementsByTagName("tspan")); this.ySetter = this.xSetter; l = l.replace(/(^[\d\.]+)(.*?)$/g, function(a, x, f) { return 2 * x + f }); for (r = x.length; r--;) t = x[r], "highcharts-text-outline" === t.getAttribute("class") && w(x, f.removeChild(t)); c = f.firstChild; d(x, function(a, x) { 0 === x && (a.setAttribute("x", f.getAttribute("x")), x = f.getAttribute("y"), a.setAttribute("y", x || 0), null === x && f.setAttribute("y", 0)); a = a.cloneNode(1); m(a, { "class": "highcharts-text-outline", fill: b, stroke: b, "stroke-width": l, "stroke-linejoin": "round" }); f.insertBefore(a, c) }) } }, attr: function(a, f, t, b) { var x, l = this.element, c, r = this, d, p; "string" === typeof a && void 0 !== f && (x = a, a = {}, a[x] = f); "string" === typeof a ? r = (this[a + "Getter"] || this._defaultGetter).call(this, a, l) : (I(a, function(x, f) { d = !1; b || R(this, f); this.symbolName && /^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(f) && (c || (this.symbolAttr(a), c = !0), d = !0); ! this.rotation || "x" !== f && "y" !== f || (this.doTransform = !0); d || (p = this[f + "Setter"] || this._defaultSetter, p.call(this, x, f, l), this.shadows && /^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(f) && this.updateShadows(f, x, p)) }, this), this.afterSetters()); t && t(); return r }, afterSetters: function() { this.doTransform && (this.updateTransform(), this.doTransform = !1) }, updateShadows: function(a, f, t) { for (var x = this.shadows, b = x.length; b--;) t.call(x[b], "height" === a ? Math.max(f - (x[b].cutHeight || 0), 0) : "d" === a ? this.d: f, a, x[b]) }, addClass: function(a, f) { var x = this.attr("class") || ""; - 1 === x.indexOf(a) && (f || (a = (x + (x ? " ": "") + a).replace(" ", " ")), this.attr("class", a)); return this }, hasClass: function(a) { return - 1 !== m(this.element, "class").indexOf(a) }, removeClass: function(a) { m(this.element, "class", (m(this.element, "class") || "").replace(a, "")); return this }, symbolAttr: function(a) { var x = this; d("x y r start end width height innerR anchorX anchorY".split(" "), function(f) { x[f] = L(a[f], x[f]) }); x.attr({ d: x.renderer.symbols[x.symbolName](x.x, x.y, x.width, x.height, x) }) }, clip: function(a) { return this.attr("clip-path", a ? "url(" + this.renderer.url + "#" + a.id + ")": "none") }, crisp: function(a, f) { var x = this, t = {}, b; f = f || a.strokeWidth || 0; b = Math.round(f) % 2 / 2; a.x = Math.floor(a.x || x.x || 0) + b; a.y = Math.floor(a.y || x.y || 0) + b; a.width = Math.floor((a.width || x.width || 0) - 2 * b); a.height = Math.floor((a.height || x.height || 0) - 2 * b); u(a.strokeWidth) && (a.strokeWidth = f); I(a, function(a, f) { x[f] !== a && (x[f] = t[f] = a) }); return t }, css: function(a) { var x = this.styles, t = {}, b = this.element, l, r = "", d, p = !x, e = ["textOutline", "textOverflow", "width"]; a && a.color && (a.fill = a.color); x && I(a, function(a, f) { a !== x[f] && (t[f] = a, p = !0) }); p && (x && (a = c(x, t)), l = this.textWidth = a && a.width && "auto" !== a.width && "text" === b.nodeName.toLowerCase() && f(a.width), this.styles = a, l && !J && this.renderer.forExport && delete a.width, B && !J ? q(this.element, a) : (d = function(a, x) { return "-" + x.toLowerCase() }, I(a, function(a, x) { - 1 === D(x, e) && (r += x.replace(/([A-Z])/g, d) + ":" + a + ";") }), r && m(b, "style", r)), this.added && ("text" === this.element.nodeName && this.renderer.buildText(this), a && a.textOutline && this.applyTextOutline(a.textOutline))); return this }, strokeWidth: function() { return this["stroke-width"] || 0 }, on: function(a, f) { var x = this, t = x.element; y && "click" === a ? (t.ontouchstart = function(a) { x.touchEventFired = Date.now(); a.preventDefault(); f.call(t, a) }, t.onclick = function(a) { ( - 1 === P.navigator.userAgent.indexOf("Android") || 1100 < Date.now() - (x.touchEventFired || 0)) && f.call(t, a) }) : t["on" + a] = f; return this }, setRadialReference: function(a) { var x = this.renderer.gradients[this.element.gradient]; this.element.radialReference = a; x && x.radAttr && x.animate(this.renderer.getRadialAttr(a, x.radAttr)); return this }, translate: function(a, f) { return this.attr({ translateX: a, translateY: f }) }, invert: function(a) { this.inverted = a; this.updateTransform(); return this }, updateTransform: function() { var a = this.translateX || 0, f = this.translateY || 0, t = this.scaleX, b = this.scaleY, l = this.inverted, c = this.rotation, r = this.element; l && (a += this.width, f += this.height); a = ["translate(" + a + "," + f + ")"]; l ? a.push("rotate(90) scale(-1,1)") : c && a.push("rotate(" + c + " " + (r.getAttribute("x") || 0) + " " + (r.getAttribute("y") || 0) + ")"); (u(t) || u(b)) && a.push("scale(" + L(t, 1) + " " + L(b, 1) + ")"); a.length && r.setAttribute("transform", a.join(" ")) }, toFront: function() { var a = this.element; a.parentNode.appendChild(a); return this }, align: function(a, f, t) { var x, b, l, c, r = {}; b = this.renderer; l = b.alignedObjects; var d, p; if (a) { if (this.alignOptions = a, this.alignByTranslate = f, !t || z(t)) this.alignTo = x = t || "renderer", w(l, this), l.push(this), t = null } else a = this.alignOptions, f = this.alignByTranslate, x = this.alignTo; t = L(t, b[x], b); x = a.align; b = a.verticalAlign; l = (t.x || 0) + (a.x || 0); c = (t.y || 0) + (a.y || 0); "right" === x ? d = 1 : "center" === x && (d = 2); d && (l += (t.width - (a.width || 0)) / d); r[f ? "translateX": "x"] = Math.round(l); "bottom" === b ? p = 1 : "middle" === b && (p = 2); p && (c += (t.height - (a.height || 0)) / p); r[f ? "translateY": "y"] = Math.round(c); this[this.placed ? "animate": "attr"](r); this.placed = !0; this.alignAttr = r; return this }, getBBox: function(a, f) { var x, t = this.renderer, b, l = this.element, r = this.styles, p, e = this.textStr, n, Q = t.cache, y = t.cacheKeys, E; f = L(f, this.rotation); b = f * h; p = r && r.fontSize; void 0 !== e && (E = e.toString(), -1 === E.indexOf("\x3c") && (E = E.replace(/[0-9]/g, "0")), E += ["", f || 0, p, r && r.width, r && r.textOverflow].join()); E && !a && (x = Q[E]); if (!x) { if (l.namespaceURI === this.SVG_NS || t.forExport) { try { (n = this.fakeTS && function(a) { d(l.querySelectorAll(".highcharts-text-outline"), function(x) { x.style.display = a }) }) && n("none"), x = l.getBBox ? c({}, l.getBBox()) : { width: l.offsetWidth, height: l.offsetHeight }, n && n("") } catch(X) {} if (!x || 0 > x.width) x = { width: 0, height: 0 } } else x = this.htmlGetBBox(); t.isSVG && (a = x.width, t = x.height, r && "11px" === r.fontSize && 17 === Math.round(t) && (x.height = t = 14), f && (x.width = Math.abs(t * Math.sin(b)) + Math.abs(a * Math.cos(b)), x.height = Math.abs(t * Math.cos(b)) + Math.abs(a * Math.sin(b)))); if (E && 0 < x.height) { for (; 250 < y.length;) delete Q[y.shift()]; Q[E] || y.push(E); Q[E] = x } } return x }, show: function(a) { return this.attr({ visibility: a ? "inherit": "visible" }) }, hide: function() { return this.attr({ visibility: "hidden" }) }, fadeOut: function(a) { var x = this; x.animate({ opacity: 0 }, { duration: a || 150, complete: function() { x.attr({ y: -9999 }) } }) }, add: function(a) { var x = this.renderer, f = this.element, t; a && (this.parentGroup = a); this.parentInverted = a && a.inverted; void 0 !== this.textStr && x.buildText(this); this.added = !0; if (!a || a.handleZ || this.zIndex) t = this.zIndexSetter(); t || (a ? a.element: x.box).appendChild(f); if (this.onAdd) this.onAdd(); return this }, safeRemoveChild: function(a) { var x = a.parentNode; x && x.removeChild(a) }, destroy: function() { var a = this, f = a.element || {}, t = a.renderer.isSVG && "SPAN" === f.nodeName && a.parentGroup, b = f.ownerSVGElement; f.onclick = f.onmouseout = f.onmouseover = f.onmousemove = f.point = null; R(a); a.clipPath && b && (d(b.querySelectorAll("[clip-path]"), function(x) { - 1 < x.getAttribute("clip-path").indexOf(a.clipPath.element.id + ")") && x.removeAttribute("clip-path") }), a.clipPath = a.clipPath.destroy()); if (a.stops) { for (b = 0; b < a.stops.length; b++) a.stops[b] = a.stops[b].destroy(); a.stops = null } a.safeRemoveChild(f); for (a.destroyShadows(); t && t.div && 0 === t.div.childNodes.length;) f = t.parentGroup, a.safeRemoveChild(t.div), delete t.div, t = f; a.alignTo && w(a.renderer.alignedObjects, a); I(a, function(x, f) { delete a[f] }); return null }, shadow: function(a, f, t) { var x = [], b, l, c = this.element, r, d, p, e; if (!a) this.destroyShadows(); else if (!this.shadows) { d = L(a.width, 3); p = (a.opacity || .15) / d; e = this.parentInverted ? "(-1,-1)": "(" + L(a.offsetX, 1) + ", " + L(a.offsetY, 1) + ")"; for (b = 1; b <= d; b++) l = c.cloneNode(0), r = 2 * d + 1 - 2 * b, m(l, { isShadow: "true", stroke: a.color || "#000000", "stroke-opacity": p * b, "stroke-width": r, transform: "translate" + e, fill: "none" }), t && (m(l, "height", Math.max(m(l, "height") - r, 0)), l.cutHeight = r), f ? f.element.appendChild(l) : c.parentNode.insertBefore(l, c), x.push(l); this.shadows = x } return this }, destroyShadows: function() { d(this.shadows || [], function(a) { this.safeRemoveChild(a) }, this); this.shadows = void 0 }, xGetter: function(a) { "circle" === this.element.nodeName && ("x" === a ? a = "cx": "y" === a && (a = "cy")); return this._defaultGetter(a) }, _defaultGetter: function(a) { a = L(this[a], this.element ? this.element.getAttribute(a) : null, 0); /^[\-0-9\.]+$/.test(a) && (a = parseFloat(a)); return a }, dSetter: function(a, f, t) { a && a.join && (a = a.join(" ")); /(NaN| {2}|^$)/.test(a) && (a = "M 0 0"); t.setAttribute(f, a); this[f] = a }, dashstyleSetter: function(a) { var x, t = this["stroke-width"]; "inherit" === t && (t = 1); if (a = a && a.toLowerCase()) { a = a.replace("shortdashdotdot", "3,1,1,1,1,1,").replace("shortdashdot", "3,1,1,1").replace("shortdot", "1,1,").replace("shortdash", "3,1,").replace("longdash", "8,3,").replace(/dot/g, "1,3,").replace("dash", "4,3,").replace(/,$/, "").split(","); for (x = a.length; x--;) a[x] = f(a[x]) * t; a = a.join(",").replace(/NaN/g, "none"); this.element.setAttribute("stroke-dasharray", a) } }, alignSetter: function(a) { this.element.setAttribute("text-anchor", { left: "start", center: "middle", right: "end" } [a]) }, opacitySetter: function(a, f, t) { this[f] = a; t.setAttribute(f, a) }, titleSetter: function(a) { var f = this.element.getElementsByTagName("title")[0]; f || (f = n.createElementNS(this.SVG_NS, "title"), this.element.appendChild(f)); f.firstChild && f.removeChild(f.firstChild); f.appendChild(n.createTextNode(String(L(a), "").replace(/<[^>]*>/g, ""))) }, textSetter: function(a) { a !== this.textStr && (delete this.bBox, this.textStr = a, this.added && this.renderer.buildText(this)) }, fillSetter: function(a, f, t) { "string" === typeof a ? t.setAttribute(f, a) : a && this.colorGradient(a, f, t) }, visibilitySetter: function(a, f, t) { "inherit" === a ? t.removeAttribute(f) : t.setAttribute(f, a) }, zIndexSetter: function(a, t) { var x = this.renderer, b = this.parentGroup, l = (b || x).element || x.box, c, r = this.element, d; c = this.added; var p; u(a) && (r.zIndex = a, a = +a, this[t] === a && (c = !1), this[t] = a); if (c) { (a = this.zIndex) && b && (b.handleZ = !0); t = l.childNodes; for (p = 0; p < t.length && !d; p++) b = t[p], c = b.zIndex, b !== r && (f(c) > a || !u(a) && u(c) || 0 > a && !u(c) && l !== x.box) && (l.insertBefore(r, b), d = !0); d || l.appendChild(r) } return d }, _defaultSetter: function(a, f, t) { t.setAttribute(f, a) } }); C.prototype.yGetter = C.prototype.xGetter; C.prototype.translateXSetter = C.prototype.translateYSetter = C.prototype.rotationSetter = C.prototype.verticalAlignSetter = C.prototype.scaleXSetter = C.prototype.scaleYSetter = function(a, f) { this[f] = a; this.doTransform = !0 }; C.prototype["stroke-widthSetter"] = C.prototype.strokeSetter = function(a, f, t) { this[f] = a; this.stroke && this["stroke-width"] ? (C.prototype.fillSetter.call(this, this.stroke, "stroke", t), t.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0) : "stroke-width" === f && 0 === a && this.hasStroke && (t.removeAttribute("stroke"), this.hasStroke = !1) }; A = a.SVGRenderer = function() { this.init.apply(this, arguments) }; c(A.prototype, { Element: C, SVG_NS: N, init: function(a, f, t, b, c, r) { var x; b = this.createElement("svg").attr({ version: "1.1", "class": "highcharts-root" }).css(this.getStyle(b)); x = b.element; a.appendChild(x); - 1 === a.innerHTML.indexOf("xmlns") && m(x, "xmlns", this.SVG_NS); this.isSVG = !0; this.box = x; this.boxWrapper = b; this.alignedObjects = []; this.url = (l || M) && n.getElementsByTagName("base").length ? P.location.href.replace(/#.*?$/, "").replace(/<[^>]*>/g, "").replace(/([\('\)])/g, "\\$1").replace(/ /g, "%20") : ""; this.createElement("desc").add().element.appendChild(n.createTextNode("Created with Highcharts 5.0.12")); this.defs = this.createElement("defs").add(); this.allowHTML = r; this.forExport = c; this.gradients = {}; this.cache = {}; this.cacheKeys = []; this.imgCount = 0; this.setSize(f, t, !1); var d; l && a.getBoundingClientRect && (f = function() { q(a, { left: 0, top: 0 }); d = a.getBoundingClientRect(); q(a, { left: Math.ceil(d.left) - d.left + "px", top: Math.ceil(d.top) - d.top + "px" }) }, f(), this.unSubPixelFix = G(P, "resize", f)) }, getStyle: function(a) { return this.style = c({ fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif', fontSize: "12px" }, a) }, setStyle: function(a) { this.boxWrapper.css(this.getStyle(a)) }, isHidden: function() { return ! this.boxWrapper.getBBox().width }, destroy: function() { var a = this.defs; this.box = null; this.boxWrapper = this.boxWrapper.destroy(); e(this.gradients || {}); this.gradients = null; a && (this.defs = a.destroy()); this.unSubPixelFix && this.unSubPixelFix(); return this.alignedObjects = null }, createElement: function(a) { var f = new this.Element; f.init(this, a); return f }, draw: E, getRadialAttr: function(a, f) { return { cx: a[0] - a[2] / 2 + f.cx * a[2], cy: a[1] - a[2] / 2 + f.cy * a[2], r: f.r * a[2] } }, getSpanWidth: function(a, f) { var t = a.getBBox(!0).width; ! J && this.forExport && (t = this.measureSpanWidth(f.firstChild.data, a.styles)); return t }, applyEllipsis: function(a, f, t, b) { var x = this.getSpanWidth(a, f), l = x > b, x = t, c, r = 0, d = t.length, p = function(a) { f.removeChild(f.firstChild); a && f.appendChild(n.createTextNode(a)) }; if (l) { for (; r <= d;) c = Math.ceil((r + d) / 2), x = t.substring(0, c) + "\u2026", p(x), x = this.getSpanWidth(a, f), r === d ? r = d + 1 : x > b ? d = c - 1 : r = c; 0 === d && p("") } return l }, buildText: function(a) { var t = a.element, x = this, l = x.forExport, c = L(a.textStr, "").toString(), r = -1 !== c.indexOf("\x3c"), p = t.childNodes, e, h, E, y, w = m(t, "x"), B = a.styles, g = a.textWidth, I = B && B.lineHeight, z = B && B.textOutline, D = B && "ellipsis" === B.textOverflow, k = B && "nowrap" === B.whiteSpace, u = B && B.fontSize, R, H, v = p.length, B = g && !a.added && this.box, M = function(a) { var b; b = /(px|em)$/.test(a && a.style.fontSize) ? a.style.fontSize: u || x.style.fontSize || 12; return I ? f(I) : x.fontMetrics(b, a.getAttribute("style") ? a: t).h }; R = [c, D, k, I, z, u, g].join(); if (R !== a.textCache) { for (a.textCache = R; v--;) t.removeChild(p[v]); r || z || D || g || -1 !== c.indexOf(" ") ? (e = /<.*class="([^"]+)".*>/, h = /<.*style="([^"]+)".*>/, E = /<.*href="([^"]+)".*>/, B && B.appendChild(t), c = r ? c.replace(/<(b|strong)>/g, '\x3cspan style\x3d"font-weight:bold"\x3e').replace(/<(i|em)>/g, '\x3cspan style\x3d"font-style:italic"\x3e').replace(/<a/g, "\x3cspan").replace(/<\/(b|strong|i|em|a)>/g, "\x3c/span\x3e").split(/<br.*?>/g) : [c], c = b(c, function(a) { return "" !== a }), d(c, function(f, b) { var c, r = 0; f = f.replace(/^\s+|\s+$/g, "").replace(/<span/g, "|||\x3cspan").replace(/<\/span>/g, "\x3c/span\x3e|||"); c = f.split("|||"); d(c, function(f) { if ("" !== f || 1 === c.length) { var d = {}, p = n.createElementNS(x.SVG_NS, "tspan"), B, I; e.test(f) && (B = f.match(e)[1], m(p, "class", B)); h.test(f) && (I = f.match(h)[1].replace(/(;| |^)color([ :])/, "$1fill$2"), m(p, "style", I)); E.test(f) && !l && (m(p, "onclick", 'location.href\x3d"' + f.match(E)[1] + '"'), q(p, { cursor: "pointer" })); f = (f.replace(/<(.|\n)*?>/g, "") || " ").replace(/&lt;/g, "\x3c").replace(/&gt;/g, "\x3e"); if (" " !== f) { p.appendChild(n.createTextNode(f)); r ? d.dx = 0 : b && null !== w && (d.x = w); m(p, d); t.appendChild(p); ! r && H && (!J && l && q(p, { display: "block" }), m(p, "dy", M(p))); if (g) { d = f.replace(/([^\^])-/g, "$1- ").split(" "); B = 1 < c.length || b || 1 < d.length && !k; var z = [], Q, u = M(p), R = a.rotation; for (D && (y = x.applyEllipsis(a, p, f, g)); ! D && B && (d.length || z.length);) a.rotation = 0, Q = x.getSpanWidth(a, p), f = Q > g, void 0 === y && (y = f), f && 1 !== d.length ? (p.removeChild(p.firstChild), z.unshift(d.pop())) : (d = z, z = [], d.length && !k && (p = n.createElementNS(N, "tspan"), m(p, { dy: u, x: w }), I && m(p, "style", I), t.appendChild(p)), Q > g && (g = Q)), d.length && p.appendChild(n.createTextNode(d.join(" ").replace(/- /g, "-"))); a.rotation = R } r++ } } }); H = H || t.childNodes.length }), y && a.attr("title", a.textStr), B && B.removeChild(t), z && a.applyTextOutline && a.applyTextOutline(z)) : t.appendChild(n.createTextNode(c.replace(/&lt;/g, "\x3c").replace(/&gt;/g, "\x3e"))) } }, getContrast: function(a) { a = k(a).rgba; return 510 < a[0] + a[1] + a[2] ? "#000000": "#FFFFFF" }, button: function(a, f, t, b, l, r, d, e, h) { var x = this.label(a, f, t, h, null, null, null, null, "button"), n = 0; x.attr(p({ padding: 8, r: 2 }, l)); var E, y, w, J; l = p({ fill: "#f7f7f7", stroke: "#cccccc", "stroke-width": 1, style: { color: "#333333", cursor: "pointer", fontWeight: "normal" } }, l); E = l.style; delete l.style; r = p(l, { fill: "#e6e6e6" }, r); y = r.style; delete r.style; d = p(l, { fill: "#e6ebf5", style: { color: "#000000", fontWeight: "bold" } }, d); w = d.style; delete d.style; e = p(l, { style: { color: "#cccccc" } }, e); J = e.style; delete e.style; G(x.element, B ? "mouseover": "mouseenter", function() { 3 !== n && x.setState(1) }); G(x.element, B ? "mouseout": "mouseleave", function() { 3 !== n && x.setState(n) }); x.setState = function(a) { 1 !== a && (x.state = n = a); x.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-" + ["normal", "hover", "pressed", "disabled"][a || 0]); x.attr([l, r, d, e][a || 0]).css([E, y, w, J][a || 0]) }; x.attr(l).css(c({ cursor: "default" }, E)); return x.on("click", function(a) { 3 !== n && b.call(x, a) }) }, crispLine: function(a, f) { a[1] === a[4] && (a[1] = a[4] = Math.round(a[1]) - f % 2 / 2); a[2] === a[5] && (a[2] = a[5] = Math.round(a[2]) + f % 2 / 2); return a }, path: function(a) { var f = { fill: "none" }; H(a) ? f.d = a: r(a) && c(f, a); return this.createElement("path").attr(f) }, circle: function(a, f, t) { a = r(a) ? a: { x: a, y: f, r: t }; f = this.createElement("circle"); f.xSetter = f.ySetter = function(a, f, t) { t.setAttribute("c" + f, a) }; return f.attr(a) }, arc: function(a, f, t, b, l, c) { r(a) ? (b = a, f = b.y, t = b.r, a = b.x) : b = { innerR: b, start: l, end: c }; a = this.symbol("arc", a, f, t, t, b); a.r = t; return a }, rect: function(a, f, t, b, l, c) { l = r(a) ? a.r: l; var x = this.createElement("rect"); a = r(a) ? a: void 0 === a ? {}: { x: a, y: f, width: Math.max(t, 0), height: Math.max(b, 0) }; void 0 !== c && (a.strokeWidth = c, a = x.crisp(a)); a.fill = "none"; l && (a.r = l); x.rSetter = function(a, f, t) { m(t, { rx: a, ry: a }) }; return x.attr(a) }, setSize: function(a, f, t) { var b = this.alignedObjects, l = b.length; this.width = a; this.height = f; for (this.boxWrapper.animate({ width: a, height: f }, { step: function() { this.attr({ viewBox: "0 0 " + this.attr("width") + " " + this.attr("height") }) }, duration: L(t, !0) ? void 0 : 0 }); l--;) b[l].align() }, g: function(a) { var f = this.createElement("g"); return a ? f.attr({ "class": "highcharts-" + a }) : f }, image: function(a, f, t, b, l) { var x = { preserveAspectRatio: "none" }; 1 < arguments.length && c(x, { x: f, y: t, width: b, height: l }); x = this.createElement("image").attr(x); x.element.setAttributeNS ? x.element.setAttributeNS("http://www.w3.org/1999/xlink", "href", a) : x.element.setAttribute("hc-svg-href", a); return x }, symbol: function(a, f, t, b, l, r) { var x = this, p, e = /^url\((.*?)\)$/, h = e.test(a), E = !h && (this.symbols[a] ? a: "circle"), y = E && this.symbols[E], B = u(f) && y && y.call(this.symbols, Math.round(f), Math.round(t), b, l, r), w, J; y ? (p = this.path(B), p.attr("fill", "none"), c(p, { symbolName: E, x: f, y: t, width: b, height: l }), r && c(p, r)) : h && (w = a.match(e)[1], p = this.image(w), p.imgwidth = L(O[w] && O[w].width, r && r.width), p.imgheight = L(O[w] && O[w].height, r && r.height), J = function() { p.attr({ width: p.width, height: p.height }) }, d(["width", "height"], function(a) { p[a + "Setter"] = function(a, f) { var t = {}, b = this["img" + f], l = "width" === f ? "translateX": "translateY"; this[f] = a; u(b) && (this.element && this.element.setAttribute(f, b), this.alignByTranslate || (t[l] = ((this[f] || 0) - b) / 2, this.attr(t))) } }), u(f) && p.attr({ x: f, y: t }), p.isImg = !0, u(p.imgwidth) && u(p.imgheight) ? J() : (p.attr({ width: 0, height: 0 }), v("img", { onload: function() { var a = g[x.chartIndex]; 0 === this.width && (q(this, { position: "absolute", top: "-999em" }), n.body.appendChild(this)); O[w] = { width: this.width, height: this.height }; p.imgwidth = this.width; p.imgheight = this.height; p.element && J(); this.parentNode && this.parentNode.removeChild(this); x.imgCount--; if (!x.imgCount && a && a.onload) a.onload() }, src: w }), this.imgCount++)); return p }, symbols: { circle: function(a, f, t, b) { return this.arc(a + t / 2, f + b / 2, t / 2, b / 2, { start: 0, end: 2 * Math.PI, open: !1 }) }, square: function(a, f, t, b) { return ["M", a, f, "L", a + t, f, a + t, f + b, a, f + b, "Z"] }, triangle: function(a, f, t, b) { return ["M", a + t / 2, f, "L", a + t, f + b, a, f + b, "Z"] }, "triangle-down": function(a, f, t, b) { return ["M", a, f, "L", a + t, f, a + t / 2, f + b, "Z"] }, diamond: function(a, f, t, b) { return ["M", a + t / 2, f, "L", a + t, f + b / 2, a + t / 2, f + b, a, f + b / 2, "Z"] }, arc: function(a, f, t, b, l) { var c = l.start, x = l.r || t, r = l.r || b || t, p = l.end - .001; t = l.innerR; b = l.open; var d = Math.cos(c), e = Math.sin(c), h = Math.cos(p), p = Math.sin(p); l = l.end - c < Math.PI ? 0 : 1; x = ["M", a + x * d, f + r * e, "A", x, r, 0, l, 1, a + x * h, f + r * p]; u(t) && x.push(b ? "M": "L", a + t * h, f + t * p, "A", t, t, 0, l, 0, a + t * d, f + t * e); x.push(b ? "": "Z"); return x }, callout: function(a, f, t, b, l) { var c = Math.min(l && l.r || 0, t, b), r = c + 6, p = l && l.anchorX; l = l && l.anchorY; var d; d = ["M", a + c, f, "L", a + t - c, f, "C", a + t, f, a + t, f, a + t, f + c, "L", a + t, f + b - c, "C", a + t, f + b, a + t, f + b, a + t - c, f + b, "L", a + c, f + b, "C", a, f + b, a, f + b, a, f + b - c, "L", a, f + c, "C", a, f, a, f, a + c, f]; p && p > t ? l > f + r && l < f + b - r ? d.splice(13, 3, "L", a + t, l - 6, a + t + 6, l, a + t, l + 6, a + t, f + b - c) : d.splice(13, 3, "L", a + t, b / 2, p, l, a + t, b / 2, a + t, f + b - c) : p && 0 > p ? l > f + r && l < f + b - r ? d.splice(33, 3, "L", a, l + 6, a - 6, l, a, l - 6, a, f + c) : d.splice(33, 3, "L", a, b / 2, p, l, a, b / 2, a, f + c) : l && l > b && p > a + r && p < a + t - r ? d.splice(23, 3, "L", p + 6, f + b, p, f + b + 6, p - 6, f + b, a + c, f + b) : l && 0 > l && p > a + r && p < a + t - r && d.splice(3, 3, "L", p - 6, f, p, f - 6, p + 6, f, t - c, f); return d } }, clipRect: function(f, t, b, l) { var c = a.uniqueKey(), r = this.createElement("clipPath").attr({ id: c }).add(this.defs); f = this.rect(f, t, b, l, 0).add(r); f.id = c; f.clipPath = r; f.count = 0; return f }, text: function(a, f, t, b) { var l = !J && this.forExport, c = {}; if (b && (this.allowHTML || !this.forExport)) return this.html(a, f, t); c.x = Math.round(f || 0); t && (c.y = Math.round(t)); if (a || 0 === a) c.text = a; a = this.createElement("text").attr(c); l && a.css({ position: "absolute" }); b || (a.xSetter = function(a, f, t) { var b = t.getElementsByTagName("tspan"), l, c = t.getAttribute(f), r; for (r = 0; r < b.length; r++) l = b[r], l.getAttribute(f) === c && l.setAttribute(f, a); t.setAttribute(f, a) }); return a }, fontMetrics: function(a, t) { a = a || t && t.style && t.style.fontSize || this.style && this.style.fontSize; a = /px/.test(a) ? f(a) : /em/.test(a) ? parseFloat(a) * (t ? this.fontMetrics(null, t.parentNode).f: 16) : 12; t = 24 > a ? a + 3 : Math.round(1.2 * a); return { h: t, b: Math.round(.8 * t), f: a } }, rotCorr: function(a, f, t) { var b = a; f && t && (b = Math.max(b * Math.cos(f * h), 4)); return { x: -a / 3 * Math.sin(f * h), y: b } }, label: function(f, b, l, r, e, h, n, E, y) { var x = this, B = x.g("button" !== y && "label"), w = B.text = x.text("", 0, 0, n).attr({ zIndex: 1 }), J, g, I = 0, z = 3, D = 0, q, k, m, R, H, v = {}, N, M, L = /^url\((.*?)\)$/.test(r), Q = L, V, U, O, P; y && B.addClass("highcharts-" + y); Q = L; V = function() { return (N || 0) % 2 / 2 }; U = function() { var a = w.element.style, f = {}; g = (void 0 === q || void 0 === k || H) && u(w.textStr) && w.getBBox(); B.width = (q || g.width || 0) + 2 * z + D; B.height = (k || g.height || 0) + 2 * z; M = z + x.fontMetrics(a && a.fontSize, w).b; Q && (J || (B.box = J = x.symbols[r] || L ? x.symbol(r) : x.rect(), J.addClass(("button" === y ? "": "highcharts-label-box") + (y ? " highcharts-" + y + "-box": "")), J.add(B), a = V(), f.x = a, f.y = (E ? -M: 0) + a), f.width = Math.round(B.width), f.height = Math.round(B.height), J.attr(c(f, v)), v = {}) }; O = function() { var a = D + z, f; f = E ? 0 : M; u(q) && g && ("center" === H || "right" === H) && (a += { center: .5, right: 1 } [H] * (q - g.width)); if (a !== w.x || f !== w.y) w.attr("x", a), void 0 !== f && w.attr("y", f); w.x = a; w.y = f }; P = function(a, f) { J ? J.attr(a, f) : v[a] = f }; B.onAdd = function() { w.add(B); B.attr({ text: f || 0 === f ? f: "", x: b, y: l }); J && u(e) && B.attr({ anchorX: e, anchorY: h }) }; B.widthSetter = function(f) { q = a.isNumber(f) ? f: null }; B.heightSetter = function(a) { k = a }; B["text-alignSetter"] = function(a) { H = a }; B.paddingSetter = function(a) { u(a) && a !== z && (z = B.padding = a, O()) }; B.paddingLeftSetter = function(a) { u(a) && a !== D && (D = a, O()) }; B.alignSetter = function(a) { a = { left: 0, center: .5, right: 1 } [a]; a !== I && (I = a, g && B.attr({ x: m })) }; B.textSetter = function(a) { void 0 !== a && w.textSetter(a); U(); O() }; B["stroke-widthSetter"] = function(a, f) { a && (Q = !0); N = this["stroke-width"] = a; P(f, a) }; B.strokeSetter = B.fillSetter = B.rSetter = function(a, f) { "fill" === f && a && (Q = !0); P(f, a) }; B.anchorXSetter = function(a, f) { e = B.anchorX = a; P(f, Math.round(a) - V() - m) }; B.anchorYSetter = function(a, f) { h = B.anchorY = a; P(f, a - R) }; B.xSetter = function(a) { B.x = a; I && (a -= I * ((q || g.width) + 2 * z)); m = Math.round(a); B.attr("translateX", m) }; B.ySetter = function(a) { R = B.y = Math.round(a); B.attr("translateY", R) }; var W = B.css; return c(B, { css: function(a) { if (a) { var f = {}; a = p(a); d(B.textProps, function(t) { void 0 !== a[t] && (f[t] = a[t], delete a[t]) }); w.css(f) } return W.call(B, a) }, getBBox: function() { return { width: g.width + 2 * z, height: g.height + 2 * z, x: g.x - z, y: g.y - z } }, shadow: function(a) { a && (U(), J && J.shadow(a)); return B }, destroy: function() { t(B.element, "mouseenter"); t(B.element, "mouseleave"); w && (w = w.destroy()); J && (J = J.destroy()); C.prototype.destroy.call(B); B = x = U = O = P = null } }) } }); a.Renderer = A })(K); (function(a) { var C = a.attr, A = a.createElement, G = a.css, F = a.defined, m = a.each, g = a.extend, k = a.isFirefox, q = a.isMS, v = a.isWebKit, u = a.pInt, h = a.SVGRenderer, e = a.win, n = a.wrap; g(a.SVGElement.prototype, { htmlCss: function(a) { var c = this.element; if (c = a && "SPAN" === c.tagName && a.width) delete a.width, this.textWidth = c, this.updateTransform(); a && "ellipsis" === a.textOverflow && (a.whiteSpace = "nowrap", a.overflow = "hidden"); this.styles = g(this.styles, a); G(this.element, a); return this }, htmlGetBBox: function() { var a = this.element; "text" === a.nodeName && (a.style.position = "absolute"); return { x: a.offsetLeft, y: a.offsetTop, width: a.offsetWidth, height: a.offsetHeight } }, htmlUpdateTransform: function() { if (this.added) { var a = this.renderer, c = this.element, e = this.translateX || 0, b = this.translateY || 0, h = this.x || 0, n = this.y || 0, g = this.textAlign || "left", l = { left: 0, center: .5, right: 1 } [g], B = this.styles; G(c, { marginLeft: e, marginTop: b }); this.shadows && m(this.shadows, function(a) { G(a, { marginLeft: e + 1, marginTop: b + 1 }) }); this.inverted && m(c.childNodes, function(b) { a.invertChild(b, c) }); if ("SPAN" === c.tagName) { var r = this.rotation, z = u(this.textWidth), q = B && B.whiteSpace, p = [r, g, c.innerHTML, this.textWidth, this.textAlign].join(); p !== this.cTT && (B = a.fontMetrics(c.style.fontSize).b, F(r) && this.setSpanRotation(r, l, B), G(c, { width: "", whiteSpace: q || "nowrap" }), c.offsetWidth > z && /[ \-]/.test(c.textContent || c.innerText) && G(c, { width: z + "px", display: "block", whiteSpace: q || "normal" }), this.getSpanCorrection(c.offsetWidth, B, l, r, g)); G(c, { left: h + (this.xCorr || 0) + "px", top: n + (this.yCorr || 0) + "px" }); v && (B = c.offsetHeight); this.cTT = p } } else this.alignOnAdd = !0 }, setSpanRotation: function(a, c, h) { var b = {}, d = q ? "-ms-transform": v ? "-webkit-transform": k ? "MozTransform": e.opera ? "-o-transform": ""; b[d] = b.transform = "rotate(" + a + "deg)"; b[d + (k ? "Origin": "-origin")] = b.transformOrigin = 100 * c + "% " + h + "px"; G(this.element, b) }, getSpanCorrection: function(a, c, e) { this.xCorr = -a * e; this.yCorr = -c } }); g(h.prototype, { html: function(a, c, e) { var b = this.createElement("span"), d = b.element, h = b.renderer, w = h.isSVG, l = function(a, b) { m(["opacity", "visibility"], function(l) { n(a, l + "Setter", function(a, l, c, r) { a.call(this, l, c, r); b[c] = l }) }) }; b.textSetter = function(a) { a !== d.innerHTML && delete this.bBox; d.innerHTML = this.textStr = a; b.htmlUpdateTransform() }; w && l(b, b.element.style); b.xSetter = b.ySetter = b.alignSetter = b.rotationSetter = function(a, l) { "align" === l && (l = "textAlign"); b[l] = a; b.htmlUpdateTransform() }; b.attr({ text: a, x: Math.round(c), y: Math.round(e) }).css({ fontFamily: this.style.fontFamily, fontSize: this.style.fontSize, position: "absolute" }); d.style.whiteSpace = "nowrap"; b.css = b.htmlCss; w && (b.add = function(a) { var c, e = h.box.parentNode, B = []; if (this.parentGroup = a) { if (c = a.div, !c) { for (; a;) B.push(a), a = a.parentGroup; m(B.reverse(), function(a) { var r, p = C(a.element, "class"); p && (p = { className: p }); c = a.div = a.div || A("div", p, { position: "absolute", left: (a.translateX || 0) + "px", top: (a.translateY || 0) + "px", display: a.display, opacity: a.opacity, pointerEvents: a.styles && a.styles.pointerEvents }, c || e); r = c.style; g(a, { on: function() { b.on.apply({ element: B[0].div }, arguments); return a }, translateXSetter: function(b, f) { r.left = b + "px"; a[f] = b; a.doTransform = !0 }, translateYSetter: function(b, f) { r.top = b + "px"; a[f] = b; a.doTransform = !0 } }); l(a, r) }) } } else c = e; c.appendChild(d); b.added = !0; b.alignOnAdd && b.htmlUpdateTransform(); return b }); return b } }) })(K); (function(a) { var C, A, G = a.createElement, F = a.css, m = a.defined, g = a.deg2rad, k = a.discardElement, q = a.doc, v = a.each, u = a.erase, h = a.extend; C = a.extendClass; var e = a.isArray, n = a.isNumber, d = a.isObject, c = a.merge; A = a.noop; var w = a.pick, b = a.pInt, y = a.SVGElement, D = a.SVGRenderer, H = a.win; a.svg || (A = { docMode8: q && 8 === q.documentMode, init: function(a, b) { var l = ["\x3c", b, ' filled\x3d"f" stroked\x3d"f"'], c = ["position: ", "absolute", ";"], d = "div" === b; ("shape" === b || d) && c.push("left:0;top:0;width:1px;height:1px;"); c.push("visibility: ", d ? "hidden": "visible"); l.push(' style\x3d"', c.join(""), '"/\x3e'); b && (l = d || "span" === b || "img" === b ? l.join("") : a.prepVML(l), this.element = G(l)); this.renderer = a }, add: function(a) { var b = this.renderer, l = this.element, c = b.box, d = a && a.inverted, c = a ? a.element || a: c; a && (this.parentGroup = a); d && b.invertChild(l, c); c.appendChild(l); this.added = !0; this.alignOnAdd && !this.deferUpdateTransform && this.updateTransform(); if (this.onAdd) this.onAdd(); this.className && this.attr("class", this.className); return this }, updateTransform: y.prototype.htmlUpdateTransform, setSpanRotation: function() { var a = this.rotation, b = Math.cos(a * g), c = Math.sin(a * g); F(this.element, { filter: a ? ["progid:DXImageTransform.Microsoft.Matrix(M11\x3d", b, ", M12\x3d", -c, ", M21\x3d", c, ", M22\x3d", b, ", sizingMethod\x3d'auto expand')"].join("") : "none" }) }, getSpanCorrection: function(a, b, c, d, e) { var l = d ? Math.cos(d * g) : 1, r = d ? Math.sin(d * g) : 0, h = w(this.elemHeight, this.element.offsetHeight), n; this.xCorr = 0 > l && -a; this.yCorr = 0 > r && -h; n = 0 > l * r; this.xCorr += r * b * (n ? 1 - c: c); this.yCorr -= l * b * (d ? n ? c: 1 - c: 1); e && "left" !== e && (this.xCorr -= a * c * (0 > l ? -1 : 1), d && (this.yCorr -= h * c * (0 > r ? -1 : 1)), F(this.element, { textAlign: e })) }, pathToVML: function(a) { for (var b = a.length, l = []; b--;) n(a[b]) ? l[b] = Math.round(10 * a[b]) - 5 : "Z" === a[b] ? l[b] = "x": (l[b] = a[b], !a.isArc || "wa" !== a[b] && "at" !== a[b] || (l[b + 5] === l[b + 7] && (l[b + 7] += a[b + 7] > a[b + 5] ? 1 : -1), l[b + 6] === l[b + 8] && (l[b + 8] += a[b + 8] > a[b + 6] ? 1 : -1))); return l.join(" ") || "x" }, clip: function(a) { var b = this, l; a ? (l = a.members, u(l, b), l.push(b), b.destroyClip = function() { u(l, b) }, a = a.getCSS(b)) : (b.destroyClip && b.destroyClip(), a = { clip: b.docMode8 ? "inherit": "rect(auto)" }); return b.css(a) }, css: y.prototype.htmlCss, safeRemoveChild: function(a) { a.parentNode && k(a) }, destroy: function() { this.destroyClip && this.destroyClip(); return y.prototype.destroy.apply(this) }, on: function(a, b) { this.element["on" + a] = function() { var a = H.event; a.target = a.srcElement; b(a) }; return this }, cutOffPath: function(a, c) { var l; a = a.split(/[ ,]/); l = a.length; if (9 === l || 11 === l) a[l - 4] = a[l - 2] = b(a[l - 2]) - 10 * c; return a.join(" ") }, shadow: function(a, c, d) { var l = [], r, p = this.element, e = this.renderer, h, n = p.style, f, t = p.path, y, J, g, B; t && "string" !== typeof t.value && (t = "x"); J = t; if (a) { g = w(a.width, 3); B = (a.opacity || .15) / g; for (r = 1; 3 >= r; r++) y = 2 * g + 1 - 2 * r, d && (J = this.cutOffPath(t.value, y + .5)), f = ['\x3cshape isShadow\x3d"true" strokeweight\x3d"', y, '" filled\x3d"false" path\x3d"', J, '" coordsize\x3d"10 10" style\x3d"', p.style.cssText, '" /\x3e'], h = G(e.prepVML(f), null, { left: b(n.left) + w(a.offsetX, 1), top: b(n.top) + w(a.offsetY, 1) }), d && (h.cutOff = y + 1), f = ['\x3cstroke color\x3d"', a.color || "#000000", '" opacity\x3d"', B * r, '"/\x3e'], G(e.prepVML(f), null, null, h), c ? c.element.appendChild(h) : p.parentNode.insertBefore(h, p), l.push(h); this.shadows = l } return this }, updateShadows: A, setAttr: function(a, b) { this.docMode8 ? this.element[a] = b: this.element.setAttribute(a, b) }, classSetter: function(a) { (this.added ? this.element: this).className = a }, dashstyleSetter: function(a, b, c) { (c.getElementsByTagName("stroke")[0] || G(this.renderer.prepVML(["\x3cstroke/\x3e"]), null, null, c))[b] = a || "solid"; this[b] = a }, dSetter: function(a, b, c) { var l = this.shadows; a = a || []; this.d = a.join && a.join(" "); c.path = a = this.pathToVML(a); if (l) for (c = l.length; c--;) l[c].path = l[c].cutOff ? this.cutOffPath(a, l[c].cutOff) : a; this.setAttr(b, a) }, fillSetter: function(a, b, c) { var l = c.nodeName; "SPAN" === l ? c.style.color = a: "IMG" !== l && (c.filled = "none" !== a, this.setAttr("fillcolor", this.renderer.color(a, c, b, this))) }, "fill-opacitySetter": function(a, b, c) { G(this.renderer.prepVML(["\x3c", b.split("-")[0], ' opacity\x3d"', a, '"/\x3e']), null, null, c) }, opacitySetter: A, rotationSetter: function(a, b, c) { c = c.style; this[b] = c[b] = a; c.left = -Math.round(Math.sin(a * g) + 1) + "px"; c.top = Math.round(Math.cos(a * g)) + "px" }, strokeSetter: function(a, b, c) { this.setAttr("strokecolor", this.renderer.color(a, c, b, this)) }, "stroke-widthSetter": function(a, b, c) { c.stroked = !!a; this[b] = a; n(a) && (a += "px"); this.setAttr("strokeweight", a) }, titleSetter: function(a, b) { this.setAttr(b, a) }, visibilitySetter: function(a, b, c) { "inherit" === a && (a = "visible"); this.shadows && v(this.shadows, function(c) { c.style[b] = a }); "DIV" === c.nodeName && (a = "hidden" === a ? "-999em": 0, this.docMode8 || (c.style[b] = a ? "visible": "hidden"), b = "top"); c.style[b] = a }, xSetter: function(a, b, c) { this[b] = a; "x" === b ? b = "left": "y" === b && (b = "top"); this.updateClipping ? (this[b] = a, this.updateClipping()) : c.style[b] = a }, zIndexSetter: function(a, b, c) { c.style[b] = a } }, A["stroke-opacitySetter"] = A["fill-opacitySetter"], a.VMLElement = A = C(y, A), A.prototype.ySetter = A.prototype.widthSetter = A.prototype.heightSetter = A.prototype.xSetter, A = { Element: A, isIE8: -1 < H.navigator.userAgent.indexOf("MSIE 8.0"), init: function(a, b, c) { var l, d; this.alignedObjects = []; l = this.createElement("div").css({ position: "relative" }); d = l.element; a.appendChild(l.element); this.isVML = !0; this.box = d; this.boxWrapper = l; this.gradients = {}; this.cache = {}; this.cacheKeys = []; this.imgCount = 0; this.setSize(b, c, !1); if (!q.namespaces.hcv) { q.namespaces.add("hcv", "urn:schemas-microsoft-com:vml"); try { q.createStyleSheet().cssText = "hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } " } catch(p) { q.styleSheets[0].cssText += "hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } " } } }, isHidden: function() { return ! this.box.offsetWidth }, clipRect: function(a, b, c, e) { var l = this.createElement(), p = d(a); return h(l, { members: [], count: 0, left: (p ? a.x: a) + 1, top: (p ? a.y: b) + 1, width: (p ? a.width: c) - 1, height: (p ? a.height: e) - 1, getCSS: function(a) { var b = a.element, c = b.nodeName, f = a.inverted, t = this.top - ("shape" === c ? b.offsetTop: 0), l = this.left, b = l + this.width, p = t + this.height, t = { clip: "rect(" + Math.round(f ? l: t) + "px," + Math.round(f ? p: b) + "px," + Math.round(f ? b: p) + "px," + Math.round(f ? t: l) + "px)" }; ! f && a.docMode8 && "DIV" === c && h(t, { width: b + "px", height: p + "px" }); return t }, updateClipping: function() { v(l.members, function(a) { a.element && a.css(l.getCSS(a)) }) } }) }, color: function(b, c, d, e) { var l = this, p, r = /^rgba/, h, n, f = "none"; b && b.linearGradient ? n = "gradient": b && b.radialGradient && (n = "pattern"); if (n) { var t, y, w = b.linearGradient || b.radialGradient, g, q, B, x, D, z = ""; b = b.stops; var k, m = [], u = function() { h = ['\x3cfill colors\x3d"' + m.join(",") + '" opacity\x3d"', B, '" o:opacity2\x3d"', q, '" type\x3d"', n, '" ', z, 'focus\x3d"100%" method\x3d"any" /\x3e']; G(l.prepVML(h), null, null, c) }; g = b[0]; k = b[b.length - 1]; 0 < g[0] && b.unshift([0, g[1]]); 1 > k[0] && b.push([1, k[1]]); v(b, function(f, b) { r.test(f[1]) ? (p = a.color(f[1]), t = p.get("rgb"), y = p.get("a")) : (t = f[1], y = 1); m.push(100 * f[0] + "% " + t); b ? (B = y, x = t) : (q = y, D = t) }); if ("fill" === d) if ("gradient" === n) d = w.x1 || w[0] || 0, b = w.y1 || w[1] || 0, g = w.x2 || w[2] || 0, w = w.y2 || w[3] || 0, z = 'angle\x3d"' + (90 - 180 * Math.atan((w - b) / (g - d)) / Math.PI) + '"', u(); else { var f = w.r, H = 2 * f, A = 2 * f, C = w.cx, F = w.cy, T = c.radialReference, K, f = function() { T && (K = e.getBBox(), C += (T[0] - K.x) / K.width - .5, F += (T[1] - K.y) / K.height - .5, H *= T[2] / K.width, A *= T[2] / K.height); z = 'src\x3d"' + a.getOptions().global.VMLRadialGradientURL + '" size\x3d"' + H + "," + A + '" origin\x3d"0.5,0.5" position\x3d"' + C + "," + F + '" color2\x3d"' + D + '" '; u() }; e.added ? f() : e.onAdd = f; f = x } else f = t } else r.test(b) && "IMG" !== c.tagName ? (p = a.color(b), e[d + "-opacitySetter"](p.get("a"), d, c), f = p.get("rgb")) : (f = c.getElementsByTagName(d), f.length && (f[0].opacity = 1, f[0].type = "solid"), f = b); return f }, prepVML: function(a) { var b = this.isIE8; a = a.join(""); b ? (a = a.replace("/\x3e", ' xmlns\x3d"urn:schemas-microsoft-com:vml" /\x3e'), a = -1 === a.indexOf('style\x3d"') ? a.replace("/\x3e", ' style\x3d"display:inline-block;behavior:url(#default#VML);" /\x3e') : a.replace('style\x3d"', 'style\x3d"display:inline-block;behavior:url(#default#VML);')) : a = a.replace("\x3c", "\x3chcv:"); return a }, text: D.prototype.html, path: function(a) { var b = { coordsize: "10 10" }; e(a) ? b.d = a: d(a) && h(b, a); return this.createElement("shape").attr(b) }, circle: function(a, b, c) { var l = this.symbol("circle"); d(a) && (c = a.r, b = a.y, a = a.x); l.isCircle = !0; l.r = c; return l.attr({ x: a, y: b }) }, g: function(a) { var b; a && (b = { className: "highcharts-" + a, "class": "highcharts-" + a }); return this.createElement("div").attr(b) }, image: function(a, b, c, d, e) { var l = this.createElement("img").attr({ src: a }); 1 < arguments.length && l.attr({ x: b, y: c, width: d, height: e }); return l }, createElement: function(a) { return "rect" === a ? this.symbol(a) : D.prototype.createElement.call(this, a) }, invertChild: function(a, c) { var d = this; c = c.style; var l = "IMG" === a.tagName && a.style; F(a, { flip: "x", left: b(c.width) - (l ? b(l.top) : 1), top: b(c.height) - (l ? b(l.left) : 1), rotation: -90 }); v(a.childNodes, function(b) { d.invertChild(b, a) }) }, symbols: { arc: function(a, b, c, d, e) { var p = e.start, l = e.end, r = e.r || c || d; c = e.innerR; d = Math.cos(p); var h = Math.sin(p), f = Math.cos(l), t = Math.sin(l); if (0 === l - p) return ["x"]; p = ["wa", a - r, b - r, a + r, b + r, a + r * d, b + r * h, a + r * f, b + r * t]; e.open && !c && p.push("e", "M", a, b); p.push("at", a - c, b - c, a + c, b + c, a + c * f, b + c * t, a + c * d, b + c * h, "x", "e"); p.isArc = !0; return p }, circle: function(a, b, c, d, e) { e && m(e.r) && (c = d = 2 * e.r); e && e.isCircle && (a -= c / 2, b -= d / 2); return ["wa", a, b, a + c, b + d, a + c, b + d / 2, a + c, b + d / 2, "e"] }, rect: function(a, b, c, d, e) { return D.prototype.symbols[m(e) && e.r ? "callout": "square"].call(0, a, b, c, d, e) } } }, a.VMLRenderer = C = function() { this.init.apply(this, arguments) }, C.prototype = c(D.prototype, A), a.Renderer = C); D.prototype.measureSpanWidth = function(a, b) { var c = q.createElement("span"); a = q.createTextNode(a); c.appendChild(a); F(c, b); this.box.appendChild(c); b = c.offsetWidth; k(c); return b } })(K); (function(a) { function C() { var g = a.defaultOptions.global, k = q.moment; if (g.timezone) { if (k) return function(a) { return - k.tz(a, g.timezone).utcOffset() }; a.error(25) } return g.useUTC && g.getTimezoneOffset } function A() { var g = a.defaultOptions.global, u, h = g.useUTC, e = h ? "getUTC": "get", n = h ? "setUTC": "set"; a.Date = u = g.Date || q.Date; u.hcTimezoneOffset = h && g.timezoneOffset; u.hcGetTimezoneOffset = C(); u.hcMakeTime = function(a, c, e, b, n, g) { var d; h ? (d = u.UTC.apply(0, arguments), d += m(d)) : d = (new u(a, c, k(e, 1), k(b, 0), k(n, 0), k(g, 0))).getTime(); return d }; F("Minutes Hours Day Date Month FullYear".split(" "), function(a) { u["hcGet" + a] = e + a }); F("Milliseconds Seconds Minutes Hours Date Month FullYear".split(" "), function(a) { u["hcSet" + a] = n + a }) } var G = a.color, F = a.each, m = a.getTZOffset, g = a.merge, k = a.pick, q = a.win; a.defaultOptions = { colors: "#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "), symbols: ["circle", "diamond", "square", "triangle", "triangle-down"], lang: { loading: "Loading...", months: "January February March April May June July August September October November December".split(" "), shortMonths: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), weekdays: "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), decimalPoint: ".", numericSymbols: "kMGTPE".split(""), resetZoom: "Reset zoom", resetZoomTitle: "Reset zoom level 1:1", thousandsSep: " " }, global: { useUTC: !0, VMLRadialGradientURL: "http://code.highcharts.com/5.0.12/gfx/vml-radial-gradient.png" }, chart: { borderRadius: 0, defaultSeriesType: "line", ignoreHiddenSeries: !0, spacing: [10, 10, 15, 10], resetZoomButton: { theme: { zIndex: 20 }, position: { align: "right", x: -10, y: 10 } }, width: null, height: null, borderColor: "#335cad", backgroundColor: "#ffffff", plotBorderColor: "#cccccc" }, title: { text: "Chart title", align: "center", margin: 15, widthAdjust: -44 }, subtitle: { text: "", align: "center", widthAdjust: -44 }, plotOptions: {}, labels: { style: { position: "absolute", color: "#333333" } }, legend: { enabled: !0, align: "center", layout: "horizontal", labelFormatter: function() { return this.name }, borderColor: "#999999", borderRadius: 0, navigation: { activeColor: "#003399", inactiveColor: "#cccccc" }, itemStyle: { color: "#333333", fontSize: "12px", fontWeight: "bold", textOverflow: "ellipsis" }, itemHoverStyle: { color: "#000000" }, itemHiddenStyle: { color: "#cccccc" }, shadow: !1, itemCheckboxStyle: { position: "absolute", width: "13px", height: "13px" }, squareSymbol: !0, symbolPadding: 5, verticalAlign: "bottom", x: 0, y: 0, title: { style: { fontWeight: "bold" } } }, loading: { labelStyle: { fontWeight: "bold", position: "relative", top: "45%" }, style: { position: "absolute", backgroundColor: "#ffffff", opacity: .5, textAlign: "center" } }, tooltip: { enabled: !0, animation: a.svg, borderRadius: 3, dateTimeLabelFormats: { millisecond: "%A, %b %e, %H:%M:%S.%L", second: "%A, %b %e, %H:%M:%S", minute: "%A, %b %e, %H:%M", hour: "%A, %b %e, %H:%M", day: "%A, %b %e, %Y", week: "Week from %A, %b %e, %Y", month: "%B %Y", year: "%Y" }, footerFormat: "", padding: 8, snap: a.isTouchDevice ? 25 : 10, backgroundColor: G("#f7f7f7").setOpacity(.85).get(), borderWidth: 1, headerFormat: '\x3cspan style\x3d"font-size: 10px"\x3e{point.key}\x3c/span\x3e\x3cbr/\x3e', pointFormat: '\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3e', shadow: !0, style: { color: "#333333", cursor: "default", fontSize: "12px", pointerEvents: "none", whiteSpace: "nowrap" } }, credits: { enabled: !0, href: "http://www.sharkstore.com", position: { align: "right", x: -10, verticalAlign: "bottom", y: -5 }, style: { cursor: "pointer", color: "#999999", fontSize: "9px" }, text: "sharkstore.com" } }; a.setOptions = function(q) { a.defaultOptions = g(!0, a.defaultOptions, q); A(); return a.defaultOptions }; a.getOptions = function() { return a.defaultOptions }; a.defaultPlotOptions = a.defaultOptions.plotOptions; A() })(K); (function(a) { var C = a.correctFloat, A = a.defined, G = a.destroyObjectProperties, F = a.isNumber, m = a.merge, g = a.pick, k = a.deg2rad; a.Tick = function(a, g, k, h) { this.axis = a; this.pos = g; this.type = k || ""; this.isNewLabel = this.isNew = !0; k || h || this.addLabel() }; a.Tick.prototype = { addLabel: function() { var a = this.axis, k = a.options, u = a.chart, h = a.categories, e = a.names, n = this.pos, d = k.labels, c = a.tickPositions, w = n === c[0], b = n === c[c.length - 1], e = h ? g(h[n], e[n], n) : n, h = this.label, c = c.info, y; a.isDatetimeAxis && c && (y = k.dateTimeLabelFormats[c.higherRanks[n] || c.unitName]); this.isFirst = w; this.isLast = b; k = a.labelFormatter.call({ axis: a, chart: u, isFirst: w, isLast: b, dateTimeLabelFormat: y, value: a.isLog ? C(a.lin2log(e)) : e }); A(h) ? h && h.attr({ text: k }) : (this.labelLength = (this.label = h = A(k) && d.enabled ? u.renderer.text(k, 0, 0, d.useHTML).css(m(d.style)).add(a.labelGroup) : null) && h.getBBox().width, this.rotation = 0) }, getLabelSize: function() { return this.label ? this.label.getBBox()[this.axis.horiz ? "height": "width"] : 0 }, handleOverflow: function(a) { var q = this.axis, m = a.x, h = q.chart.chartWidth, e = q.chart.spacing, n = g(q.labelLeft, Math.min(q.pos, e[3])), e = g(q.labelRight, Math.max(q.pos + q.len, h - e[1])), d = this.label, c = this.rotation, w = { left: 0, center: .5, right: 1 } [q.labelAlign], b = d.getBBox().width, y = q.getSlotWidth(), D = y, H = 1, l, B = {}; if (c) 0 > c && m - w * b < n ? l = Math.round(m / Math.cos(c * k) - n) : 0 < c && m + w * b > e && (l = Math.round((h - m) / Math.cos(c * k))); else if (h = m + (1 - w) * b, m - w * b < n ? D = a.x + D * (1 - w) - n: h > e && (D = e - a.x + D * w, H = -1), D = Math.min(y, D), D < y && "center" === q.labelAlign && (a.x += H * (y - D - w * (y - Math.min(b, D)))), b > D || q.autoRotation && (d.styles || {}).width) l = D; l && (B.width = l, (q.options.labels.style || {}).textOverflow || (B.textOverflow = "ellipsis"), d.css(B)) }, getPosition: function(a, g, k, h) { var e = this.axis, n = e.chart, d = h && n.oldChartHeight || n.chartHeight; return { x: a ? e.translate(g + k, null, null, h) + e.transB: e.left + e.offset + (e.opposite ? (h && n.oldChartWidth || n.chartWidth) - e.right - e.left: 0), y: a ? d - e.bottom + e.offset - (e.opposite ? e.height: 0) : d - e.translate(g + k, null, null, h) - e.transB } }, getLabelPosition: function(a, g, m, h, e, n, d, c) { var w = this.axis, b = w.transA, y = w.reversed, D = w.staggerLines, q = w.tickRotCorr || { x: 0, y: 0 }, l = e.y; A(l) || (l = 0 === w.side ? m.rotation ? -8 : -m.getBBox().height: 2 === w.side ? q.y + 8 : Math.cos(m.rotation * k) * (q.y - m.getBBox(!1, 0).height / 2)); a = a + e.x + q.x - (n && h ? n * b * (y ? -1 : 1) : 0); g = g + l - (n && !h ? n * b * (y ? 1 : -1) : 0); D && (m = d / (c || 1) % D, w.opposite && (m = D - m - 1), g += w.labelOffset / D * m); return { x: a, y: Math.round(g) } }, getMarkPath: function(a, g, k, h, e, n) { return n.crispLine(["M", a, g, "L", a + (e ? 0 : -k), g + (e ? k: 0)], h) }, renderGridLine: function(a, g, k) { var h = this.axis, e = h.options, n = this.gridLine, d = {}, c = this.pos, w = this.type, b = h.tickmarkOffset, y = h.chart.renderer, D = w ? w + "Grid": "grid", q = e[D + "LineWidth"], l = e[D + "LineColor"], e = e[D + "LineDashStyle"]; n || (d.stroke = l, d["stroke-width"] = q, e && (d.dashstyle = e), w || (d.zIndex = 1), a && (d.opacity = 0), this.gridLine = n = y.path().attr(d).addClass("highcharts-" + (w ? w + "-": "") + "grid-line").add(h.gridGroup)); if (!a && n && (a = h.getPlotLinePath(c + b, n.strokeWidth() * k, a, !0))) n[this.isNew ? "attr": "animate"]({ d: a, opacity: g }) }, renderMark: function(a, k, m) { var h = this.axis, e = h.options, n = h.chart.renderer, d = this.type, c = d ? d + "Tick": "tick", w = h.tickSize(c), b = this.mark, y = !b, D = a.x; a = a.y; var q = g(e[c + "Width"], !d && h.isXAxis ? 1 : 0), e = e[c + "Color"]; w && (h.opposite && (w[0] = -w[0]), y && (this.mark = b = n.path().addClass("highcharts-" + (d ? d + "-": "") + "tick").add(h.axisGroup), b.attr({ stroke: e, "stroke-width": q })), b[y ? "attr": "animate"]({ d: this.getMarkPath(D, a, w[0], b.strokeWidth() * m, h.horiz, n), opacity: k })) }, renderLabel: function(a, k, m, h) { var e = this.axis, n = e.horiz, d = e.options, c = this.label, w = d.labels, b = w.step, y = e.tickmarkOffset, D = !0, q = a.x; a = a.y; c && F(q) && (c.xy = a = this.getLabelPosition(q, a, c, n, w, y, h, b), this.isFirst && !this.isLast && !g(d.showFirstLabel, 1) || this.isLast && !this.isFirst && !g(d.showLastLabel, 1) ? D = !1 : !n || e.isRadial || w.step || w.rotation || k || 0 === m || this.handleOverflow(a), b && h % b && (D = !1), D && F(a.y) ? (a.opacity = m, c[this.isNewLabel ? "attr": "animate"](a), this.isNewLabel = !1) : (c.attr("y", -9999), this.isNewLabel = !0), this.isNew = !1) }, render: function(a, k, m) { var h = this.axis, e = h.horiz, n = this.getPosition(e, this.pos, h.tickmarkOffset, k), d = n.x, c = n.y, h = e && d === h.pos + h.len || !e && c === h.pos ? -1 : 1; m = g(m, 1); this.isActive = !0; this.renderGridLine(k, m, h); this.renderMark(n, m, h); this.renderLabel(n, k, m, a) }, destroy: function() { G(this, this.axis) } } })(K); var S = function(a) { var C = a.addEvent, A = a.animObject, G = a.arrayMax, F = a.arrayMin, m = a.color, g = a.correctFloat, k = a.defaultOptions, q = a.defined, v = a.deg2rad, u = a.destroyObjectProperties, h = a.each, e = a.extend, n = a.fireEvent, d = a.format, c = a.getMagnitude, w = a.grep, b = a.inArray, y = a.isArray, D = a.isNumber, H = a.isString, l = a.merge, B = a.normalizeTickInterval, r = a.objectEach, z = a.pick, M = a.removeEvent, p = a.splat, E = a.syncTimeout, I = a.Tick, L = function() { this.init.apply(this, arguments) }; a.extend(L.prototype, { defaultOptions: { dateTimeLabelFormats: { millisecond: "%H:%M:%S.%L", second: "%H:%M:%S", minute: "%H:%M", hour: "%H:%M", day: "%e. %b", week: "%e. %b", month: "%b '%y", year: "%Y" }, endOnTick: !1, labels: { enabled: !0, style: { color: "#666666", cursor: "default", fontSize: "11px" }, x: 0 }, minPadding: .01, maxPadding: .01, minorTickLength: 2, minorTickPosition: "outside", startOfWeek: 1, startOnTick: !1, tickLength: 10, tickmarkPlacement: "between", tickPixelInterval: 100, tickPosition: "outside", title: { align: "middle", style: { color: "#666666" } }, type: "linear", minorGridLineColor: "#f2f2f2", minorGridLineWidth: 1, minorTickColor: "#999999", lineColor: "#ccd6eb", lineWidth: 1, gridLineColor: "#e6e6e6", tickColor: "#ccd6eb" }, defaultYAxisOptions: { endOnTick: !0, tickPixelInterval: 72, showLastLabel: !0, labels: { x: -8 }, maxPadding: .05, minPadding: .05, startOnTick: !0, title: { rotation: 270, text: "Values" }, stackLabels: { enabled: !1, formatter: function() { return a.numberFormat(this.total, -1) }, style: { fontSize: "11px", fontWeight: "bold", color: "#000000", textOutline: "1px contrast" } }, gridLineWidth: 1, lineWidth: 0 }, defaultLeftAxisOptions: { labels: { x: -15 }, title: { rotation: 270 } }, defaultRightAxisOptions: { labels: { x: 15 }, title: { rotation: 90 } }, defaultBottomAxisOptions: { labels: { autoRotation: [ - 45], x: 0 }, title: { rotation: 0 } }, defaultTopAxisOptions: { labels: { autoRotation: [ - 45], x: 0 }, title: { rotation: 0 } }, init: function(a, t) { var f = t.isX, c = this; c.chart = a; c.horiz = a.inverted && !c.isZAxis ? !f: f; c.isXAxis = f; c.coll = c.coll || (f ? "xAxis": "yAxis"); c.opposite = t.opposite; c.side = t.side || (c.horiz ? c.opposite ? 0 : 2 : c.opposite ? 1 : 3); c.setOptions(t); var d = this.options, e = d.type; c.labelFormatter = d.labels.formatter || c.defaultLabelFormatter; c.userOptions = t; c.minPixelPadding = 0; c.reversed = d.reversed; c.visible = !1 !== d.visible; c.zoomEnabled = !1 !== d.zoomEnabled; c.hasNames = "category" === e || !0 === d.categories; c.categories = d.categories || c.hasNames; c.names = c.names || []; c.plotLinesAndBandsGroups = {}; c.isLog = "logarithmic" === e; c.isDatetimeAxis = "datetime" === e; c.positiveValuesOnly = c.isLog && !c.allowNegativeLog; c.isLinked = q(d.linkedTo); c.ticks = {}; c.labelEdge = []; c.minorTicks = {}; c.plotLinesAndBands = []; c.alternateBands = {}; c.len = 0; c.minRange = c.userMinRange = d.minRange || d.maxZoom; c.range = d.range; c.offset = d.offset || 0; c.stacks = {}; c.oldStacks = {}; c.stacksTouched = 0; c.max = null; c.min = null; c.crosshair = z(d.crosshair, p(a.options.tooltip.crosshairs)[f ? 0 : 1], !1); t = c.options.events; - 1 === b(c, a.axes) && (f ? a.axes.splice(a.xAxis.length, 0, c) : a.axes.push(c), a[c.coll].push(c)); c.series = c.series || []; a.inverted && !c.isZAxis && f && void 0 === c.reversed && (c.reversed = !0); r(t, function(a, f) { C(c, f, a) }); c.lin2log = d.linearToLogConverter || c.lin2log; c.isLog && (c.val2lin = c.log2lin, c.lin2val = c.lin2log) }, setOptions: function(a) { this.options = l(this.defaultOptions, "yAxis" === this.coll && this.defaultYAxisOptions, [this.defaultTopAxisOptions, this.defaultRightAxisOptions, this.defaultBottomAxisOptions, this.defaultLeftAxisOptions][this.side], l(k[this.coll], a)) }, defaultLabelFormatter: function() { var f = this.axis, b = this.value, c = f.categories, p = this.dateTimeLabelFormat, e = k.lang, l = e.numericSymbols, e = e.numericSymbolMagnitude || 1E3, r = l && l.length, x, h = f.options.labels.format, f = f.isLog ? Math.abs(b) : f.tickInterval; if (h) x = d(h, this); else if (c) x = b; else if (p) x = a.dateFormat(p, b); else if (r && 1E3 <= f) for (; r--&&void 0 === x;) c = Math.pow(e, r + 1), f >= c && 0 === 10 * b % c && null !== l[r] && 0 !== b && (x = a.numberFormat(b / c, -1) + l[r]); void 0 === x && (x = 1E4 <= Math.abs(b) ? a.numberFormat(b, -1) : a.numberFormat(b, -1, void 0, "")); return x }, getSeriesExtremes: function() { var a = this, b = a.chart; a.hasVisibleSeries = !1; a.dataMin = a.dataMax = a.threshold = null; a.softThreshold = !a.isXAxis; a.buildStacks && a.buildStacks(); h(a.series, function(f) { if (f.visible || !b.options.chart.ignoreHiddenSeries) { var c = f.options, t = c.threshold, d; a.hasVisibleSeries = !0; a.positiveValuesOnly && 0 >= t && (t = null); if (a.isXAxis) c = f.xData, c.length && (f = F(c), D(f) || f instanceof Date || (c = w(c, function(a) { return D(a) }), f = F(c)), a.dataMin = Math.min(z(a.dataMin, c[0]), f), a.dataMax = Math.max(z(a.dataMax, c[0]), G(c))); else if (f.getExtremes(), d = f.dataMax, f = f.dataMin, q(f) && q(d) && (a.dataMin = Math.min(z(a.dataMin, f), f), a.dataMax = Math.max(z(a.dataMax, d), d)), q(t) && (a.threshold = t), !c.softThreshold || a.positiveValuesOnly) a.softThreshold = !1 } }) }, translate: function(a, b, c, d, p, e) { var f = this.linkedParent || this, t = 1, l = 0, r = d ? f.oldTransA: f.transA; d = d ? f.oldMin: f.min; var h = f.minPixelPadding; p = (f.isOrdinal || f.isBroken || f.isLog && p) && f.lin2val; r || (r = f.transA); c && (t *= -1, l = f.len); f.reversed && (t *= -1, l -= t * (f.sector || f.len)); b ? (a = (a * t + l - h) / r + d, p && (a = f.lin2val(a))) : (p && (a = f.val2lin(a)), a = t * (a - d) * r + l + t * h + (D(e) ? r * e: 0)); return a }, toPixels: function(a, b) { return this.translate(a, !1, !this.horiz, null, !0) + (b ? 0 : this.pos) }, toValue: function(a, b) { return this.translate(a - (b ? 0 : this.pos), !0, !this.horiz, null, !0) }, getPlotLinePath: function(a, b, c, d, p) { var f = this.chart, t = this.left, e = this.top, l, r, h = c && f.oldChartHeight || f.chartHeight, n = c && f.oldChartWidth || f.chartWidth, w; l = this.transB; var g = function(a, f, b) { if (a < f || a > b) d ? a = Math.min(Math.max(f, a), b) : w = !0; return a }; p = z(p, this.translate(a, null, null, c)); a = c = Math.round(p + l); l = r = Math.round(h - p - l); D(p) ? this.horiz ? (l = e, r = h - this.bottom, a = c = g(a, t, t + this.width)) : (a = t, c = n - this.right, l = r = g(l, e, e + this.height)) : w = !0; return w && !d ? null: f.renderer.crispLine(["M", a, l, "L", c, r], b || 1) }, getLinearTickPositions: function(a, b, c) { var f, t = g(Math.floor(b / a) * a); c = g(Math.ceil(c / a) * a); var d = []; if (this.single) return [b]; for (b = t; b <= c;) { d.push(b); b = g(b + a); if (b === f) break; f = b } return d }, getMinorTickPositions: function() { var a = this, b = a.options, c = a.tickPositions, d = a.minorTickInterval, p = [], e = a.pointRangePadding || 0, l = a.min - e, e = a.max + e, x = e - l; if (x && x / d < a.len / 3) if (a.isLog) h(this.paddedTicks, function(b, f, c) { f && p.push.apply(p, a.getLogTickPositions(d, c[f - 1], c[f], !0)) }); else if (a.isDatetimeAxis && "auto" === b.minorTickInterval) p = p.concat(a.getTimeTicks(a.normalizeTimeTickInterval(d), l, e, b.startOfWeek)); else for (b = l + (c[0] - l) % d; b <= e && b !== p[0]; b += d) p.push(b); 0 !== p.length && a.trimTicks(p); return p }, adjustForMinRange: function() { var a = this.options, b = this.min, c = this.max, d, p, e, l, x, r, n, w; this.isXAxis && void 0 === this.minRange && !this.isLog && (q(a.min) || q(a.max) ? this.minRange = null: (h(this.series, function(a) { r = a.xData; for (l = n = a.xIncrement ? 1 : r.length - 1; 0 < l; l--) if (x = r[l] - r[l - 1], void 0 === e || x < e) e = x }), this.minRange = Math.min(5 * e, this.dataMax - this.dataMin))); c - b < this.minRange && (p = this.dataMax - this.dataMin >= this.minRange, w = this.minRange, d = (w - c + b) / 2, d = [b - d, z(a.min, b - d)], p && (d[2] = this.isLog ? this.log2lin(this.dataMin) : this.dataMin), b = G(d), c = [b + w, z(a.max, b + w)], p && (c[2] = this.isLog ? this.log2lin(this.dataMax) : this.dataMax), c = F(c), c - b < w && (d[0] = c - w, d[1] = z(a.min, c - w), b = G(d))); this.min = b; this.max = c }, getClosest: function() { var a; this.categories ? a = 1 : h(this.series, function(b) { var f = b.closestPointRange, c = b.visible || !b.chart.options.chart.ignoreHiddenSeries; ! b.noSharedTooltip && q(f) && c && (a = q(a) ? Math.min(a, f) : f) }); return a }, nameToX: function(a) { var f = y(this.categories), c = f ? this.categories: this.names, d = a.options.x, p; a.series.requireSorting = !1; q(d) || (d = !1 === this.options.uniqueNames ? a.series.autoIncrement() : b(a.name, c)); - 1 === d ? f || (p = c.length) : p = d; void 0 !== p && (this.names[p] = a.name); return p }, updateNames: function() { var a = this; 0 < this.names.length && (this.names.length = 0, this.minRange = this.userMinRange, h(this.series || [], function(b) { b.xIncrement = null; if (!b.points || b.isDirtyData) b.processData(), b.generatePoints(); h(b.points, function(f, c) { var t; f.options && (t = a.nameToX(f), void 0 !== t && t !== f.x && (f.x = t, b.xData[c] = t)) }) })) }, setAxisTranslation: function(a) { var b = this, f = b.max - b.min, c = b.axisPointRange || 0, d, p = 0, e = 0, l = b.linkedParent, r = !!b.categories, n = b.transA, w = b.isXAxis; if (w || r || c) d = b.getClosest(), l ? (p = l.minPointOffset, e = l.pointRangePadding) : h(b.series, function(a) { var f = r ? 1 : w ? z(a.options.pointRange, d, 0) : b.axisPointRange || 0; a = a.options.pointPlacement; c = Math.max(c, f); b.single || (p = Math.max(p, H(a) ? 0 : f / 2), e = Math.max(e, "on" === a ? 0 : f)) }), l = b.ordinalSlope && d ? b.ordinalSlope / d: 1, b.minPointOffset = p *= l, b.pointRangePadding = e *= l, b.pointRange = Math.min(c, f), w && (b.closestPointRange = d); a && (b.oldTransA = n); b.translationSlope = b.transA = n = b.options.staticScale || b.len / (f + e || 1); b.transB = b.horiz ? b.left: b.bottom; b.minPixelPadding = n * p }, minFromRange: function() { return this.max - this.range }, setTickInterval: function(b) { var f = this, d = f.chart, p = f.options, e = f.isLog, l = f.log2lin, r = f.isDatetimeAxis, x = f.isXAxis, w = f.isLinked, y = p.maxPadding, E = p.minPadding, k = p.tickInterval, I = p.tickPixelInterval, m = f.categories, H = f.threshold, u = f.softThreshold, L, v, M, A; r || m || w || this.getTickAmount(); M = z(f.userMin, p.min); A = z(f.userMax, p.max); w ? (f.linkedParent = d[f.coll][p.linkedTo], d = f.linkedParent.getExtremes(), f.min = z(d.min, d.dataMin), f.max = z(d.max, d.dataMax), p.type !== f.linkedParent.options.type && a.error(11, 1)) : (!u && q(H) && (f.dataMin >= H ? (L = H, E = 0) : f.dataMax <= H && (v = H, y = 0)), f.min = z(M, L, f.dataMin), f.max = z(A, v, f.dataMax)); e && (f.positiveValuesOnly && !b && 0 >= Math.min(f.min, z(f.dataMin, f.min)) && a.error(10, 1), f.min = g(l(f.min), 15), f.max = g(l(f.max), 15)); f.range && q(f.max) && (f.userMin = f.min = M = Math.max(f.min, f.minFromRange()), f.userMax = A = f.max, f.range = null); n(f, "foundExtremes"); f.beforePadding && f.beforePadding(); f.adjustForMinRange(); ! (m || f.axisPointRange || f.usePercentage || w) && q(f.min) && q(f.max) && (l = f.max - f.min) && (!q(M) && E && (f.min -= l * E), !q(A) && y && (f.max += l * y)); D(p.softMin) && (f.min = Math.min(f.min, p.softMin)); D(p.softMax) && (f.max = Math.max(f.max, p.softMax)); D(p.floor) && (f.min = Math.max(f.min, p.floor)); D(p.ceiling) && (f.max = Math.min(f.max, p.ceiling)); u && q(f.dataMin) && (H = H || 0, !q(M) && f.min < H && f.dataMin >= H ? f.min = H: !q(A) && f.max > H && f.dataMax <= H && (f.max = H)); f.tickInterval = f.min === f.max || void 0 === f.min || void 0 === f.max ? 1 : w && !k && I === f.linkedParent.options.tickPixelInterval ? k = f.linkedParent.tickInterval: z(k, this.tickAmount ? (f.max - f.min) / Math.max(this.tickAmount - 1, 1) : void 0, m ? 1 : (f.max - f.min) * I / Math.max(f.len, I)); x && !b && h(f.series, function(a) { a.processData(f.min !== f.oldMin || f.max !== f.oldMax) }); f.setAxisTranslation(!0); f.beforeSetTickPositions && f.beforeSetTickPositions(); f.postProcessTickInterval && (f.tickInterval = f.postProcessTickInterval(f.tickInterval)); f.pointRange && !k && (f.tickInterval = Math.max(f.pointRange, f.tickInterval)); b = z(p.minTickInterval, f.isDatetimeAxis && f.closestPointRange); ! k && f.tickInterval < b && (f.tickInterval = b); r || e || k || (f.tickInterval = B(f.tickInterval, null, c(f.tickInterval), z(p.allowDecimals, !(.5 < f.tickInterval && 5 > f.tickInterval && 1E3 < f.max && 9999 > f.max)), !!this.tickAmount)); this.tickAmount || (f.tickInterval = f.unsquish()); this.setTickPositions() }, setTickPositions: function() { var a = this.options, b, c = a.tickPositions, d = a.tickPositioner, p = a.startOnTick, l = a.endOnTick; this.tickmarkOffset = this.categories && "between" === a.tickmarkPlacement && 1 === this.tickInterval ? .5 : 0; this.minorTickInterval = "auto" === a.minorTickInterval && this.tickInterval ? this.tickInterval / 5 : a.minorTickInterval; this.single = this.min === this.max && q(this.min) && !this.tickAmount && (parseInt(this.min, 10) === this.min || !1 !== a.allowDecimals); this.tickPositions = b = c && c.slice(); ! b && (b = this.isDatetimeAxis ? this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval, a.units), this.min, this.max, a.startOfWeek, this.ordinalPositions, this.closestPointRange, !0) : this.isLog ? this.getLogTickPositions(this.tickInterval, this.min, this.max) : this.getLinearTickPositions(this.tickInterval, this.min, this.max), b.length > this.len && (b = [b[0], b.pop()]), this.tickPositions = b, d && (d = d.apply(this, [this.min, this.max]))) && (this.tickPositions = b = d); this.paddedTicks = b.slice(0); this.trimTicks(b, p, l); this.isLinked || (this.single && (this.min -= .5, this.max += .5), c || d || this.adjustTickAmount()) }, trimTicks: function(a, b, c) { var f = a[0], d = a[a.length - 1], p = this.minPointOffset || 0; if (!this.isLinked) { if (b && -Infinity !== f) this.min = f; else for (; this.min - p > a[0];) a.shift(); if (c) this.max = d; else for (; this.max + p < a[a.length - 1];) a.pop(); 0 === a.length && q(f) && a.push((d + f) / 2) } }, alignToOthers: function() { var a = {}, b, c = this.options; ! 1 === this.chart.options.chart.alignTicks || !1 === c.alignTicks || this.isLog || h(this.chart[this.coll], function(f) { var c = f.options, c = [f.horiz ? c.left: c.top, c.width, c.height, c.pane].join(); f.series.length && (a[c] ? b = !0 : a[c] = 1) }); return b }, getTickAmount: function() { var a = this.options, b = a.tickAmount, c = a.tickPixelInterval; ! q(a.tickInterval) && this.len < c && !this.isRadial && !this.isLog && a.startOnTick && a.endOnTick && (b = 2); ! b && this.alignToOthers() && (b = Math.ceil(this.len / c) + 1); 4 > b && (this.finalTickAmt = b, b = 5); this.tickAmount = b }, adjustTickAmount: function() { var a = this.tickInterval, b = this.tickPositions, c = this.tickAmount, d = this.finalTickAmt, p = b && b.length; if (p < c) { for (; b.length < c;) b.push(g(b[b.length - 1] + a)); this.transA *= (p - 1) / (c - 1); this.max = b[b.length - 1] } else p > c && (this.tickInterval *= 2, this.setTickPositions()); if (q(d)) { for (a = c = b.length; a--;)(3 === d && 1 === a % 2 || 2 >= d && 0 < a && a < c - 1) && b.splice(a, 1); this.finalTickAmt = void 0 } }, setScale: function() { var a, b; this.oldMin = this.min; this.oldMax = this.max; this.oldAxisLength = this.len; this.setAxisSize(); b = this.len !== this.oldAxisLength; h(this.series, function(b) { if (b.isDirtyData || b.isDirty || b.xAxis.isDirty) a = !0 }); b || a || this.isLinked || this.forceRedraw || this.userMin !== this.oldUserMin || this.userMax !== this.oldUserMax || this.alignToOthers() ? (this.resetStacks && this.resetStacks(), this.forceRedraw = !1, this.getSeriesExtremes(), this.setTickInterval(), this.oldUserMin = this.userMin, this.oldUserMax = this.userMax, this.isDirty || (this.isDirty = b || this.min !== this.oldMin || this.max !== this.oldMax)) : this.cleanStacks && this.cleanStacks() }, setExtremes: function(a, b, c, d, p) { var f = this, l = f.chart; c = z(c, !0); h(f.series, function(a) { delete a.kdTree }); p = e(p, { min: a, max: b }); n(f, "setExtremes", p, function() { f.userMin = a; f.userMax = b; f.eventArgs = p; c && l.redraw(d) }) }, zoom: function(a, b) { var f = this.dataMin, c = this.dataMax, d = this.options, p = Math.min(f, z(d.min, f)), d = Math.max(c, z(d.max, c)); if (a !== this.min || b !== this.max) this.allowZoomOutside || (q(f) && (a < p && (a = p), a > d && (a = d)), q(c) && (b < p && (b = p), b > d && (b = d))), this.displayBtn = void 0 !== a || void 0 !== b, this.setExtremes(a, b, !1, void 0, { trigger: "zoom" }); return ! 0 }, setAxisSize: function() { var a = this.chart, b = this.options, c = b.offsets || [0, 0, 0, 0], d = this.horiz, p = z(b.width, a.plotWidth - c[3] + c[1]), l = z(b.height, a.plotHeight - c[0] + c[2]), e = z(b.top, a.plotTop + c[0]), b = z(b.left, a.plotLeft + c[3]), c = /%$/; c.test(l) && (l = Math.round(parseFloat(l) / 100 * a.plotHeight)); c.test(e) && (e = Math.round(parseFloat(e) / 100 * a.plotHeight + a.plotTop)); this.left = b; this.top = e; this.width = p; this.height = l; this.bottom = a.chartHeight - l - e; this.right = a.chartWidth - p - b; this.len = Math.max(d ? p: l, 0); this.pos = d ? b: e }, getExtremes: function() { var a = this.isLog, b = this.lin2log; return { min: a ? g(b(this.min)) : this.min, max: a ? g(b(this.max)) : this.max, dataMin: this.dataMin, dataMax: this.dataMax, userMin: this.userMin, userMax: this.userMax } }, getThreshold: function(a) { var b = this.isLog, f = this.lin2log, c = b ? f(this.min) : this.min, b = b ? f(this.max) : this.max; null === a ? a = c: c > a ? a = c: b < a && (a = b); return this.translate(a, 0, 1, 0, 1) }, autoLabelAlign: function(a) { a = (z(a, 0) - 90 * this.side + 720) % 360; return 15 < a && 165 > a ? "right": 195 < a && 345 > a ? "left": "center" }, tickSize: function(a) { var b = this.options, f = b[a + "Length"], c = z(b[a + "Width"], "tick" === a && this.isXAxis ? 1 : 0); if (c && f) return "inside" === b[a + "Position"] && (f = -f), [f, c] }, labelMetrics: function() { var a = this.tickPositions && this.tickPositions[0] || 0; return this.chart.renderer.fontMetrics(this.options.labels.style && this.options.labels.style.fontSize, this.ticks[a] && this.ticks[a].label) }, unsquish: function() { var a = this.options.labels, b = this.horiz, c = this.tickInterval, d = c, p = this.len / (((this.categories ? 1 : 0) + this.max - this.min) / c), l, e = a.rotation, r = this.labelMetrics(), n, w = Number.MAX_VALUE, g, y = function(a) { a /= p || 1; a = 1 < a ? Math.ceil(a) : 1; return a * c }; b ? (g = !a.staggerLines && !a.step && (q(e) ? [e] : p < z(a.autoRotationLimit, 80) && a.autoRotation)) && h(g, function(a) { var b; if (a === e || a && -90 <= a && 90 >= a) n = y(Math.abs(r.h / Math.sin(v * a))), b = n + Math.abs(a / 360), b < w && (w = b, l = a, d = n) }) : a.step || (d = y(r.h)); this.autoRotation = g; this.labelRotation = z(l, e); return d }, getSlotWidth: function() { var a = this.chart, b = this.horiz, c = this.options.labels, d = Math.max(this.tickPositions.length - (this.categories ? 0 : 1), 1), p = a.margin[3]; return b && 2 > (c.step || 0) && !c.rotation && (this.staggerLines || 1) * this.len / d || !b && (p && p - a.spacing[3] || .33 * a.chartWidth) }, renderUnsquish: function() { var a = this.chart, b = a.renderer, c = this.tickPositions, d = this.ticks, p = this.options.labels, e = this.horiz, r = this.getSlotWidth(), x = Math.max(1, Math.round(r - 2 * (p.padding || 5))), n = {}, w = this.labelMetrics(), g = p.style && p.style.textOverflow, y, E = 0, k, I; H(p.rotation) || (n.rotation = p.rotation || 0); h(c, function(a) { (a = d[a]) && a.labelLength > E && (E = a.labelLength) }); this.maxLabelLength = E; if (this.autoRotation) E > x && E > w.h ? n.rotation = this.labelRotation: this.labelRotation = 0; else if (r && (y = { width: x + "px" }, !g)) for (y.textOverflow = "clip", k = c.length; ! e && k--;) if (I = c[k], x = d[I].label) x.styles && "ellipsis" === x.styles.textOverflow ? x.css({ textOverflow: "clip" }) : d[I].labelLength > r && x.css({ width: r + "px" }), x.getBBox().height > this.len / c.length - (w.h - w.f) && (x.specCss = { textOverflow: "ellipsis" }); n.rotation && (y = { width: (E > .5 * a.chartHeight ? .33 * a.chartHeight: a.chartHeight) + "px" }, g || (y.textOverflow = "ellipsis")); if (this.labelAlign = p.align || this.autoLabelAlign(this.labelRotation)) n.align = this.labelAlign; h(c, function(a) { var b = (a = d[a]) && a.label; b && (b.attr(n), y && b.css(l(y, b.specCss)), delete b.specCss, a.rotation = n.rotation) }); this.tickRotCorr = b.rotCorr(w.b, this.labelRotation || 0, 0 !== this.side) }, hasData: function() { return this.hasVisibleSeries || q(this.min) && q(this.max) && !!this.tickPositions }, addTitle: function(a) { var b = this.chart.renderer, f = this.horiz, c = this.opposite, d = this.options.title, p; this.axisTitle || ((p = d.textAlign) || (p = (f ? { low: "left", middle: "center", high: "right" }: { low: c ? "right": "left", middle: "center", high: c ? "left": "right" })[d.align]), this.axisTitle = b.text(d.text, 0, 0, d.useHTML).attr({ zIndex: 7, rotation: d.rotation || 0, align: p }).addClass("highcharts-axis-title").css(d.style).add(this.axisGroup), this.axisTitle.isNew = !0); this.axisTitle[a ? "show": "hide"](!0) }, generateTick: function(a) { var b = this.ticks; b[a] ? b[a].addLabel() : b[a] = new I(this, a) }, getOffset: function() { var a = this, b = a.chart, c = b.renderer, d = a.options, p = a.tickPositions, l = a.ticks, e = a.horiz, x = a.side, n = b.inverted && !a.isZAxis ? [1, 0, 3, 2][x] : x, w, g, y = 0, E, k = 0, I = d.title, D = d.labels, m = 0, B = b.axisOffset, b = b.clipOffset, H = [ - 1, 1, 1, -1][x], u = d.className, L = a.axisParent, v = this.tickSize("tick"); w = a.hasData(); a.showAxis = g = w || z(d.showEmpty, !0); a.staggerLines = a.horiz && D.staggerLines; a.axisGroup || (a.gridGroup = c.g("grid").attr({ zIndex: d.gridZIndex || 1 }).addClass("highcharts-" + this.coll.toLowerCase() + "-grid " + (u || "")).add(L), a.axisGroup = c.g("axis").attr({ zIndex: d.zIndex || 2 }).addClass("highcharts-" + this.coll.toLowerCase() + " " + (u || "")).add(L), a.labelGroup = c.g("axis-labels").attr({ zIndex: D.zIndex || 7 }).addClass("highcharts-" + a.coll.toLowerCase() + "-labels " + (u || "")).add(L)); w || a.isLinked ? (h(p, function(b, c) { a.generateTick(b, c) }), a.renderUnsquish(), !1 === D.reserveSpace || 0 !== x && 2 !== x && { 1 : "left", 3 : "right" } [x] !== a.labelAlign && "center" !== a.labelAlign || h(p, function(a) { m = Math.max(l[a].getLabelSize(), m) }), a.staggerLines && (m *= a.staggerLines, a.labelOffset = m * (a.opposite ? -1 : 1))) : r(l, function(a, b) { a.destroy(); delete l[b] }); I && I.text && !1 !== I.enabled && (a.addTitle(g), g && !1 !== I.reserveSpace && (a.titleOffset = y = a.axisTitle.getBBox()[e ? "height": "width"], E = I.offset, k = q(E) ? 0 : z(I.margin, e ? 5 : 10))); a.renderLine(); a.offset = H * z(d.offset, B[x]); a.tickRotCorr = a.tickRotCorr || { x: 0, y: 0 }; c = 0 === x ? -a.labelMetrics().h: 2 === x ? a.tickRotCorr.y: 0; k = Math.abs(m) + k; m && (k = k - c + H * (e ? z(D.y, a.tickRotCorr.y + 8 * H) : D.x)); a.axisTitleMargin = z(E, k); B[x] = Math.max(B[x], a.axisTitleMargin + y + H * a.offset, k, w && p.length && v ? v[0] + H * a.offset: 0); p = 2 * Math.floor(a.axisLine.strokeWidth() / 2); 0 < d.offset && (p -= 2 * d.offset); b[n] = Math.max(b[n] || p, p) }, getLinePath: function(a) { var b = this.chart, c = this.opposite, f = this.offset, d = this.horiz, p = this.left + (c ? this.width: 0) + f, f = b.chartHeight - this.bottom - (c ? this.height: 0) + f; c && (a *= -1); return b.renderer.crispLine(["M", d ? this.left: p, d ? f: this.top, "L", d ? b.chartWidth - this.right: p, d ? f: b.chartHeight - this.bottom], a) }, renderLine: function() { this.axisLine || (this.axisLine = this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup), this.axisLine.attr({ stroke: this.options.lineColor, "stroke-width": this.options.lineWidth, zIndex: 7 })) }, getTitlePosition: function() { var a = this.horiz, b = this.left, c = this.top, d = this.len, p = this.options.title, l = a ? b: c, e = this.opposite, r = this.offset, h = p.x || 0, n = p.y || 0, w = this.chart.renderer.fontMetrics(p.style && p.style.fontSize, this.axisTitle).f, d = { low: l + (a ? 0 : d), middle: l + d / 2, high: l + (a ? d: 0) } [p.align], b = (a ? c + this.height: b) + (a ? 1 : -1) * (e ? -1 : 1) * this.axisTitleMargin + (2 === this.side ? w: 0); return { x: a ? d + h: b + (e ? this.width: 0) + r + h, y: a ? b + n - (e ? this.height: 0) + r: d + n } }, renderMinorTick: function(a) { var b = this.chart.hasRendered && D(this.oldMin), c = this.minorTicks; c[a] || (c[a] = new I(this, a, "minor")); b && c[a].isNew && c[a].render(null, !0); c[a].render(null, !1, 1) }, renderTick: function(a, b) { var c = this.isLinked, f = this.ticks, d = this.chart.hasRendered && D(this.oldMin); if (!c || a >= this.min && a <= this.max) f[a] || (f[a] = new I(this, a)), d && f[a].isNew && f[a].render(b, !0, .1), f[a].render(b) }, render: function() { var b = this, c = b.chart, d = b.options, p = b.isLog, l = b.lin2log, e = b.isLinked, n = b.tickPositions, x = b.axisTitle, w = b.ticks, g = b.minorTicks, y = b.alternateBands, k = d.stackLabels, m = d.alternateGridColor, q = b.tickmarkOffset, z = b.axisLine, B = b.showAxis, H = A(c.renderer.globalAnimation), u, L; b.labelEdge.length = 0; b.overlap = !1; h([w, g, y], function(a) { r(a, function(a) { a.isActive = !1 }) }); if (b.hasData() || e) b.minorTickInterval && !b.categories && h(b.getMinorTickPositions(), function(a) { b.renderMinorTick(a) }), n.length && (h(n, function(a, c) { b.renderTick(a, c) }), q && (0 === b.min || b.single) && (w[ - 1] || (w[ - 1] = new I(b, -1, null, !0)), w[ - 1].render( - 1))), m && h(n, function(f, d) { L = void 0 !== n[d + 1] ? n[d + 1] + q: b.max - q; 0 === d % 2 && f < b.max && L <= b.max + (c.polar ? -q: q) && (y[f] || (y[f] = new a.PlotLineOrBand(b)), u = f + q, y[f].options = { from: p ? l(u) : u, to: p ? l(L) : L, color: m }, y[f].render(), y[f].isActive = !0) }), b._addedPlotLB || (h((d.plotLines || []).concat(d.plotBands || []), function(a) { b.addPlotBandOrLine(a) }), b._addedPlotLB = !0); h([w, g, y], function(a) { var b, f = [], d = H.duration; r(a, function(a, b) { a.isActive || (a.render(b, !1, 0), a.isActive = !1, f.push(b)) }); E(function() { for (b = f.length; b--;) a[f[b]] && !a[f[b]].isActive && (a[f[b]].destroy(), delete a[f[b]]) }, a !== y && c.hasRendered && d ? d: 0) }); z && (z[z.isPlaced ? "animate": "attr"]({ d: this.getLinePath(z.strokeWidth()) }), z.isPlaced = !0, z[B ? "show": "hide"](!0)); x && B && (d = b.getTitlePosition(), D(d.y) ? (x[x.isNew ? "attr": "animate"](d), x.isNew = !1) : (x.attr("y", -9999), x.isNew = !0)); k && k.enabled && b.renderStackTotals(); b.isDirty = !1 }, redraw: function() { this.visible && (this.render(), h(this.plotLinesAndBands, function(a) { a.render() })); h(this.series, function(a) { a.isDirty = !0 }) }, keepProps: "extKey hcEvents names series userMax userMin".split(" "), destroy: function(a) { var c = this, f = c.stacks, d = c.plotLinesAndBands, p; a || M(c); r(f, function(a, b) { u(a); f[b] = null }); h([c.ticks, c.minorTicks, c.alternateBands], function(a) { u(a) }); if (d) for (a = d.length; a--;) d[a].destroy(); h("stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross".split(" "), function(a) { c[a] && (c[a] = c[a].destroy()) }); for (p in c.plotLinesAndBandsGroups) c.plotLinesAndBandsGroups[p] = c.plotLinesAndBandsGroups[p].destroy(); r(c, function(a, f) { - 1 === b(f, c.keepProps) && delete c[f] }) }, drawCrosshair: function(a, b) { var c, f = this.crosshair, d = z(f.snap, !0), p, l = this.cross; a || (a = this.cross && this.cross.e); this.crosshair && !1 !== (q(b) || !d) ? (d ? q(b) && (p = this.isXAxis ? b.plotX: this.len - b.plotY) : p = a && (this.horiz ? a.chartX - this.pos: this.len - a.chartY + this.pos), q(p) && (c = this.getPlotLinePath(b && (this.isXAxis ? b.x: z(b.stackY, b.y)), null, null, null, p) || null), q(c) ? (b = this.categories && !this.isRadial, l || (this.cross = l = this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-" + (b ? "category ": "thin ") + f.className).attr({ zIndex: z(f.zIndex, 2) }).add(), l.attr({ stroke: f.color || (b ? m("#ccd6eb").setOpacity(.25).get() : "#cccccc"), "stroke-width": z(f.width, 1) }), f.dashStyle && l.attr({ dashstyle: f.dashStyle })), l.show().attr({ d: c }), b && !f.width && l.attr({ "stroke-width": this.transA }), this.cross.e = a) : this.hideCrosshair()) : this.hideCrosshair() }, hideCrosshair: function() { this.cross && this.cross.hide() } }); return a.Axis = L } (K); (function(a) { var C = a.Axis, A = a.Date, G = a.dateFormat, F = a.defaultOptions, m = a.defined, g = a.each, k = a.extend, q = a.getMagnitude, v = a.getTZOffset, u = a.normalizeTickInterval, h = a.pick, e = a.timeUnits; C.prototype.getTimeTicks = function(a, d, c, w) { var b = [], n = {}, D = F.global.useUTC, q, l = new A(d - Math.max(v(d), v(c))), B = A.hcMakeTime, r = a.unitRange, z = a.count, u; if (m(d)) { l[A.hcSetMilliseconds](r >= e.second ? 0 : z * Math.floor(l.getMilliseconds() / z)); if (r >= e.second) l[A.hcSetSeconds](r >= e.minute ? 0 : z * Math.floor(l.getSeconds() / z)); if (r >= e.minute) l[A.hcSetMinutes](r >= e.hour ? 0 : z * Math.floor(l[A.hcGetMinutes]() / z)); if (r >= e.hour) l[A.hcSetHours](r >= e.day ? 0 : z * Math.floor(l[A.hcGetHours]() / z)); if (r >= e.day) l[A.hcSetDate](r >= e.month ? 1 : z * Math.floor(l[A.hcGetDate]() / z)); r >= e.month && (l[A.hcSetMonth](r >= e.year ? 0 : z * Math.floor(l[A.hcGetMonth]() / z)), q = l[A.hcGetFullYear]()); if (r >= e.year) l[A.hcSetFullYear](q - q % z); if (r === e.week) l[A.hcSetDate](l[A.hcGetDate]() - l[A.hcGetDay]() + h(w, 1)); q = l[A.hcGetFullYear](); w = l[A.hcGetMonth](); var p = l[A.hcGetDate](), E = l[A.hcGetHours](); if (A.hcTimezoneOffset || A.hcGetTimezoneOffset) u = (!D || !!A.hcGetTimezoneOffset) && (c - d > 4 * e.month || v(d) !== v(c)), l = l.getTime(), l = new A(l + v(l)); D = l.getTime(); for (d = 1; D < c;) b.push(D), D = r === e.year ? B(q + d * z, 0) : r === e.month ? B(q, w + d * z) : !u || r !== e.day && r !== e.week ? u && r === e.hour ? B(q, w, p, E + d * z) : D + r * z: B(q, w, p + d * z * (r === e.day ? 1 : 7)), d++; b.push(D); r <= e.hour && 1E4 > b.length && g(b, function(a) { 0 === a % 18E5 && "000000000" === G("%H%M%S%L", a) && (n[a] = "day") }) } b.info = k(a, { higherRanks: n, totalRange: r * z }); return b }; C.prototype.normalizeTimeTickInterval = function(a, d) { var c = d || [["millisecond", [1, 2, 5, 10, 20, 25, 50, 100, 200, 500]], ["second", [1, 2, 5, 10, 15, 30]], ["minute", [1, 2, 5, 10, 15, 30]], ["hour", [1, 2, 3, 4, 6, 8, 12]], ["day", [1, 2]], ["week", [1, 2]], ["month", [1, 2, 3, 4, 6]], ["year", null]]; d = c[c.length - 1]; var h = e[d[0]], b = d[1], n; for (n = 0; n < c.length && !(d = c[n], h = e[d[0]], b = d[1], c[n + 1] && a <= (h * b[b.length - 1] + e[c[n + 1][0]]) / 2); n++); h === e.year && a < 5 * h && (b = [1, 2, 5]); a = u(a / h, b, "year" === d[0] ? Math.max(q(a / h), 1) : 1); return { unitRange: h, count: a, unitName: d[0] } } })(K); (function(a) { var C = a.Axis, A = a.getMagnitude, G = a.map, F = a.normalizeTickInterval, m = a.pick; C.prototype.getLogTickPositions = function(a, k, q, v) { var g = this.options, h = this.len, e = this.lin2log, n = this.log2lin, d = []; v || (this._minorAutoInterval = null); if (.5 <= a) a = Math.round(a), d = this.getLinearTickPositions(a, k, q); else if (.08 <= a) for (var h = Math.floor(k), c, w, b, y, D, g = .3 < a ? [1, 2, 4] : .15 < a ? [1, 2, 4, 6, 8] : [1, 2, 3, 4, 5, 6, 7, 8, 9]; h < q + 1 && !D; h++) for (w = g.length, c = 0; c < w && !D; c++) b = n(e(h) * g[c]), b > k && (!v || y <= q) && void 0 !== y && d.push(y), y > q && (D = !0), y = b; else k = e(k), q = e(q), a = g[v ? "minorTickInterval": "tickInterval"], a = m("auto" === a ? null: a, this._minorAutoInterval, g.tickPixelInterval / (v ? 5 : 1) * (q - k) / ((v ? h / this.tickPositions.length: h) || 1)), a = F(a, null, A(a)), d = G(this.getLinearTickPositions(a, k, q), n), v || (this._minorAutoInterval = a / 5); v || (this.tickInterval = a); return d }; C.prototype.log2lin = function(a) { return Math.log(a) / Math.LN10 }; C.prototype.lin2log = function(a) { return Math.pow(10, a) } })(K); (function(a, C) { var A = a.arrayMax, G = a.arrayMin, F = a.defined, m = a.destroyObjectProperties, g = a.each, k = a.erase, q = a.merge, v = a.pick; a.PlotLineOrBand = function(a, h) { this.axis = a; h && (this.options = h, this.id = h.id) }; a.PlotLineOrBand.prototype = { render: function() { var g = this, h = g.axis, e = h.horiz, n = g.options, d = n.label, c = g.label, w = n.to, b = n.from, y = n.value, k = F(b) && F(w), m = F(y), l = g.svgElem, B = !l, r = [], z = n.color, M = v(n.zIndex, 0), p = n.events, r = { "class": "highcharts-plot-" + (k ? "band ": "line ") + (n.className || "") }, E = {}, I = h.chart.renderer, L = k ? "bands": "lines", f = h.log2lin; h.isLog && (b = f(b), w = f(w), y = f(y)); m ? (r = { stroke: z, "stroke-width": n.width }, n.dashStyle && (r.dashstyle = n.dashStyle)) : k && (z && (r.fill = z), n.borderWidth && (r.stroke = n.borderColor, r["stroke-width"] = n.borderWidth)); E.zIndex = M; L += "-" + M; (z = h.plotLinesAndBandsGroups[L]) || (h.plotLinesAndBandsGroups[L] = z = I.g("plot-" + L).attr(E).add()); B && (g.svgElem = l = I.path().attr(r).add(z)); if (m) r = h.getPlotLinePath(y, l.strokeWidth()); else if (k) r = h.getPlotBandPath(b, w, n); else return; B && r && r.length ? (l.attr({ d: r }), p && a.objectEach(p, function(a, b) { l.on(b, function(a) { p[b].apply(g, [a]) }) })) : l && (r ? (l.show(), l.animate({ d: r })) : (l.hide(), c && (g.label = c = c.destroy()))); d && F(d.text) && r && r.length && 0 < h.width && 0 < h.height && !r.flat ? (d = q({ align: e && k && "center", x: e ? !k && 4 : 10, verticalAlign: !e && k && "middle", y: e ? k ? 16 : 10 : k ? 6 : -4, rotation: e && !k && 90 }, d), this.renderLabel(d, r, k, M)) : c && c.hide(); return g }, renderLabel: function(a, h, e, n) { var d = this.label, c = this.axis.chart.renderer; d || (d = { align: a.textAlign || a.align, rotation: a.rotation, "class": "highcharts-plot-" + (e ? "band": "line") + "-label " + (a.className || "") }, d.zIndex = n, this.label = d = c.text(a.text, 0, 0, a.useHTML).attr(d).add(), d.css(a.style)); n = [h[1], h[4], e ? h[6] : h[1]]; h = [h[2], h[5], e ? h[7] : h[2]]; e = G(n); c = G(h); d.align(a, !1, { x: e, y: c, width: A(n) - e, height: A(h) - c }); d.show() }, destroy: function() { k(this.axis.plotLinesAndBands, this); delete this.axis; m(this) } }; a.extend(C.prototype, { getPlotBandPath: function(a, h) { var e = this.getPlotLinePath(h, null, null, !0), n = this.getPlotLinePath(a, null, null, !0), d = this.horiz, c = 1; a = a < this.min && h < this.min || a > this.max && h > this.max; n && e ? (a && (n.flat = n.toString() === e.toString(), c = 0), n.push(d && e[4] === n[4] ? e[4] + c: e[4], d || e[5] !== n[5] ? e[5] : e[5] + c, d && e[1] === n[1] ? e[1] + c: e[1], d || e[2] !== n[2] ? e[2] : e[2] + c)) : n = null; return n }, addPlotBand: function(a) { return this.addPlotBandOrLine(a, "plotBands") }, addPlotLine: function(a) { return this.addPlotBandOrLine(a, "plotLines") }, addPlotBandOrLine: function(g, h) { var e = (new a.PlotLineOrBand(this, g)).render(), n = this.userOptions; e && (h && (n[h] = n[h] || [], n[h].push(g)), this.plotLinesAndBands.push(e)); return e }, removePlotBandOrLine: function(a) { for (var h = this.plotLinesAndBands, e = this.options, n = this.userOptions, d = h.length; d--;) h[d].id === a && h[d].destroy(); g([e.plotLines || [], n.plotLines || [], e.plotBands || [], n.plotBands || []], function(c) { for (d = c.length; d--;) c[d].id === a && k(c, c[d]) }) }, removePlotBand: function(a) { this.removePlotBandOrLine(a) }, removePlotLine: function(a) { this.removePlotBandOrLine(a) } }) })(K, S); (function(a) { var C = a.dateFormat, A = a.each, G = a.extend, F = a.format, m = a.isNumber, g = a.map, k = a.merge, q = a.pick, v = a.splat, u = a.syncTimeout, h = a.timeUnits; a.Tooltip = function() { this.init.apply(this, arguments) }; a.Tooltip.prototype = { init: function(a, h) { this.chart = a; this.options = h; this.crosshairs = []; this.now = { x: 0, y: 0 }; this.isHidden = !0; this.split = h.split && !a.inverted; this.shared = h.shared || this.split }, cleanSplit: function(a) { A(this.chart.series, function(e) { var d = e && e.tt; d && (!d.isActive || a ? e.tt = d.destroy() : d.isActive = !1) }) }, getLabel: function() { var a = this.chart.renderer, h = this.options; this.label || (this.split ? this.label = a.g("tooltip") : (this.label = a.label("", 0, 0, h.shape || "callout", null, null, h.useHTML, null, "tooltip").attr({ padding: h.padding, r: h.borderRadius }), this.label.attr({ fill: h.backgroundColor, "stroke-width": h.borderWidth }).css(h.style).shadow(h.shadow)), this.label.attr({ zIndex: 8 }).add()); return this.label }, update: function(a) { this.destroy(); k(!0, this.chart.options.tooltip.userOptions, a); this.init(this.chart, k(!0, this.options, a)) }, destroy: function() { this.label && (this.label = this.label.destroy()); this.split && this.tt && (this.cleanSplit(this.chart, !0), this.tt = this.tt.destroy()); clearTimeout(this.hideTimer); clearTimeout(this.tooltipTimeout) }, move: function(a, h, d, c) { var e = this, b = e.now, n = !1 !== e.options.animation && !e.isHidden && (1 < Math.abs(a - b.x) || 1 < Math.abs(h - b.y)), g = e.followPointer || 1 < e.len; G(b, { x: n ? (2 * b.x + a) / 3 : a, y: n ? (b.y + h) / 2 : h, anchorX: g ? void 0 : n ? (2 * b.anchorX + d) / 3 : d, anchorY: g ? void 0 : n ? (b.anchorY + c) / 2 : c }); e.getLabel().attr(b); n && (clearTimeout(this.tooltipTimeout), this.tooltipTimeout = setTimeout(function() { e && e.move(a, h, d, c) }, 32)) }, hide: function(a) { var e = this; clearTimeout(this.hideTimer); a = q(a, this.options.hideDelay, 500); this.isHidden || (this.hideTimer = u(function() { e.getLabel()[a ? "fadeOut": "hide"](); e.isHidden = !0 }, a)) }, getAnchor: function(a, h) { var d, c = this.chart, e = c.inverted, b = c.plotTop, n = c.plotLeft, k = 0, m = 0, l, q; a = v(a); d = a[0].tooltipPos; this.followPointer && h && (void 0 === h.chartX && (h = c.pointer.normalize(h)), d = [h.chartX - c.plotLeft, h.chartY - b]); d || (A(a, function(a) { l = a.series.yAxis; q = a.series.xAxis; k += a.plotX + (!e && q ? q.left - n: 0); m += (a.plotLow ? (a.plotLow + a.plotHigh) / 2 : a.plotY) + (!e && l ? l.top - b: 0) }), k /= a.length, m /= a.length, d = [e ? c.plotWidth - m: k, this.shared && !e && 1 < a.length && h ? h.chartY - b: e ? c.plotHeight - k: m]); return g(d, Math.round) }, getPosition: function(a, h, d) { var c = this.chart, e = this.distance, b = {}, n = d.h || 0, g, k = ["y", c.chartHeight, h, d.plotY + c.plotTop, c.plotTop, c.plotTop + c.plotHeight], l = ["x", c.chartWidth, a, d.plotX + c.plotLeft, c.plotLeft, c.plotLeft + c.plotWidth], m = !this.followPointer && q(d.ttBelow, !c.inverted === !!d.negative), r = function(a, c, d, f, p, l) { var h = d < f - e, r = f + e + d < c, g = f - e - d; f += e; if (m && r) b[a] = f; else if (!m && h) b[a] = g; else if (h) b[a] = Math.min(l - d, 0 > g - n ? g: g - n); else if (r) b[a] = Math.max(p, f + n + d > c ? f: f + n); else return ! 1 }, z = function(a, c, d, f) { var p; f < e || f > c - e ? p = !1 : b[a] = f < d / 2 ? 1 : f > c - d / 2 ? c - d - 2 : f - d / 2; return p }, v = function(a) { var b = k; k = l; l = b; g = a }, p = function() { ! 1 !== r.apply(0, k) ? !1 !== z.apply(0, l) || g || (v(!0), p()) : g ? b.x = b.y = 0 : (v(!0), p()) }; (c.inverted || 1 < this.len) && v(); p(); return b }, defaultFormatter: function(a) { var e = this.points || v(this), d; d = [a.tooltipFooterHeaderFormatter(e[0])]; d = d.concat(a.bodyFormatter(e)); d.push(a.tooltipFooterHeaderFormatter(e[0], !0)); return d }, refresh: function(a, h) { var d, c = this.options, e, b = a, g, n = {}, k = []; d = c.formatter || this.defaultFormatter; var n = this.shared, l; clearTimeout(this.hideTimer); this.followPointer = v(b)[0].series.tooltipOptions.followPointer; g = this.getAnchor(b, h); h = g[0]; e = g[1]; ! n || b.series && b.series.noSharedTooltip ? n = b.getLabelConfig() : (A(b, function(a) { a.setState("hover"); k.push(a.getLabelConfig()) }), n = { x: b[0].category, y: b[0].y }, n.points = k, b = b[0]); this.len = k.length; n = d.call(n, this); l = b.series; this.distance = q(l.tooltipOptions.distance, 16); ! 1 === n ? this.hide() : (d = this.getLabel(), this.isHidden && d.attr({ opacity: 1 }).show(), this.split ? this.renderSplit(n, a) : (c.style.width || d.css({ width: this.chart.spacingBox.width }), d.attr({ text: n && n.join ? n.join("") : n }), d.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-" + q(b.colorIndex, l.colorIndex)), d.attr({ stroke: c.borderColor || b.color || l.color || "#666666" }), this.updatePosition({ plotX: h, plotY: e, negative: b.negative, ttBelow: b.ttBelow, h: g[2] || 0 })), this.isHidden = !1) }, renderSplit: function(e, h) { var d = this, c = [], g = this.chart, b = g.renderer, n = !0, k = this.options, m, l = this.getLabel(); A(e.slice(0, h.length + 1), function(a, e) { e = h[e - 1] || { isHeader: !0, plotX: h[0].plotX }; var r = e.series || d, w = r.tt, p = e.series || {}, y = "highcharts-color-" + q(e.colorIndex, p.colorIndex, "none"); w || (r.tt = w = b.label(null, null, null, "callout").addClass("highcharts-tooltip-box " + y).attr({ padding: k.padding, r: k.borderRadius, fill: k.backgroundColor, stroke: e.color || p.color || "#333333", "stroke-width": k.borderWidth }).add(l)); w.isActive = !0; w.attr({ text: a }); w.css(k.style); a = w.getBBox(); p = a.width + w.strokeWidth(); e.isHeader ? (m = a.height, p = Math.max(0, Math.min(e.plotX + g.plotLeft - p / 2, g.chartWidth - p))) : p = e.plotX + g.plotLeft - q(k.distance, 16) - p; 0 > p && (n = !1); a = (e.series && e.series.yAxis && e.series.yAxis.pos) + (e.plotY || 0); a -= g.plotTop; c.push({ target: e.isHeader ? g.plotHeight + m: a, rank: e.isHeader ? 1 : 0, size: r.tt.getBBox().height + 1, point: e, x: p, tt: w }) }); this.cleanSplit(); a.distribute(c, g.plotHeight + m); A(c, function(a) { var b = a.point, c = b.series; a.tt.attr({ visibility: void 0 === a.pos ? "hidden": "inherit", x: n || b.isHeader ? a.x: b.plotX + g.plotLeft + q(k.distance, 16), y: a.pos + g.plotTop, anchorX: b.isHeader ? b.plotX + g.plotLeft: b.plotX + c.xAxis.pos, anchorY: b.isHeader ? a.pos + g.plotTop - 15 : b.plotY + c.yAxis.pos }) }) }, updatePosition: function(a) { var e = this.chart, d = this.getLabel(), d = (this.options.positioner || this.getPosition).call(this, d.width, d.height, a); this.move(Math.round(d.x), Math.round(d.y || 0), a.plotX + e.plotLeft, a.plotY + e.plotTop) }, getDateFormat: function(a, g, d, c) { var e = C("%m-%d %H:%M:%S.%L", g), b, n, k = { millisecond: 15, second: 12, minute: 9, hour: 6, day: 3 }, m = "millisecond"; for (n in h) { if (a === h.week && +C("%w", g) === d && "00:00:00.000" === e.substr(6)) { n = "week"; break } if (h[n] > a) { n = m; break } if (k[n] && e.substr(k[n]) !== "01-01 00:00:00.000".substr(k[n])) break; "week" !== n && (m = n) } n && (b = c[n]); return b }, getXDateFormat: function(a, h, d) { h = h.dateTimeLabelFormats; var c = d && d.closestPointRange; return (c ? this.getDateFormat(c, a.x, d.options.startOfWeek, h) : h.day) || h.year }, tooltipFooterHeaderFormatter: function(a, h) { var d = h ? "footer": "header"; h = a.series; var c = h.tooltipOptions, e = c.xDateFormat, b = h.xAxis, g = b && "datetime" === b.options.type && m(a.key), d = c[d + "Format"]; g && !e && (e = this.getXDateFormat(a, c, b)); g && e && (d = d.replace("{point.key}", "{point.key:" + e + "}")); return F(d, { point: a, series: h }) }, bodyFormatter: function(a) { return g(a, function(a) { var d = a.series.tooltipOptions; return (d.pointFormatter || a.point.tooltipFormatter).call(a.point, d.pointFormat) }) } } })(K); (function(a) { var C = a.addEvent, A = a.attr, G = a.charts, F = a.color, m = a.css, g = a.defined, k = a.doc, q = a.each, v = a.extend, u = a.fireEvent, h = a.offset, e = a.pick, n = a.removeEvent, d = a.splat, c = a.Tooltip, w = a.win; a.Pointer = function(a, c) { this.init(a, c) }; a.Pointer.prototype = { init: function(a, d) { this.options = d; this.chart = a; this.runChartClick = d.chart.events && !!d.chart.events.click; this.pinchDown = []; this.lastValidTouch = {}; c && d.tooltip.enabled && (a.tooltip = new c(a, d.tooltip), this.followTouchMove = e(d.tooltip.followTouchMove, !0)); this.setDOMEvents() }, zoomOption: function(a) { var b = this.chart, c = b.options.chart, d = c.zoomType || "", b = b.inverted; /touch/.test(a.type) && (d = e(c.pinchType, d)); this.zoomX = a = /x/.test(d); this.zoomY = d = /y/.test(d); this.zoomHor = a && !b || d && b; this.zoomVert = d && !b || a && b; this.hasZoom = a || d }, normalize: function(a, c) { var b, d; a = a || w.event; a.target || (a.target = a.srcElement); d = a.touches ? a.touches.length ? a.touches.item(0) : a.changedTouches[0] : a; c || (this.chartPosition = c = h(this.chart.container)); void 0 === d.pageX ? (b = Math.max(a.x, a.clientX - c.left), c = a.y) : (b = d.pageX - c.left, c = d.pageY - c.top); return v(a, { chartX: Math.round(b), chartY: Math.round(c) }) }, getCoordinates: function(a) { var b = { xAxis: [], yAxis: [] }; q(this.chart.axes, function(c) { b[c.isXAxis ? "xAxis": "yAxis"].push({ axis: c, value: c.toValue(a[c.horiz ? "chartX": "chartY"]) }) }); return b }, getKDPoints: function(a, c, d) { var b = [], l, h, r; q(a, function(a) { l = a.noSharedTooltip && c; h = !c && a.directTouch; a.visible && !h && e(a.options.enableMouseTracking, !0) && (r = a.searchPoint(d, !l && 0 > a.options.findNearestPointBy.indexOf("y"))) && r.series && b.push(r) }); b.sort(function(a, b) { var d = a.distX - b.distX, l = a.dist - b.dist, e = (b.series.group && b.series.group.zIndex) - (a.series.group && a.series.group.zIndex); return 0 !== d && c ? d: 0 !== l ? l: 0 !== e ? e: a.series.index > b.series.index ? -1 : 1 }); if (c && b[0] && !b[0].series.noSharedTooltip) for (a = b.length; a--;)(b[a].x !== b[0].x || b[a].series.noSharedTooltip) && b.splice(a, 1); return b }, getPointFromEvent: function(a) { a = a.target; for (var b; a && !b;) b = a.point, a = a.parentNode; return b }, getChartCoordinatesFromPoint: function(a, c) { var b = a.series, d = b.xAxis, b = b.yAxis; if (d && b) return c ? { chartX: d.len + d.pos - a.clientX, chartY: b.len + b.pos - a.plotY }: { chartX: a.clientX + d.pos, chartY: a.plotY + b.pos } }, getHoverData: function(b, c, d, e, l, h) { var r = b, g = c, r = l ? d: [g]; e = !(!e || !b); c = g && !g.stickyTracking; var n = function(a, b) { return 0 === b }, p; e ? n = function(a) { return a === b }: c ? n = function(a) { return a.series === g }: r = a.grep(d, function(a) { return a.stickyTracking }); p = e && !l ? [b] : this.getKDPoints(r, l, h); g = (r = a.find(p, n)) && r.series; e || c || !l || (p = this.getKDPoints(d, l, h)); p.sort(function(a, b) { return a.series.index - b.series.index }); return { hoverPoint: r, hoverSeries: g, hoverPoints: p } }, runPointActions: function(b, c) { var d = this.chart, h = d.tooltip, l = h ? h.shared: !1, g = c || d.hoverPoint, r = g && g.series || d.hoverSeries; c = this.getHoverData(g, r, d.series, !!c || r && r.directTouch && this.isDirectTouch, l, b); var n, w, g = c.hoverPoint; n = (r = c.hoverSeries) && r.tooltipOptions.followPointer; w = (l = l && g && !g.series.noSharedTooltip) ? c.hoverPoints: g ? [g] : []; if (g && (g !== d.hoverPoint || h && h.isHidden)) { q(d.hoverPoints || [], function(b) { - 1 === a.inArray(b, w) && b.setState() }); q(w || [], function(a) { a.setState("hover") }); if (d.hoverSeries !== r) r.onMouseOver(); d.hoverPoint && d.hoverPoint.firePointEvent("mouseOut"); g.firePointEvent("mouseOver"); d.hoverPoints = w; d.hoverPoint = g; h && h.refresh(l ? w: g, b) } else n && h && !h.isHidden && (r = h.getAnchor([{}], b), h.updatePosition({ plotX: r[0], plotY: r[1] })); this.unDocMouseMove || (this.unDocMouseMove = C(k, "mousemove", function(b) { var c = G[a.hoverChartIndex]; if (c) c.pointer.onDocumentMouseMove(b) })); q(d.axes, function(c) { e(c.crosshair.snap, !0) ? a.find(w, function(a) { return a.series[c.coll] === c }) ? c.drawCrosshair(b, g) : c.hideCrosshair() : c.drawCrosshair(b) }) }, reset: function(a, c) { var b = this.chart, e = b.hoverSeries, l = b.hoverPoint, h = b.hoverPoints, g = b.tooltip, n = g && g.shared ? h: l; a && n && q(d(n), function(b) { b.series.isCartesian && void 0 === b.plotX && (a = !1) }); if (a) g && n && (g.refresh(n), l && (l.setState(l.state, !0), q(b.axes, function(a) { a.crosshair && a.drawCrosshair(null, l) }))); else { if (l) l.onMouseOut(); h && q(h, function(a) { a.setState() }); if (e) e.onMouseOut(); g && g.hide(c); this.unDocMouseMove && (this.unDocMouseMove = this.unDocMouseMove()); q(b.axes, function(a) { a.hideCrosshair() }); this.hoverX = b.hoverPoints = b.hoverPoint = null } }, scaleGroups: function(a, c) { var b = this.chart, d; q(b.series, function(e) { d = a || e.getPlotBox(); e.xAxis && e.xAxis.zoomEnabled && e.group && (e.group.attr(d), e.markerGroup && (e.markerGroup.attr(d), e.markerGroup.clip(c ? b.clipRect: null)), e.dataLabelsGroup && e.dataLabelsGroup.attr(d)) }); b.clipRect.attr(c || b.clipBox) }, dragStart: function(a) { var b = this.chart; b.mouseIsDown = a.type; b.cancelClick = !1; b.mouseDownX = this.mouseDownX = a.chartX; b.mouseDownY = this.mouseDownY = a.chartY }, drag: function(a) { var b = this.chart, c = b.options.chart, d = a.chartX, e = a.chartY, h = this.zoomHor, g = this.zoomVert, n = b.plotLeft, w = b.plotTop, p = b.plotWidth, k = b.plotHeight, m, q = this.selectionMarker, f = this.mouseDownX, t = this.mouseDownY, v = c.panKey && a[c.panKey + "Key"]; q && q.touch || (d < n ? d = n: d > n + p && (d = n + p), e < w ? e = w: e > w + k && (e = w + k), this.hasDragged = Math.sqrt(Math.pow(f - d, 2) + Math.pow(t - e, 2)), 10 < this.hasDragged && (m = b.isInsidePlot(f - n, t - w), b.hasCartesianSeries && (this.zoomX || this.zoomY) && m && !v && !q && (this.selectionMarker = q = b.renderer.rect(n, w, h ? 1 : p, g ? 1 : k, 0).attr({ fill: c.selectionMarkerFill || F("#335cad").setOpacity(.25).get(), "class": "highcharts-selection-marker", zIndex: 7 }).add()), q && h && (d -= f, q.attr({ width: Math.abs(d), x: (0 < d ? 0 : d) + f })), q && g && (d = e - t, q.attr({ height: Math.abs(d), y: (0 < d ? 0 : d) + t })), m && !q && c.panning && b.pan(a, c.panning))) }, drop: function(a) { var b = this, c = this.chart, d = this.hasPinched; if (this.selectionMarker) { var e = { originalEvent: a, xAxis: [], yAxis: [] }, h = this.selectionMarker, r = h.attr ? h.attr("x") : h.x, n = h.attr ? h.attr("y") : h.y, w = h.attr ? h.attr("width") : h.width, p = h.attr ? h.attr("height") : h.height, k; if (this.hasDragged || d) q(c.axes, function(c) { if (c.zoomEnabled && g(c.min) && (d || b[{ xAxis: "zoomX", yAxis: "zoomY" } [c.coll]])) { var l = c.horiz, f = "touchend" === a.type ? c.minPixelPadding: 0, h = c.toValue((l ? r: n) + f), l = c.toValue((l ? r + w: n + p) - f); e[c.coll].push({ axis: c, min: Math.min(h, l), max: Math.max(h, l) }); k = !0 } }), k && u(c, "selection", e, function(a) { c.zoom(v(a, d ? { animation: !1 }: null)) }); this.selectionMarker = this.selectionMarker.destroy(); d && this.scaleGroups() } c && (m(c.container, { cursor: c._cursor }), c.cancelClick = 10 < this.hasDragged, c.mouseIsDown = this.hasDragged = this.hasPinched = !1, this.pinchDown = []) }, onContainerMouseDown: function(a) { a = this.normalize(a); this.zoomOption(a); a.preventDefault && a.preventDefault(); this.dragStart(a) }, onDocumentMouseUp: function(b) { G[a.hoverChartIndex] && G[a.hoverChartIndex].pointer.drop(b) }, onDocumentMouseMove: function(a) { var b = this.chart, c = this.chartPosition; a = this.normalize(a, c); ! c || this.inClass(a.target, "highcharts-tracker") || b.isInsidePlot(a.chartX - b.plotLeft, a.chartY - b.plotTop) || this.reset() }, onContainerMouseLeave: function(b) { var c = G[a.hoverChartIndex]; c && (b.relatedTarget || b.toElement) && (c.pointer.reset(), c.pointer.chartPosition = null) }, onContainerMouseMove: function(b) { var c = this.chart; g(a.hoverChartIndex) && G[a.hoverChartIndex] && G[a.hoverChartIndex].mouseIsDown || (a.hoverChartIndex = c.index); b = this.normalize(b); b.returnValue = !1; "mousedown" === c.mouseIsDown && this.drag(b); ! this.inClass(b.target, "highcharts-tracker") && !c.isInsidePlot(b.chartX - c.plotLeft, b.chartY - c.plotTop) || c.openMenu || this.runPointActions(b) }, inClass: function(a, c) { for (var b; a;) { if (b = A(a, "class")) { if ( - 1 !== b.indexOf(c)) return ! 0; if ( - 1 !== b.indexOf("highcharts-container")) return ! 1 } a = a.parentNode } }, onTrackerMouseOut: function(a) { var b = this.chart.hoverSeries; a = a.relatedTarget || a.toElement; this.isDirectTouch = !1; if (! (!b || !a || b.stickyTracking || this.inClass(a, "highcharts-tooltip") || this.inClass(a, "highcharts-series-" + b.index) && this.inClass(a, "highcharts-tracker"))) b.onMouseOut() }, onContainerClick: function(a) { var b = this.chart, c = b.hoverPoint, d = b.plotLeft, e = b.plotTop; a = this.normalize(a); b.cancelClick || (c && this.inClass(a.target, "highcharts-tracker") ? (u(c.series, "click", v(a, { point: c })), b.hoverPoint && c.firePointEvent("click", a)) : (v(a, this.getCoordinates(a)), b.isInsidePlot(a.chartX - d, a.chartY - e) && u(b, "click", a))) }, setDOMEvents: function() { var b = this, c = b.chart.container; c.onmousedown = function(a) { b.onContainerMouseDown(a) }; c.onmousemove = function(a) { b.onContainerMouseMove(a) }; c.onclick = function(a) { b.onContainerClick(a) }; C(c, "mouseleave", b.onContainerMouseLeave); 1 === a.chartCount && C(k, "mouseup", b.onDocumentMouseUp); a.hasTouch && (c.ontouchstart = function(a) { b.onContainerTouchStart(a) }, c.ontouchmove = function(a) { b.onContainerTouchMove(a) }, 1 === a.chartCount && C(k, "touchend", b.onDocumentTouchEnd)) }, destroy: function() { var b = this; b.unDocMouseMove && b.unDocMouseMove(); n(b.chart.container, "mouseleave", b.onContainerMouseLeave); a.chartCount || (n(k, "mouseup", b.onDocumentMouseUp), n(k, "touchend", b.onDocumentTouchEnd)); clearInterval(b.tooltipTimeout); a.objectEach(b, function(a, c) { b[c] = null }) } } })(K); (function(a) { var C = a.charts, A = a.each, G = a.extend, F = a.map, m = a.noop, g = a.pick; G(a.Pointer.prototype, { pinchTranslate: function(a, g, m, u, h, e) { this.zoomHor && this.pinchTranslateDirection(!0, a, g, m, u, h, e); this.zoomVert && this.pinchTranslateDirection(!1, a, g, m, u, h, e) }, pinchTranslateDirection: function(a, g, m, u, h, e, n, d) { var c = this.chart, w = a ? "x": "y", b = a ? "X": "Y", k = "chart" + b, q = a ? "width": "height", v = c["plot" + (a ? "Left": "Top")], l, B, r = d || 1, z = c.inverted, M = c.bounds[a ? "h": "v"], p = 1 === g.length, E = g[0][k], I = m[0][k], L = !p && g[1][k], f = !p && m[1][k], t; m = function() { ! p && 20 < Math.abs(E - L) && (r = d || Math.abs(I - f) / Math.abs(E - L)); B = (v - I) / r + E; l = c["plot" + (a ? "Width": "Height")] / r }; m(); g = B; g < M.min ? (g = M.min, t = !0) : g + l > M.max && (g = M.max - l, t = !0); t ? (I -= .8 * (I - n[w][0]), p || (f -= .8 * (f - n[w][1])), m()) : n[w] = [I, f]; z || (e[w] = B - v, e[q] = l); e = z ? 1 / r: r; h[q] = l; h[w] = g; u[z ? a ? "scaleY": "scaleX": "scale" + b] = r; u["translate" + b] = e * v + (I - e * E) }, pinch: function(a) { var k = this, v = k.chart, u = k.pinchDown, h = a.touches, e = h.length, n = k.lastValidTouch, d = k.hasZoom, c = k.selectionMarker, w = {}, b = 1 === e && (k.inClass(a.target, "highcharts-tracker") && v.runTrackerClick || k.runChartClick), y = {}; 1 < e && (k.initiated = !0); d && k.initiated && !b && a.preventDefault(); F(h, function(a) { return k.normalize(a) }); "touchstart" === a.type ? (A(h, function(a, b) { u[b] = { chartX: a.chartX, chartY: a.chartY } }), n.x = [u[0].chartX, u[1] && u[1].chartX], n.y = [u[0].chartY, u[1] && u[1].chartY], A(v.axes, function(a) { if (a.zoomEnabled) { var b = v.bounds[a.horiz ? "h": "v"], c = a.minPixelPadding, d = a.toPixels(g(a.options.min, a.dataMin)), e = a.toPixels(g(a.options.max, a.dataMax)), h = Math.max(d, e); b.min = Math.min(a.pos, Math.min(d, e) - c); b.max = Math.max(a.pos + a.len, h + c) } }), k.res = !0) : k.followTouchMove && 1 === e ? this.runPointActions(k.normalize(a)) : u.length && (c || (k.selectionMarker = c = G({ destroy: m, touch: !0 }, v.plotBox)), k.pinchTranslate(u, h, w, c, y, n), k.hasPinched = d, k.scaleGroups(w, y), k.res && (k.res = !1, this.reset(!1, 0))) }, touch: function(k, m) { var q = this.chart, u, h; if (q.index !== a.hoverChartIndex) this.onContainerMouseLeave({ relatedTarget: !0 }); a.hoverChartIndex = q.index; 1 === k.touches.length ? (k = this.normalize(k), (h = q.isInsidePlot(k.chartX - q.plotLeft, k.chartY - q.plotTop)) && !q.openMenu ? (m && this.runPointActions(k), "touchmove" === k.type && (m = this.pinchDown, u = m[0] ? 4 <= Math.sqrt(Math.pow(m[0].chartX - k.chartX, 2) + Math.pow(m[0].chartY - k.chartY, 2)) : !1), g(u, !0) && this.pinch(k)) : m && this.reset()) : 2 === k.touches.length && this.pinch(k) }, onContainerTouchStart: function(a) { this.zoomOption(a); this.touch(a, !0) }, onContainerTouchMove: function(a) { this.touch(a) }, onDocumentTouchEnd: function(g) { C[a.hoverChartIndex] && C[a.hoverChartIndex].pointer.drop(g) } }) })(K); (function(a) { var C = a.addEvent, A = a.charts, G = a.css, F = a.doc, m = a.extend, g = a.noop, k = a.Pointer, q = a.removeEvent, v = a.win, u = a.wrap; if (!a.hasTouch && (v.PointerEvent || v.MSPointerEvent)) { var h = {}, e = !!v.PointerEvent, n = function() { var c = []; c.item = function(a) { return this[a] }; a.objectEach(h, function(a) { c.push({ pageX: a.pageX, pageY: a.pageY, target: a.target }) }); return c }, d = function(c, d, b, e) { "touch" !== c.pointerType && c.pointerType !== c.MSPOINTER_TYPE_TOUCH || !A[a.hoverChartIndex] || (e(c), e = A[a.hoverChartIndex].pointer, e[d]({ type: b, target: c.currentTarget, preventDefault: g, touches: n() })) }; m(k.prototype, { onContainerPointerDown: function(a) { d(a, "onContainerTouchStart", "touchstart", function(a) { h[a.pointerId] = { pageX: a.pageX, pageY: a.pageY, target: a.currentTarget } }) }, onContainerPointerMove: function(a) { d(a, "onContainerTouchMove", "touchmove", function(a) { h[a.pointerId] = { pageX: a.pageX, pageY: a.pageY }; h[a.pointerId].target || (h[a.pointerId].target = a.currentTarget) }) }, onDocumentPointerUp: function(a) { d(a, "onDocumentTouchEnd", "touchend", function(a) { delete h[a.pointerId] }) }, batchMSEvents: function(a) { a(this.chart.container, e ? "pointerdown": "MSPointerDown", this.onContainerPointerDown); a(this.chart.container, e ? "pointermove": "MSPointerMove", this.onContainerPointerMove); a(F, e ? "pointerup": "MSPointerUp", this.onDocumentPointerUp) } }); u(k.prototype, "init", function(a, d, b) { a.call(this, d, b); this.hasZoom && G(d.container, { "-ms-touch-action": "none", "touch-action": "none" }) }); u(k.prototype, "setDOMEvents", function(a) { a.apply(this); (this.hasZoom || this.followTouchMove) && this.batchMSEvents(C) }); u(k.prototype, "destroy", function(a) { this.batchMSEvents(q); a.call(this) }) } })(K); (function(a) { var C = a.addEvent, A = a.css, G = a.discardElement, F = a.defined, m = a.each, g = a.isFirefox, k = a.marginNames, q = a.merge, v = a.pick, u = a.setAnimation, h = a.stableSort, e = a.win, n = a.wrap; a.Legend = function(a, c) { this.init(a, c) }; a.Legend.prototype = { init: function(a, c) { this.chart = a; this.setOptions(c); c.enabled && (this.render(), C(this.chart, "endResize", function() { this.legend.positionCheckboxes() })) }, setOptions: function(a) { var c = v(a.padding, 8); this.options = a; this.itemStyle = a.itemStyle; this.itemHiddenStyle = q(this.itemStyle, a.itemHiddenStyle); this.itemMarginTop = a.itemMarginTop || 0; this.padding = c; this.initialItemY = c - 5; this.itemHeight = this.maxItemWidth = 0; this.symbolWidth = v(a.symbolWidth, 16); this.pages = [] }, update: function(a, c) { var d = this.chart; this.setOptions(q(!0, this.options, a)); this.destroy(); d.isDirtyLegend = d.isDirtyBox = !0; v(c, !0) && d.redraw() }, colorizeItem: function(d, c) { d.legendGroup[c ? "removeClass": "addClass"]("highcharts-legend-item-hidden"); var e = this.options, b = d.legendItem, h = d.legendLine, g = d.legendSymbol, n = this.itemHiddenStyle.color, e = c ? e.itemStyle.color: n, l = c ? d.color || n: n, k = d.options && d.options.marker, r = { fill: l }; b && b.css({ fill: e, color: e }); h && h.attr({ stroke: l }); g && (k && g.isMarker && (r = d.pointAttribs(), c || a.objectEach(r, function(a, b) { r[b] = n })), g.attr(r)) }, positionItem: function(a) { var c = this.options, d = c.symbolPadding, c = !c.rtl, b = a._legendItemPos, e = b[0], b = b[1], h = a.checkbox; (a = a.legendGroup) && a.element && a.translate(c ? e: this.legendWidth - e - 2 * d - 4, b); h && (h.x = e, h.y = b) }, destroyItem: function(a) { var c = a.checkbox; m(["legendItem", "legendLine", "legendSymbol", "legendGroup"], function(c) { a[c] && (a[c] = a[c].destroy()) }); c && G(a.checkbox) }, destroy: function() { function a(a) { this[a] && (this[a] = this[a].destroy()) } m(this.getAllItems(), function(c) { m(["legendItem", "legendGroup"], a, c) }); m("clipRect up down pager nav box title group".split(" "), a, this); this.display = null }, positionCheckboxes: function(a) { var c = this.group && this.group.alignAttr, d, b = this.clipHeight || this.legendHeight, e = this.titleHeight; c && (d = c.translateY, m(this.allItems, function(h) { var g = h.checkbox, l; g && (l = d + e + g.y + (a || 0) + 3, A(g, { left: c.translateX + h.checkboxOffset + g.x - 20 + "px", top: l + "px", display: l > d - 6 && l < d + b - 6 ? "": "none" })) })) }, renderTitle: function() { var a = this.options, c = this.padding, e = a.title, b = 0; e.text && (this.title || (this.title = this.chart.renderer.label(e.text, c - 3, c - 4, null, null, null, a.useHTML, null, "legend-title").attr({ zIndex: 1 }).css(e.style).add(this.group)), a = this.title.getBBox(), b = a.height, this.offsetWidth = a.width, this.contentGroup.attr({ translateY: b })); this.titleHeight = b }, setText: function(d) { var c = this.options; d.legendItem.attr({ text: c.labelFormat ? a.format(c.labelFormat, d) : c.labelFormatter.call(d) }) }, renderItem: function(a) { var c = this.chart, d = c.renderer, b = this.options, e = "horizontal" === b.layout, h = this.symbolWidth, g = b.symbolPadding, l = this.itemStyle, n = this.itemHiddenStyle, r = this.padding, k = e ? v(b.itemDistance, 20) : 0, m = !b.rtl, p = b.width, E = b.itemMarginBottom || 0, I = this.itemMarginTop, u = a.legendItem, f = !a.series, t = !f && a.series.drawLegendSymbol ? a.series: a, A = t.options, J = this.createCheckboxForItem && A && A.showCheckbox, A = h + g + k + (J ? 20 : 0), N = b.useHTML, C = a.options.className; u || (a.legendGroup = d.g("legend-item").addClass("highcharts-" + t.type + "-series highcharts-color-" + a.colorIndex + (C ? " " + C: "") + (f ? " highcharts-series-" + a.index: "")).attr({ zIndex: 1 }).add(this.scrollGroup), a.legendItem = u = d.text("", m ? h + g: -g, this.baseline || 0, N).css(q(a.visible ? l: n)).attr({ align: m ? "left": "right", zIndex: 2 }).add(a.legendGroup), this.baseline || (h = l.fontSize, this.fontMetrics = d.fontMetrics(h, u), this.baseline = this.fontMetrics.f + 3 + I, u.attr("y", this.baseline)), this.symbolHeight = b.symbolHeight || this.fontMetrics.f, t.drawLegendSymbol(this, a), this.setItemEvents && this.setItemEvents(a, u, N), J && this.createCheckboxForItem(a)); this.colorizeItem(a, a.visible); l.width || u.css({ width: (b.itemWidth || c.spacingBox.width) - A }); this.setText(a); d = u.getBBox(); l = a.checkboxOffset = b.itemWidth || a.legendItemWidth || d.width + A; this.itemHeight = d = Math.round(a.legendItemHeight || d.height || this.symbolHeight); e && this.itemX - r + l > (p || c.spacingBox.width - 2 * r - b.x) && (this.itemX = r, this.itemY += I + this.lastLineHeight + E, this.lastLineHeight = 0); this.maxItemWidth = Math.max(this.maxItemWidth, l); this.lastItemY = I + this.itemY + E; this.lastLineHeight = Math.max(d, this.lastLineHeight); a._legendItemPos = [this.itemX, this.itemY]; e ? this.itemX += l: (this.itemY += I + d + E, this.lastLineHeight = d); this.offsetWidth = p || Math.max((e ? this.itemX - r - k: l) + r, this.offsetWidth) }, getAllItems: function() { var a = []; m(this.chart.series, function(c) { var d = c && c.options; c && v(d.showInLegend, F(d.linkedTo) ? !1 : void 0, !0) && (a = a.concat(c.legendItems || ("point" === d.legendType ? c.data: c))) }); return a }, adjustMargins: function(a, c) { var d = this.chart, b = this.options, e = b.align.charAt(0) + b.verticalAlign.charAt(0) + b.layout.charAt(0); b.floating || m([/(lth|ct|rth)/, /(rtv|rm|rbv)/, /(rbh|cb|lbh)/, /(lbv|lm|ltv)/], function(h, g) { h.test(e) && !F(a[g]) && (d[k[g]] = Math.max(d[k[g]], d.legend[(g + 1) % 2 ? "legendHeight": "legendWidth"] + [1, -1, -1, 1][g] * b[g % 2 ? "x": "y"] + v(b.margin, 12) + c[g])) }) }, render: function() { var a = this, c = a.chart, e = c.renderer, b = a.group, g, n, k, l, B = a.box, r = a.options, z = a.padding; a.itemX = z; a.itemY = a.initialItemY; a.offsetWidth = 0; a.lastItemY = 0; b || (a.group = b = e.g("legend").attr({ zIndex: 7 }).add(), a.contentGroup = e.g().attr({ zIndex: 1 }).add(b), a.scrollGroup = e.g().add(a.contentGroup)); a.renderTitle(); g = a.getAllItems(); h(g, function(a, b) { return (a.options && a.options.legendIndex || 0) - (b.options && b.options.legendIndex || 0) }); r.reversed && g.reverse(); a.allItems = g; a.display = n = !!g.length; a.lastLineHeight = 0; m(g, function(b) { a.renderItem(b) }); k = (r.width || a.offsetWidth) + z; l = a.lastItemY + a.lastLineHeight + a.titleHeight; l = a.handleOverflow(l); l += z; B || (a.box = B = e.rect().addClass("highcharts-legend-box").attr({ r: r.borderRadius }).add(b), B.isNew = !0); B.attr({ stroke: r.borderColor, "stroke-width": r.borderWidth || 0, fill: r.backgroundColor || "none" }).shadow(r.shadow); 0 < k && 0 < l && (B[B.isNew ? "attr": "animate"](B.crisp({ x: 0, y: 0, width: k, height: l }, B.strokeWidth())), B.isNew = !1); B[n ? "show": "hide"](); a.legendWidth = k; a.legendHeight = l; m(g, function(b) { a.positionItem(b) }); n && b.align(q(r, { width: k, height: l }), !0, "spacingBox"); c.isResizing || this.positionCheckboxes() }, handleOverflow: function(a) { var c = this, d = this.chart, b = d.renderer, e = this.options, h = e.y, g = this.padding, d = d.spacingBox.height + ("top" === e.verticalAlign ? -h: h) - g, h = e.maxHeight, l, n = this.clipRect, r = e.navigation, k = v(r.animation, !0), q = r.arrowSize || 12, p = this.nav, E = this.pages, I, u = this.allItems, f = function(a) { "number" === typeof a ? n.attr({ height: a }) : n && (c.clipRect = n.destroy(), c.contentGroup.clip()); c.contentGroup.div && (c.contentGroup.div.style.clip = a ? "rect(" + g + "px,9999px," + (g + a) + "px,0)": "auto") }; "horizontal" !== e.layout || "middle" === e.verticalAlign || e.floating || (d /= 2); h && (d = Math.min(d, h)); E.length = 0; a > d && !1 !== r.enabled ? (this.clipHeight = l = Math.max(d - 20 - this.titleHeight - g, 0), this.currentPage = v(this.currentPage, 1), this.fullHeight = a, m(u, function(a, b) { var c = a._legendItemPos[1]; a = Math.round(a.legendItem.getBBox().height); var f = E.length; if (!f || c - E[f - 1] > l && (I || c) !== E[f - 1]) E.push(I || c), f++; b === u.length - 1 && c + a - E[f - 1] > l && E.push(c); c !== I && (I = c) }), n || (n = c.clipRect = b.clipRect(0, g, 9999, 0), c.contentGroup.clip(n)), f(l), p || (this.nav = p = b.g().attr({ zIndex: 1 }).add(this.group), this.up = b.symbol("triangle", 0, 0, q, q).on("click", function() { c.scroll( - 1, k) }).add(p), this.pager = b.text("", 15, 10).addClass("highcharts-legend-navigation").css(r.style).add(p), this.down = b.symbol("triangle-down", 0, 0, q, q).on("click", function() { c.scroll(1, k) }).add(p)), c.scroll(0), a = d) : p && (f(), this.nav = p.destroy(), this.scrollGroup.attr({ translateY: 1 }), this.clipHeight = 0); return a }, scroll: function(a, c) { var d = this.pages, b = d.length; a = this.currentPage + a; var e = this.clipHeight, h = this.options.navigation, g = this.pager, l = this.padding; a > b && (a = b); 0 < a && (void 0 !== c && u(c, this.chart), this.nav.attr({ translateX: l, translateY: e + this.padding + 7 + this.titleHeight, visibility: "visible" }), this.up.attr({ "class": 1 === a ? "highcharts-legend-nav-inactive": "highcharts-legend-nav-active" }), g.attr({ text: a + "/" + b }), this.down.attr({ x: 18 + this.pager.getBBox().width, "class": a === b ? "highcharts-legend-nav-inactive": "highcharts-legend-nav-active" }), this.up.attr({ fill: 1 === a ? h.inactiveColor: h.activeColor }).css({ cursor: 1 === a ? "default": "pointer" }), this.down.attr({ fill: a === b ? h.inactiveColor: h.activeColor }).css({ cursor: a === b ? "default": "pointer" }), c = -d[a - 1] + this.initialItemY, this.scrollGroup.animate({ translateY: c }), this.currentPage = a, this.positionCheckboxes(c)) } }; a.LegendSymbolMixin = { drawRectangle: function(a, c) { var d = a.symbolHeight, b = a.options.squareSymbol; c.legendSymbol = this.chart.renderer.rect(b ? (a.symbolWidth - d) / 2 : 0, a.baseline - d + 1, b ? d: a.symbolWidth, d, v(a.options.symbolRadius, d / 2)).addClass("highcharts-point").attr({ zIndex: 3 }).add(c.legendGroup) }, drawLineMarker: function(a) { var c = this.options, d = c.marker, b = a.symbolWidth, e = a.symbolHeight, h = e / 2, g = this.chart.renderer, l = this.legendGroup; a = a.baseline - Math.round(.3 * a.fontMetrics.b); var n; n = { "stroke-width": c.lineWidth || 0 }; c.dashStyle && (n.dashstyle = c.dashStyle); this.legendLine = g.path(["M", 0, a, "L", b, a]).addClass("highcharts-graph").attr(n).add(l); d && !1 !== d.enabled && (c = Math.min(v(d.radius, h), h), 0 === this.symbol.indexOf("url") && (d = q(d, { width: e, height: e }), c = 0), this.legendSymbol = d = g.symbol(this.symbol, b / 2 - c, a - c, 2 * c, 2 * c, d).addClass("highcharts-point").add(l), d.isMarker = !0) } }; (/Trident\/7\.0/.test(e.navigator.userAgent) || g) && n(a.Legend.prototype, "positionItem", function(a, c) { var d = this, b = function() { c._legendItemPos && a.call(d, c) }; b(); setTimeout(b) }) })(K); (function(a) { var C = a.addEvent, A = a.animate, G = a.animObject, F = a.attr, m = a.doc, g = a.Axis, k = a.createElement, q = a.defaultOptions, v = a.discardElement, u = a.charts, h = a.css, e = a.defined, n = a.each, d = a.extend, c = a.find, w = a.fireEvent, b = a.getStyle, y = a.grep, D = a.isNumber, H = a.isObject, l = a.isString, B = a.Legend, r = a.marginNames, z = a.merge, M = a.objectEach, p = a.Pointer, E = a.pick, I = a.pInt, L = a.removeEvent, f = a.seriesTypes, t = a.splat, R = a.svg, J = a.syncTimeout, N = a.win, O = a.Renderer, P = a.Chart = function() { this.getArgs.apply(this, arguments) }; a.chart = function(a, b, c) { return new P(a, b, c) }; d(P.prototype, { callbacks: [], getArgs: function() { var a = [].slice.call(arguments); if (l(a[0]) || a[0].nodeName) this.renderTo = a.shift(); this.init(a[0], a[1]) }, init: function(b, c) { var f, d, e = b.series, p = b.plotOptions || {}; b.series = null; f = z(q, b); for (d in f.plotOptions) f.plotOptions[d].tooltip = p[d] && z(p[d].tooltip) || void 0; f.tooltip.userOptions = b.chart && b.chart.forExport && b.tooltip.userOptions || b.tooltip; f.series = b.series = e; this.userOptions = b; b = f.chart; d = b.events; this.margin = []; this.spacing = []; this.bounds = { h: {}, v: {} }; this.callback = c; this.isResizing = 0; this.options = f; this.axes = []; this.series = []; this.hasCartesianSeries = b.showAxes; var h = this; h.index = u.length; u.push(h); a.chartCount++; d && M(d, function(a, b) { C(h, b, a) }); h.xAxis = []; h.yAxis = []; h.pointCount = h.colorCounter = h.symbolCounter = 0; h.firstRender() }, initSeries: function(b) { var c = this.options.chart; (c = f[b.type || c.type || c.defaultSeriesType]) || a.error(17, !0); c = new c; c.init(this, b); return c }, orderSeries: function(a) { var b = this.series; for (a = a || 0; a < b.length; a++) b[a] && (b[a].index = a, b[a].name = b[a].name || "Series " + (b[a].index + 1)) }, isInsidePlot: function(a, b, c) { var f = c ? b: a; a = c ? a: b; return 0 <= f && f <= this.plotWidth && 0 <= a && a <= this.plotHeight }, redraw: function(b) { var c = this.axes, f = this.series, e = this.pointer, p = this.legend, h = this.isDirtyLegend, l, g, r = this.hasCartesianSeries, t = this.isDirtyBox, x, k = this.renderer, m = k.isHidden(), E = []; this.setResponsive && this.setResponsive(!1); a.setAnimation(b, this); m && this.temporaryDisplay(); this.layOutTitles(); for (b = f.length; b--;) if (x = f[b], x.options.stacking && (l = !0, x.isDirty)) { g = !0; break } if (g) for (b = f.length; b--;) x = f[b], x.options.stacking && (x.isDirty = !0); n(f, function(a) { a.isDirty && "point" === a.options.legendType && (a.updateTotals && a.updateTotals(), h = !0); a.isDirtyData && w(a, "updatedData") }); h && p.options.enabled && (p.render(), this.isDirtyLegend = !1); l && this.getStacks(); r && n(c, function(a) { a.updateNames(); a.setScale() }); this.getMargins(); r && (n(c, function(a) { a.isDirty && (t = !0) }), n(c, function(a) { var b = a.min + "," + a.max; a.extKey !== b && (a.extKey = b, E.push(function() { w(a, "afterSetExtremes", d(a.eventArgs, a.getExtremes())); delete a.eventArgs })); (t || l) && a.redraw() })); t && this.drawChartBox(); w(this, "predraw"); n(f, function(a) { (t || a.isDirty) && a.visible && a.redraw(); a.isDirtyData = !1 }); e && e.reset(!0); k.draw(); w(this, "redraw"); w(this, "render"); m && this.temporaryDisplay(!0); n(E, function(a) { a.call() }) }, get: function(a) { function b(b) { return b.id === a || b.options && b.options.id === a } var f, d = this.series, e; f = c(this.axes, b) || c(this.series, b); for (e = 0; ! f && e < d.length; e++) f = c(d[e].points || [], b); return f }, getAxes: function() { var a = this, b = this.options, c = b.xAxis = t(b.xAxis || {}), b = b.yAxis = t(b.yAxis || {}); n(c, function(a, b) { a.index = b; a.isX = !0 }); n(b, function(a, b) { a.index = b }); c = c.concat(b); n(c, function(b) { new g(a, b) }) }, getSelectedPoints: function() { var a = []; n(this.series, function(b) { a = a.concat(y(b.data || [], function(a) { return a.selected })) }); return a }, getSelectedSeries: function() { return y(this.series, function(a) { return a.selected }) }, setTitle: function(a, b, c) { var f = this, d = f.options, e; e = d.title = z({ style: { color: "#333333", fontSize: d.isStock ? "16px": "18px" } }, d.title, a); d = d.subtitle = z({ style: { color: "#666666" } }, d.subtitle, b); n([["title", a, e], ["subtitle", b, d]], function(a, b) { var c = a[0], d = f[c], e = a[1]; a = a[2]; d && e && (f[c] = d = d.destroy()); a && a.text && !d && (f[c] = f.renderer.text(a.text, 0, 0, a.useHTML).attr({ align: a.align, "class": "highcharts-" + c, zIndex: a.zIndex || 4 }).add(), f[c].update = function(a) { f.setTitle(!b && a, b && a) }, f[c].css(a.style)) }); f.layOutTitles(c) }, layOutTitles: function(a) { var b = 0, c, f = this.renderer, e = this.spacingBox; n(["title", "subtitle"], function(a) { var c = this[a], p = this.options[a]; a = "title" === a ? -3 : p.verticalAlign ? 0 : b + 2; var h; c && (h = p.style.fontSize, h = f.fontMetrics(h, c).b, c.css({ width: (p.width || e.width + p.widthAdjust) + "px" }).align(d({ y: a + h }, p), !1, "spacingBox"), p.floating || p.verticalAlign || (b = Math.ceil(b + c.getBBox(p.useHTML).height))) }, this); c = this.titleOffset !== b; this.titleOffset = b; ! this.isDirtyBox && c && (this.isDirtyBox = c, this.hasRendered && E(a, !0) && this.isDirtyBox && this.redraw()) }, getChartSize: function() { var c = this.options.chart, f = c.width, c = c.height, d = this.renderTo; e(f) || (this.containerWidth = b(d, "width")); e(c) || (this.containerHeight = b(d, "height")); this.chartWidth = Math.max(0, f || this.containerWidth || 600); this.chartHeight = Math.max(0, a.relativeLength(c, this.chartWidth) || this.containerHeight || 400) }, temporaryDisplay: function(c) { var f = this.renderTo; if (c) for (; f && f.style;) f.hcOrigStyle && (a.css(f, f.hcOrigStyle), delete f.hcOrigStyle), f = f.parentNode; else for (; f && f.style;)"none" === b(f, "display", !1) && (f.hcOrigStyle = { display: f.style.display, height: f.style.height, overflow: f.style.overflow }, c = { display: "block", overflow: "hidden" }, f !== this.renderTo && (c.height = 0), a.css(f, c), f.style.setProperty && f.style.setProperty("display", "block", "important")), f = f.parentNode }, setClassName: function(a) { this.container.className = "highcharts-container " + (a || "") }, getContainer: function() { var b, c = this.options, f = c.chart, e, p; b = this.renderTo; var h = a.uniqueKey(), g; b || (this.renderTo = b = f.renderTo); l(b) && (this.renderTo = b = m.getElementById(b)); b || a.error(13, !0); e = I(F(b, "data-highcharts-chart")); D(e) && u[e] && u[e].hasRendered && u[e].destroy(); F(b, "data-highcharts-chart", this.index); b.innerHTML = ""; f.skipClone || b.offsetWidth || this.temporaryDisplay(); this.getChartSize(); e = this.chartWidth; p = this.chartHeight; g = d({ position: "relative", overflow: "hidden", width: e + "px", height: p + "px", textAlign: "left", lineHeight: "normal", zIndex: 0, "-webkit-tap-highlight-color": "rgba(0,0,0,0)" }, f.style); this.container = b = k("div", { id: h }, g, b); this._cursor = b.style.cursor; this.renderer = new(a[f.renderer] || O)(b, e, p, null, f.forExport, c.exporting && c.exporting.allowHTML); this.setClassName(f.className); this.renderer.setStyle(f.style); this.renderer.chartIndex = this.index }, getMargins: function(a) { var b = this.spacing, c = this.margin, f = this.titleOffset; this.resetMargins(); f && !e(c[0]) && (this.plotTop = Math.max(this.plotTop, f + this.options.title.margin + b[0])); this.legend.display && this.legend.adjustMargins(c, b); this.extraMargin && (this[this.extraMargin.type] = (this[this.extraMargin.type] || 0) + this.extraMargin.value); this.extraTopMargin && (this.plotTop += this.extraTopMargin); a || this.getAxisMargins() }, getAxisMargins: function() { var a = this, b = a.axisOffset = [0, 0, 0, 0], c = a.margin; a.hasCartesianSeries && n(a.axes, function(a) { a.visible && a.getOffset() }); n(r, function(f, d) { e(c[d]) || (a[f] += b[d]) }); a.setChartSize() }, reflow: function(a) { var c = this, f = c.options.chart, d = c.renderTo, p = e(f.width), h = f.width || b(d, "width"), f = f.height || b(d, "height"), d = a ? a.target: N; if (!p && !c.isPrinting && h && f && (d === N || d === m)) { if (h !== c.containerWidth || f !== c.containerHeight) clearTimeout(c.reflowTimeout), c.reflowTimeout = J(function() { c.container && c.setSize(void 0, void 0, !1) }, a ? 100 : 0); c.containerWidth = h; c.containerHeight = f } }, initReflow: function() { var a = this, b; b = C(N, "resize", function(b) { a.reflow(b) }); C(a, "destroy", b) }, setSize: function(b, c, f) { var d = this, e = d.renderer; d.isResizing += 1; a.setAnimation(f, d); d.oldChartHeight = d.chartHeight; d.oldChartWidth = d.chartWidth; void 0 !== b && (d.options.chart.width = b); void 0 !== c && (d.options.chart.height = c); d.getChartSize(); b = e.globalAnimation; (b ? A: h)(d.container, { width: d.chartWidth + "px", height: d.chartHeight + "px" }, b); d.setChartSize(!0); e.setSize(d.chartWidth, d.chartHeight, f); n(d.axes, function(a) { a.isDirty = !0; a.setScale() }); d.isDirtyLegend = !0; d.isDirtyBox = !0; d.layOutTitles(); d.getMargins(); d.redraw(f); d.oldChartHeight = null; w(d, "resize"); J(function() { d && w(d, "endResize", null, function() {--d.isResizing }) }, G(b).duration) }, setChartSize: function(a) { function b(a) { a = l[a] || 0; return Math.max(m || a, a) / 2 } var c = this.inverted, f = this.renderer, d = this.chartWidth, e = this.chartHeight, p = this.options.chart, h = this.spacing, l = this.clipOffset, g, r, t, k, m; this.plotLeft = g = Math.round(this.plotLeft); this.plotTop = r = Math.round(this.plotTop); this.plotWidth = t = Math.max(0, Math.round(d - g - this.marginRight)); this.plotHeight = k = Math.max(0, Math.round(e - r - this.marginBottom)); this.plotSizeX = c ? k: t; this.plotSizeY = c ? t: k; this.plotBorderWidth = p.plotBorderWidth || 0; this.spacingBox = f.spacingBox = { x: h[3], y: h[0], width: d - h[3] - h[1], height: e - h[0] - h[2] }; this.plotBox = f.plotBox = { x: g, y: r, width: t, height: k }; m = 2 * Math.floor(this.plotBorderWidth / 2); c = Math.ceil(b(3)); f = Math.ceil(b(0)); this.clipBox = { x: c, y: f, width: Math.floor(this.plotSizeX - b(1) - c), height: Math.max(0, Math.floor(this.plotSizeY - b(2) - f)) }; a || n(this.axes, function(a) { a.setAxisSize(); a.setAxisTranslation() }) }, resetMargins: function() { var a = this, b = a.options.chart; n(["margin", "spacing"], function(c) { var f = b[c], d = H(f) ? f: [f, f, f, f]; n(["Top", "Right", "Bottom", "Left"], function(f, e) { a[c][e] = E(b[c + f], d[e]) }) }); n(r, function(b, c) { a[b] = E(a.margin[c], a.spacing[c]) }); a.axisOffset = [0, 0, 0, 0]; a.clipOffset = [] }, drawChartBox: function() { var a = this.options.chart, b = this.renderer, c = this.chartWidth, f = this.chartHeight, d = this.chartBackground, e = this.plotBackground, p = this.plotBorder, h, l = this.plotBGImage, g = a.backgroundColor, n = a.plotBackgroundColor, r = a.plotBackgroundImage, t, k = this.plotLeft, m = this.plotTop, E = this.plotWidth, w = this.plotHeight, q = this.plotBox, I = this.clipRect, z = this.clipBox, y = "animate"; d || (this.chartBackground = d = b.rect().addClass("highcharts-background").add(), y = "attr"); h = a.borderWidth || 0; t = h + (a.shadow ? 8 : 0); g = { fill: g || "none" }; if (h || d["stroke-width"]) g.stroke = a.borderColor, g["stroke-width"] = h; d.attr(g).shadow(a.shadow); d[y]({ x: t / 2, y: t / 2, width: c - t - h % 2, height: f - t - h % 2, r: a.borderRadius }); y = "animate"; e || (y = "attr", this.plotBackground = e = b.rect().addClass("highcharts-plot-background").add()); e[y](q); e.attr({ fill: n || "none" }).shadow(a.plotShadow); r && (l ? l.animate(q) : this.plotBGImage = b.image(r, k, m, E, w).add()); I ? I.animate({ width: z.width, height: z.height }) : this.clipRect = b.clipRect(z); y = "animate"; p || (y = "attr", this.plotBorder = p = b.rect().addClass("highcharts-plot-border").attr({ zIndex: 1 }).add()); p.attr({ stroke: a.plotBorderColor, "stroke-width": a.plotBorderWidth || 0, fill: "none" }); p[y](p.crisp({ x: k, y: m, width: E, height: w }, -p.strokeWidth())); this.isDirtyBox = !1 }, propFromSeries: function() { var a = this, b = a.options.chart, c, d = a.options.series, e, p; n(["inverted", "angular", "polar"], function(h) { c = f[b.type || b.defaultSeriesType]; p = b[h] || c && c.prototype[h]; for (e = d && d.length; ! p && e--;)(c = f[d[e].type]) && c.prototype[h] && (p = !0); a[h] = p }) }, linkSeries: function() { var a = this, b = a.series; n(b, function(a) { a.linkedSeries.length = 0 }); n(b, function(b) { var c = b.options.linkedTo; l(c) && (c = ":previous" === c ? a.series[b.index - 1] : a.get(c)) && c.linkedParent !== b && (c.linkedSeries.push(b), b.linkedParent = c, b.visible = E(b.options.visible, c.options.visible, b.visible)) }) }, renderSeries: function() { n(this.series, function(a) { a.translate(); a.render() }) }, renderLabels: function() { var a = this, b = a.options.labels; b.items && n(b.items, function(c) { var f = d(b.style, c.style), e = I(f.left) + a.plotLeft, p = I(f.top) + a.plotTop + 12; delete f.left; delete f.top; a.renderer.text(c.html, e, p).attr({ zIndex: 2 }).css(f).add() }) }, render: function() { var a = this.axes, b = this.renderer, c = this.options, f, d, e; this.setTitle(); this.legend = new B(this, c.legend); this.getStacks && this.getStacks(); this.getMargins(!0); this.setChartSize(); c = this.plotWidth; f = this.plotHeight -= 21; n(a, function(a) { a.setScale() }); this.getAxisMargins(); d = 1.1 < c / this.plotWidth; e = 1.05 < f / this.plotHeight; if (d || e) n(a, function(a) { (a.horiz && d || !a.horiz && e) && a.setTickInterval(!0) }), this.getMargins(); this.drawChartBox(); this.hasCartesianSeries && n(a, function(a) { a.visible && a.render() }); this.seriesGroup || (this.seriesGroup = b.g("series-group").attr({ zIndex: 3 }).add()); this.renderSeries(); this.renderLabels(); this.addCredits(); this.setResponsive && this.setResponsive(); this.hasRendered = !0 }, addCredits: function(a) { var b = this; a = z(!0, this.options.credits, a); a.enabled && !this.credits && (this.credits = this.renderer.text(a.text + (this.mapCredits || ""), 0, 0).addClass("highcharts-credits").on("click", function() { a.href && (N.location.href = a.href) }).attr({ align: a.position.align, zIndex: 8 }).css(a.style).add().align(a.position), this.credits.update = function(a) { b.credits = b.credits.destroy(); b.addCredits(a) }) }, destroy: function() { var b = this, c = b.axes, f = b.series, d = b.container, e, p = d && d.parentNode; w(b, "destroy"); b.renderer.forExport ? a.erase(u, b) : u[b.index] = void 0; a.chartCount--; b.renderTo.removeAttribute("data-highcharts-chart"); L(b); for (e = c.length; e--;) c[e] = c[e].destroy(); this.scroller && this.scroller.destroy && this.scroller.destroy(); for (e = f.length; e--;) f[e] = f[e].destroy(); n("title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" "), function(a) { var c = b[a]; c && c.destroy && (b[a] = c.destroy()) }); d && (d.innerHTML = "", L(d), p && v(d)); M(b, function(a, c) { delete b[c] }) }, isReadyToRender: function() { var a = this; return R || N != N.top || "complete" === m.readyState ? !0 : (m.attachEvent("onreadystatechange", function() { m.detachEvent("onreadystatechange", a.firstRender); "complete" === m.readyState && a.firstRender() }), !1) }, firstRender: function() { var a = this, b = a.options; if (a.isReadyToRender()) { a.getContainer(); w(a, "init"); a.resetMargins(); a.setChartSize(); a.propFromSeries(); a.getAxes(); n(b.series || [], function(b) { a.initSeries(b) }); a.linkSeries(); w(a, "beforeRender"); p && (a.pointer = new p(a, b)); a.render(); if (!a.renderer.imgCount && a.onload) a.onload(); a.temporaryDisplay(!0) } }, onload: function() { n([this.callback].concat(this.callbacks), function(a) { a && void 0 !== this.index && a.apply(this, [this]) }, this); w(this, "load"); w(this, "render"); e(this.index) && !1 !== this.options.chart.reflow && this.initReflow(); this.onload = null } }) })(K); (function(a) { var C, A = a.each, G = a.extend, F = a.erase, m = a.fireEvent, g = a.format, k = a.isArray, q = a.isNumber, v = a.pick, u = a.removeEvent; a.Point = C = function() {}; a.Point.prototype = { init: function(a, e, g) { this.series = a; this.color = a.color; this.applyOptions(e, g); a.options.colorByPoint ? (e = a.options.colors || a.chart.options.colors, this.color = this.color || e[a.colorCounter], e = e.length, g = a.colorCounter, a.colorCounter++, a.colorCounter === e && (a.colorCounter = 0)) : g = a.colorIndex; this.colorIndex = v(this.colorIndex, g); a.chart.pointCount++; return this }, applyOptions: function(a, e) { var h = this.series, d = h.options.pointValKey || h.pointValKey; a = C.prototype.optionsToObject.call(this, a); G(this, a); this.options = this.options ? G(this.options, a) : a; a.group && delete this.group; d && (this.y = this[d]); this.isNull = v(this.isValid && !this.isValid(), null === this.x || !q(this.y, !0)); this.selected && (this.state = "select"); "name" in this && void 0 === e && h.xAxis && h.xAxis.hasNames && (this.x = h.xAxis.nameToX(this)); void 0 === this.x && h && (this.x = void 0 === e ? h.autoIncrement(this) : e); return this }, optionsToObject: function(a) { var e = {}, h = this.series, d = h.options.keys, c = d || h.pointArrayMap || ["y"], g = c.length, b = 0, m = 0; if (q(a) || null === a) e[c[0]] = a; else if (k(a)) for (!d && a.length > g && (h = typeof a[0], "string" === h ? e.name = a[0] : "number" === h && (e.x = a[0]), b++); m < g;) d && void 0 === a[b] || (e[c[m]] = a[b]), b++, m++; else "object" === typeof a && (e = a, a.dataLabels && (h._hasPointLabels = !0), a.marker && (h._hasPointMarkers = !0)); return e }, getClassName: function() { return "highcharts-point" + (this.selected ? " highcharts-point-select": "") + (this.negative ? " highcharts-negative": "") + (this.isNull ? " highcharts-null-point": "") + (void 0 !== this.colorIndex ? " highcharts-color-" + this.colorIndex: "") + (this.options.className ? " " + this.options.className: "") + (this.zone && this.zone.className ? " " + this.zone.className.replace("highcharts-negative", "") : "") }, getZone: function() { var a = this.series, e = a.zones, a = a.zoneAxis || "y", g = 0, d; for (d = e[g]; this[a] >= d.value;) d = e[++g]; d && d.color && !this.options.color && (this.color = d.color); return d }, destroy: function() { var a = this.series.chart, e = a.hoverPoints, g; a.pointCount--; e && (this.setState(), F(e, this), e.length || (a.hoverPoints = null)); if (this === a.hoverPoint) this.onMouseOut(); if (this.graphic || this.dataLabel) u(this), this.destroyElements(); this.legendItem && a.legend.destroyItem(this); for (g in this) this[g] = null }, destroyElements: function() { for (var a = ["graphic", "dataLabel", "dataLabelUpper", "connector", "shadowGroup"], e, g = 6; g--;) e = a[g], this[e] && (this[e] = this[e].destroy()) }, getLabelConfig: function() { return { x: this.category, y: this.y, color: this.color, colorIndex: this.colorIndex, key: this.name || this.category, series: this.series, point: this, percentage: this.percentage, total: this.total || this.stackTotal } }, tooltipFormatter: function(a) { var e = this.series, h = e.tooltipOptions, d = v(h.valueDecimals, ""), c = h.valuePrefix || "", k = h.valueSuffix || ""; A(e.pointArrayMap || ["y"], function(b) { b = "{point." + b; if (c || k) a = a.replace(b + "}", c + b + "}" + k); a = a.replace(b + "}", b + ":,." + d + "f}") }); return g(a, { point: this, series: this.series }) }, firePointEvent: function(a, e, g) { var d = this, c = this.series.options; (c.point.events[a] || d.options && d.options.events && d.options.events[a]) && this.importEvents(); "click" === a && c.allowPointSelect && (g = function(a) { d.select && d.select(null, a.ctrlKey || a.metaKey || a.shiftKey) }); m(this, a, e, g) }, visible: !0 } })(K); (function(a) { var C = a.addEvent, A = a.animObject, G = a.arrayMax, F = a.arrayMin, m = a.correctFloat, g = a.Date, k = a.defaultOptions, q = a.defaultPlotOptions, v = a.defined, u = a.each, h = a.erase, e = a.extend, n = a.fireEvent, d = a.grep, c = a.isArray, w = a.isNumber, b = a.isString, y = a.merge, D = a.objectEach, H = a.pick, l = a.removeEvent, B = a.splat, r = a.SVGElement, z = a.syncTimeout, M = a.win; a.Series = a.seriesType("line", null, { lineWidth: 2, allowPointSelect: !1, showCheckbox: !1, animation: { duration: 1E3 }, events: {}, marker: { lineWidth: 0, lineColor: "#ffffff", radius: 4, states: { hover: { animation: { duration: 50 }, enabled: !0, radiusPlus: 2, lineWidthPlus: 1 }, select: { fillColor: "#cccccc", lineColor: "#000000", lineWidth: 2 } } }, point: { events: {} }, dataLabels: { align: "center", formatter: function() { return null === this.y ? "": a.numberFormat(this.y, -1) }, style: { fontSize: "11px", fontWeight: "bold", color: "contrast", textOutline: "1px contrast" }, verticalAlign: "bottom", x: 0, y: 0, padding: 5 }, cropThreshold: 300, pointRange: 0, softThreshold: !0, states: { hover: { animation: { duration: 50 }, lineWidthPlus: 1, marker: {}, halo: { size: 10, opacity: .25 } }, select: { marker: {} } }, stickyTracking: !0, turboThreshold: 1E3, findNearestPointBy: "x" }, { isCartesian: !0, pointClass: a.Point, sorted: !0, requireSorting: !0, directTouch: !1, axisTypes: ["xAxis", "yAxis"], colorCounter: 0, parallelArrays: ["x", "y"], coll: "series", init: function(a, b) { var c = this, d, f = a.series, p; c.chart = a; c.options = b = c.setOptions(b); c.linkedSeries = []; c.bindAxes(); e(c, { name: b.name, state: "", visible: !1 !== b.visible, selected: !0 === b.selected }); d = b.events; D(d, function(a, b) { C(c, b, a) }); if (d && d.click || b.point && b.point.events && b.point.events.click || b.allowPointSelect) a.runTrackerClick = !0; c.getColor(); c.getSymbol(); u(c.parallelArrays, function(a) { c[a + "Data"] = [] }); c.setData(b.data, !1); c.isCartesian && (a.hasCartesianSeries = !0); f.length && (p = f[f.length - 1]); c._i = H(p && p._i, -1) + 1; a.orderSeries(this.insert(f)) }, insert: function(a) { var b = this.options.index, c; if (w(b)) { for (c = a.length; c--;) if (b >= H(a[c].options.index, a[c]._i)) { a.splice(c + 1, 0, this); break } - 1 === c && a.unshift(this); c += 1 } else a.push(this); return H(c, a.length - 1) }, bindAxes: function() { var b = this, c = b.options, d = b.chart, e; u(b.axisTypes || [], function(f) { u(d[f], function(a) { e = a.options; if (c[f] === e.index || void 0 !== c[f] && c[f] === e.id || void 0 === c[f] && 0 === e.index) b.insert(a.series), b[f] = a, a.isDirty = !0 }); b[f] || b.optionalAxis === f || a.error(18, !0) }) }, updateParallelArrays: function(a, b) { var c = a.series, d = arguments, f = w(b) ? function(f) { var d = "y" === f && c.toYData ? c.toYData(a) : a[f]; c[f + "Data"][b] = d }: function(a) { Array.prototype[b].apply(c[a + "Data"], Array.prototype.slice.call(d, 2)) }; u(c.parallelArrays, f) }, autoIncrement: function() { var a = this.options, b = this.xIncrement, c, d = a.pointIntervalUnit, b = H(b, a.pointStart, 0); this.pointInterval = c = H(this.pointInterval, a.pointInterval, 1); d && (a = new g(b), "day" === d ? a = +a[g.hcSetDate](a[g.hcGetDate]() + c) : "month" === d ? a = +a[g.hcSetMonth](a[g.hcGetMonth]() + c) : "year" === d && (a = +a[g.hcSetFullYear](a[g.hcGetFullYear]() + c)), c = a - b); this.xIncrement = b + c; return b }, setOptions: function(a) { var b = this.chart, c = b.options, d = c.plotOptions, f = (b.userOptions || {}).plotOptions || {}, e = d[this.type]; this.userOptions = a; b = y(e, d.series, a); this.tooltipOptions = y(k.tooltip, k.plotOptions.series && k.plotOptions.series.tooltip, k.plotOptions[this.type].tooltip, c.tooltip.userOptions, d.series && d.series.tooltip, d[this.type].tooltip, a.tooltip); this.stickyTracking = H(a.stickyTracking, f[this.type] && f[this.type].stickyTracking, f.series && f.series.stickyTracking, this.tooltipOptions.shared && !this.noSharedTooltip ? !0 : b.stickyTracking); null === e.marker && delete b.marker; this.zoneAxis = b.zoneAxis; a = this.zones = (b.zones || []).slice(); ! b.negativeColor && !b.negativeFillColor || b.zones || a.push({ value: b[this.zoneAxis + "Threshold"] || b.threshold || 0, className: "highcharts-negative", color: b.negativeColor, fillColor: b.negativeFillColor }); a.length && v(a[a.length - 1].value) && a.push({ color: this.color, fillColor: this.fillColor }); return b }, getCyclic: function(a, b, c) { var d, f = this.chart, e = this.userOptions, p = a + "Index", h = a + "Counter", l = c ? c.length: H(f.options.chart[a + "Count"], f[a + "Count"]); b || (d = H(e[p], e["_" + p]), v(d) || (f.series.length || (f[h] = 0), e["_" + p] = d = f[h] % l, f[h] += 1), c && (b = c[d])); void 0 !== d && (this[p] = d); this[a] = b }, getColor: function() { this.options.colorByPoint ? this.options.color = null: this.getCyclic("color", this.options.color || q[this.type].color, this.chart.options.colors) }, getSymbol: function() { this.getCyclic("symbol", this.options.marker.symbol, this.chart.options.symbols) }, drawLegendSymbol: a.LegendSymbolMixin.drawLineMarker, setData: function(d, e, h, l) { var f = this, p = f.points, g = p && p.length || 0, r, n = f.options, k = f.chart, m = null, q = f.xAxis, E = n.turboThreshold, z = this.xData, y = this.yData, I = (r = f.pointArrayMap) && r.length; d = d || []; r = d.length; e = H(e, !0); if (!1 !== l && r && g === r && !f.cropped && !f.hasGroupedData && f.visible) u(d, function(a, b) { p[b].update && a !== n.data[b] && p[b].update(a, !1, null, !1) }); else { f.xIncrement = null; f.colorCounter = 0; u(this.parallelArrays, function(a) { f[a + "Data"].length = 0 }); if (E && r > E) { for (h = 0; null === m && h < r;) m = d[h], h++; if (w(m)) for (h = 0; h < r; h++) z[h] = this.autoIncrement(), y[h] = d[h]; else if (c(m)) if (I) for (h = 0; h < r; h++) m = d[h], z[h] = m[0], y[h] = m.slice(1, I + 1); else for (h = 0; h < r; h++) m = d[h], z[h] = m[0], y[h] = m[1]; else a.error(12) } else for (h = 0; h < r; h++) void 0 !== d[h] && (m = { series: f }, f.pointClass.prototype.applyOptions.apply(m, [d[h]]), f.updateParallelArrays(m, h)); b(y[0]) && a.error(14, !0); f.data = []; f.options.data = f.userOptions.data = d; for (h = g; h--;) p[h] && p[h].destroy && p[h].destroy(); q && (q.minRange = q.userMinRange); f.isDirty = k.isDirtyBox = !0; f.isDirtyData = !!p; h = !1 } "point" === n.legendType && (this.processData(), this.generatePoints()); e && k.redraw(h) }, processData: function(b) { var c = this.xData, d = this.yData, e = c.length, f; f = 0; var h, p, l = this.xAxis, g, r = this.options; g = r.cropThreshold; var n = this.getExtremesFromAll || r.getExtremesFromAll, k = this.isCartesian, r = l && l.val2lin, m = l && l.isLog, q, w; if (k && !this.isDirty && !l.isDirty && !this.yAxis.isDirty && !b) return ! 1; l && (b = l.getExtremes(), q = b.min, w = b.max); if (k && this.sorted && !n && (!g || e > g || this.forceCrop)) if (c[e - 1] < q || c[0] > w) c = [], d = []; else if (c[0] < q || c[e - 1] > w) f = this.cropData(this.xData, this.yData, q, w), c = f.xData, d = f.yData, f = f.start, h = !0; for (g = c.length || 1; --g;) e = m ? r(c[g]) - r(c[g - 1]) : c[g] - c[g - 1], 0 < e && (void 0 === p || e < p) ? p = e: 0 > e && this.requireSorting && a.error(15); this.cropped = h; this.cropStart = f; this.processedXData = c; this.processedYData = d; this.closestPointRange = p }, cropData: function(a, b, c, d) { var f = a.length, e = 0, h = f, p = H(this.cropShoulder, 1), l; for (l = 0; l < f; l++) if (a[l] >= c) { e = Math.max(0, l - p); break } for (c = l; c < f; c++) if (a[c] > d) { h = c + p; break } return { xData: a.slice(e, h), yData: b.slice(e, h), start: e, end: h } }, generatePoints: function() { var a = this.options, b = a.data, c = this.data, d, f = this.processedXData, e = this.processedYData, h = this.pointClass, l = f.length, g = this.cropStart || 0, r, n = this.hasGroupedData, a = a.keys, k, m = [], q; c || n || (c = [], c.length = b.length, c = this.data = c); a && n && (this.options.keys = !1); for (q = 0; q < l; q++) r = g + q, n ? (k = (new h).init(this, [f[q]].concat(B(e[q]))), k.dataGroup = this.groupMap[q]) : (k = c[r]) || void 0 === b[r] || (c[r] = k = (new h).init(this, b[r], f[q])), k && (k.index = r, m[q] = k); this.options.keys = a; if (c && (l !== (d = c.length) || n)) for (q = 0; q < d; q++) q !== g || n || (q += l), c[q] && (c[q].destroyElements(), c[q].plotX = void 0); this.data = c; this.points = m }, getExtremes: function(a) { var b = this.yAxis, d = this.processedXData, e, f = [], h = 0; e = this.xAxis.getExtremes(); var p = e.min, l = e.max, g, r, n, k; a = a || this.stackedYData || this.processedYData || []; e = a.length; for (k = 0; k < e; k++) if (r = d[k], n = a[k], g = (w(n, !0) || c(n)) && (!b.positiveValuesOnly || n.length || 0 < n), r = this.getExtremesFromAll || this.options.getExtremesFromAll || this.cropped || (d[k] || r) >= p && (d[k] || r) <= l, g && r) if (g = n.length) for (; g--;) null !== n[g] && (f[h++] = n[g]); else f[h++] = n; this.dataMin = F(f); this.dataMax = G(f) }, translate: function() { this.processedXData || this.processData(); this.generatePoints(); var a = this.options, b = a.stacking, c = this.xAxis, d = c.categories, f = this.yAxis, e = this.points, h = e.length, l = !!this.modifyValue, g = a.pointPlacement, r = "between" === g || w(g), n = a.threshold, k = a.startFromThreshold ? n: 0, q, z, y, B, u = Number.MAX_VALUE; "between" === g && (g = .5); w(g) && (g *= H(a.pointRange || c.pointRange)); for (a = 0; a < h; a++) { var D = e[a], M = D.x, A = D.y; z = D.low; var C = b && f.stacks[(this.negStacks && A < (k ? 0 : n) ? "-": "") + this.stackKey], F; f.positiveValuesOnly && null !== A && 0 >= A && (D.isNull = !0); D.plotX = q = m(Math.min(Math.max( - 1E5, c.translate(M, 0, 0, 0, 1, g, "flags" === this.type)), 1E5)); b && this.visible && !D.isNull && C && C[M] && (B = this.getStackIndicator(B, M, this.index), F = C[M], A = F.points[B.key], z = A[0], A = A[1], z === k && B.key === C[M].base && (z = H(n, f.min)), f.positiveValuesOnly && 0 >= z && (z = null), D.total = D.stackTotal = F.total, D.percentage = F.total && D.y / F.total * 100, D.stackY = A, F.setOffset(this.pointXOffset || 0, this.barW || 0)); D.yBottom = v(z) ? f.translate(z, 0, 1, 0, 1) : null; l && (A = this.modifyValue(A, D)); D.plotY = z = "number" === typeof A && Infinity !== A ? Math.min(Math.max( - 1E5, f.translate(A, 0, 1, 0, 1)), 1E5) : void 0; D.isInside = void 0 !== z && 0 <= z && z <= f.len && 0 <= q && q <= c.len; D.clientX = r ? m(c.translate(M, 0, 0, 0, 1, g)) : q; D.negative = D.y < (n || 0); D.category = d && void 0 !== d[D.x] ? d[D.x] : D.x; D.isNull || (void 0 !== y && (u = Math.min(u, Math.abs(q - y))), y = q); D.zone = this.zones.length && D.getZone() } this.closestPointRangePx = u }, getValidPoints: function(a, b) { var c = this.chart; return d(a || this.points || [], function(a) { return b && !c.isInsidePlot(a.plotX, a.plotY, c.inverted) ? !1 : !a.isNull }) }, setClip: function(a) { var b = this.chart, c = this.options, d = b.renderer, f = b.inverted, e = this.clipBox, h = e || b.clipBox, l = this.sharedClipKey || ["_sharedClip", a && a.duration, a && a.easing, h.height, c.xAxis, c.yAxis].join(), g = b[l], p = b[l + "m"]; g || (a && (h.width = 0, b[l + "m"] = p = d.clipRect( - 99, f ? -b.plotLeft: -b.plotTop, 99, f ? b.chartWidth: b.chartHeight)), b[l] = g = d.clipRect(h), g.count = { length: 0 }); a && !g.count[this.index] && (g.count[this.index] = !0, g.count.length += 1); ! 1 !== c.clip && (this.group.clip(a || e ? g: b.clipRect), this.markerGroup.clip(p), this.sharedClipKey = l); a || (g.count[this.index] && (delete g.count[this.index], --g.count.length), 0 === g.count.length && l && b[l] && (e || (b[l] = b[l].destroy()), b[l + "m"] && (b[l + "m"] = b[l + "m"].destroy()))) }, animate: function(a) { var b = this.chart, c = A(this.options.animation), d; a ? this.setClip(c) : (d = this.sharedClipKey, (a = b[d]) && a.animate({ width: b.plotSizeX }, c), b[d + "m"] && b[d + "m"].animate({ width: b.plotSizeX + 99 }, c), this.animate = null) }, afterAnimate: function() { this.setClip(); n(this, "afterAnimate") }, drawPoints: function() { var a = this.points, b = this.chart, c, d, f, e, h = this.options.marker, l, g, r, n, k = this[this.specialGroup] || this.markerGroup, m = H(h.enabled, this.xAxis.isRadial ? !0 : null, this.closestPointRangePx >= 2 * h.radius); if (!1 !== h.enabled || this._hasPointMarkers) for (d = 0; d < a.length; d++) f = a[d], c = f.plotY, e = f.graphic, l = f.marker || {}, g = !!f.marker, r = m && void 0 === l.enabled || l.enabled, n = f.isInside, r && w(c) && null !== f.y ? (c = H(l.symbol, this.symbol), f.hasImage = 0 === c.indexOf("url"), r = this.markerAttribs(f, f.selected && "select"), e ? e[n ? "show": "hide"](!0).animate(r) : n && (0 < r.width || f.hasImage) && (f.graphic = e = b.renderer.symbol(c, r.x, r.y, r.width, r.height, g ? l: h).add(k)), e && e.attr(this.pointAttribs(f, f.selected && "select")), e && e.addClass(f.getClassName(), !0)) : e && (f.graphic = e.destroy()) }, markerAttribs: function(a, b) { var c = this.options.marker, d = a.marker || {}, f = H(d.radius, c.radius); b && (c = c.states[b], b = d.states && d.states[b], f = H(b && b.radius, c && c.radius, f + (c && c.radiusPlus || 0))); a.hasImage && (f = 0); a = { x: Math.floor(a.plotX) - f, y: a.plotY - f }; f && (a.width = a.height = 2 * f); return a }, pointAttribs: function(a, b) { var c = this.options.marker, d = a && a.options, f = d && d.marker || {}, e = this.color, h = d && d.color, l = a && a.color, d = H(f.lineWidth, c.lineWidth); a = a && a.zone && a.zone.color; e = h || a || l || e; a = f.fillColor || c.fillColor || e; e = f.lineColor || c.lineColor || e; b && (c = c.states[b], b = f.states && f.states[b] || {}, d = H(b.lineWidth, c.lineWidth, d + H(b.lineWidthPlus, c.lineWidthPlus, 0)), a = b.fillColor || c.fillColor || a, e = b.lineColor || c.lineColor || e); return { stroke: e, "stroke-width": d, fill: a } }, destroy: function() { var a = this, b = a.chart, c = /AppleWebKit\/533/.test(M.navigator.userAgent), d, f, e = a.data || [], g, k; n(a, "destroy"); l(a); u(a.axisTypes || [], function(b) { (k = a[b]) && k.series && (h(k.series, a), k.isDirty = k.forceRedraw = !0) }); a.legendItem && a.chart.legend.destroyItem(a); for (f = e.length; f--;)(g = e[f]) && g.destroy && g.destroy(); a.points = null; clearTimeout(a.animationTimeout); D(a, function(a, b) { a instanceof r && !a.survive && (d = c && "group" === b ? "hide": "destroy", a[d]()) }); b.hoverSeries === a && (b.hoverSeries = null); h(b.series, a); b.orderSeries(); D(a, function(b, c) { delete a[c] }) }, getGraphPath: function(a, b, c) { var d = this, f = d.options, e = f.step, h, l = [], g = [], p; a = a || d.points; (h = a.reversed) && a.reverse(); (e = { right: 1, center: 2 } [e] || e && 3) && h && (e = 4 - e); ! f.connectNulls || b || c || (a = this.getValidPoints(a)); u(a, function(h, r) { var n = h.plotX, k = h.plotY, m = a[r - 1]; (h.leftCliff || m && m.rightCliff) && !c && (p = !0); h.isNull && !v(b) && 0 < r ? p = !f.connectNulls: h.isNull && !b ? p = !0 : (0 === r || p ? r = ["M", h.plotX, h.plotY] : d.getPointSpline ? r = d.getPointSpline(a, h, r) : e ? (r = 1 === e ? ["L", m.plotX, k] : 2 === e ? ["L", (m.plotX + n) / 2, m.plotY, "L", (m.plotX + n) / 2, k] : ["L", n, m.plotY], r.push("L", n, k)) : r = ["L", n, k], g.push(h.x), e && g.push(h.x), l.push.apply(l, r), p = !1) }); l.xMap = g; return d.graphPath = l }, drawGraph: function() { var a = this, b = this.options, c = (this.gappedPath || this.getGraphPath).call(this), d = [["graph", "highcharts-graph", b.lineColor || this.color, b.dashStyle]]; u(this.zones, function(c, e) { d.push(["zone-graph-" + e, "highcharts-graph highcharts-zone-graph-" + e + " " + (c.className || ""), c.color || a.color, c.dashStyle || b.dashStyle]) }); u(d, function(f, d) { var e = f[0], h = a[e]; h ? (h.endX = c.xMap, h.animate({ d: c })) : c.length && (a[e] = a.chart.renderer.path(c).addClass(f[1]).attr({ zIndex: 1 }).add(a.group), h = { stroke: f[2], "stroke-width": b.lineWidth, fill: a.fillGraph && a.color || "none" }, f[3] ? h.dashstyle = f[3] : "square" !== b.linecap && (h["stroke-linecap"] = h["stroke-linejoin"] = "round"), h = a[e].attr(h).shadow(2 > d && b.shadow)); h && (h.startX = c.xMap, h.isArea = c.isArea) }) }, applyZones: function() { var a = this, b = this.chart, c = b.renderer, d = this.zones, f, e, h = this.clips || [], l, g = this.graph, r = this.area, n = Math.max(b.chartWidth, b.chartHeight), k = this[(this.zoneAxis || "y") + "Axis"], m, q, w = b.inverted, z, y, B, v, D = !1; d.length && (g || r) && k && void 0 !== k.min && (q = k.reversed, z = k.horiz, g && g.hide(), r && r.hide(), m = k.getExtremes(), u(d, function(d, p) { f = q ? z ? b.plotWidth: 0 : z ? 0 : k.toPixels(m.min); f = Math.min(Math.max(H(e, f), 0), n); e = Math.min(Math.max(Math.round(k.toPixels(H(d.value, m.max), !0)), 0), n); D && (f = e = k.toPixels(m.max)); y = Math.abs(f - e); B = Math.min(f, e); v = Math.max(f, e); k.isXAxis ? (l = { x: w ? v: B, y: 0, width: y, height: n }, z || (l.x = b.plotHeight - l.x)) : (l = { x: 0, y: w ? v: B, width: n, height: y }, z && (l.y = b.plotWidth - l.y)); w && c.isVML && (l = k.isXAxis ? { x: 0, y: q ? B: v, height: l.width, width: b.chartWidth }: { x: l.y - b.plotLeft - b.spacingBox.x, y: 0, width: l.height, height: b.chartHeight }); h[p] ? h[p].animate(l) : (h[p] = c.clipRect(l), g && a["zone-graph-" + p].clip(h[p]), r && a["zone-area-" + p].clip(h[p])); D = d.value > m.max }), this.clips = h) }, invertGroups: function(a) { function b() { u(["group", "markerGroup"], function(b) { c[b] && (d.renderer.isVML && c[b].attr({ width: c.yAxis.len, height: c.xAxis.len }), c[b].width = c.yAxis.len, c[b].height = c.xAxis.len, c[b].invert(a)) }) } var c = this, d = c.chart, f; c.xAxis && (f = C(d, "resize", b), C(c, "destroy", f), b(a), c.invertGroups = b) }, plotGroup: function(a, b, c, d, f) { var e = this[a], h = !e; h && (this[a] = e = this.chart.renderer.g().attr({ zIndex: d || .1 }).add(f)); e.addClass("highcharts-" + b + " highcharts-series-" + this.index + " highcharts-" + this.type + "-series highcharts-color-" + this.colorIndex + " " + (this.options.className || ""), !0); e.attr({ visibility: c })[h ? "attr": "animate"](this.getPlotBox()); return e }, getPlotBox: function() { var a = this.chart, b = this.xAxis, c = this.yAxis; a.inverted && (b = c, c = this.xAxis); return { translateX: b ? b.left: a.plotLeft, translateY: c ? c.top: a.plotTop, scaleX: 1, scaleY: 1 } }, render: function() { var a = this, b = a.chart, c, d = a.options, f = !!a.animate && b.renderer.isSVG && A(d.animation).duration, e = a.visible ? "inherit": "hidden", h = d.zIndex, l = a.hasRendered, g = b.seriesGroup, r = b.inverted; c = a.plotGroup("group", "series", e, h, g); a.markerGroup = a.plotGroup("markerGroup", "markers", e, h, g); f && a.animate(!0); c.inverted = a.isCartesian ? r: !1; a.drawGraph && (a.drawGraph(), a.applyZones()); a.drawDataLabels && a.drawDataLabels(); a.visible && a.drawPoints(); a.drawTracker && !1 !== a.options.enableMouseTracking && a.drawTracker(); a.invertGroups(r); ! 1 === d.clip || a.sharedClipKey || l || c.clip(b.clipRect); f && a.animate(); l || (a.animationTimeout = z(function() { a.afterAnimate() }, f)); a.isDirty = !1; a.hasRendered = !0 }, redraw: function() { var a = this.chart, b = this.isDirty || this.isDirtyData, c = this.group, d = this.xAxis, f = this.yAxis; c && (a.inverted && c.attr({ width: a.plotWidth, height: a.plotHeight }), c.animate({ translateX: H(d && d.left, a.plotLeft), translateY: H(f && f.top, a.plotTop) })); this.translate(); this.render(); b && delete this.kdTree }, kdAxisArray: ["clientX", "plotY"], searchPoint: function(a, b) { var c = this.xAxis, d = this.yAxis, f = this.chart.inverted; return this.searchKDTree({ clientX: f ? c.len - a.chartY + c.pos: a.chartX - c.pos, plotY: f ? d.len - a.chartX + d.pos: a.chartY - d.pos }, b) }, buildKDTree: function() { function a(c, f, d) { var e, h; if (h = c && c.length) return e = b.kdAxisArray[f % d], c.sort(function(a, b) { return a[e] - b[e] }), h = Math.floor(h / 2), { point: c[h], left: a(c.slice(0, h), f + 1, d), right: a(c.slice(h + 1), f + 1, d) } } this.buildingKdTree = !0; var b = this, c = -1 < b.options.findNearestPointBy.indexOf("y") ? 2 : 1; delete b.kdTree; z(function() { b.kdTree = a(b.getValidPoints(null, !b.directTouch), c, c); b.buildingKdTree = !1 }, b.options.kdNow ? 0 : 1) }, searchKDTree: function(a, b) { function c(a, b, l, g) { var r = b.point, p = d.kdAxisArray[l % g], n, k, m = r; k = v(a[f]) && v(r[f]) ? Math.pow(a[f] - r[f], 2) : null; n = v(a[e]) && v(r[e]) ? Math.pow(a[e] - r[e], 2) : null; n = (k || 0) + (n || 0); r.dist = v(n) ? Math.sqrt(n) : Number.MAX_VALUE; r.distX = v(k) ? Math.sqrt(k) : Number.MAX_VALUE; p = a[p] - r[p]; n = 0 > p ? "left": "right"; k = 0 > p ? "right": "left"; b[n] && (n = c(a, b[n], l + 1, g), m = n[h] < m[h] ? n: r); b[k] && Math.sqrt(p * p) < m[h] && (a = c(a, b[k], l + 1, g), m = a[h] < m[h] ? a: m); return m } var d = this, f = this.kdAxisArray[0], e = this.kdAxisArray[1], h = b ? "distX": "dist"; b = -1 < d.options.findNearestPointBy.indexOf("y") ? 2 : 1; this.kdTree || this.buildingKdTree || this.buildKDTree(); if (this.kdTree) return c(a, this.kdTree, b, b) } }) })(K); (function(a) { function C(a, e, g, d, c) { var h = a.chart.inverted; this.axis = a; this.isNegative = g; this.options = e; this.x = d; this.total = null; this.points = {}; this.stack = c; this.rightCliff = this.leftCliff = 0; this.alignOptions = { align: e.align || (h ? g ? "left": "right": "center"), verticalAlign: e.verticalAlign || (h ? "middle": g ? "bottom": "top"), y: u(e.y, h ? 4 : g ? 14 : -6), x: u(e.x, h ? g ? -6 : 6 : 0) }; this.textAlign = e.textAlign || (h ? g ? "right": "left": "center") } var A = a.Axis, G = a.Chart, F = a.correctFloat, m = a.defined, g = a.destroyObjectProperties, k = a.each, q = a.format, v = a.objectEach, u = a.pick; a = a.Series; C.prototype = { destroy: function() { g(this, this.axis) }, render: function(a) { var e = this.options, h = e.format, h = h ? q(h, this) : e.formatter.call(this); this.label ? this.label.attr({ text: h, visibility: "hidden" }) : this.label = this.axis.chart.renderer.text(h, null, null, e.useHTML).css(e.style).attr({ align: this.textAlign, rotation: e.rotation, visibility: "hidden" }).add(a) }, setOffset: function(a, e) { var h = this.axis, d = h.chart, c = d.inverted, g = h.reversed, g = this.isNegative && !g || !this.isNegative && g, b = h.translate(h.usePercentage ? 100 : this.total, 0, 0, 0, 1), h = h.translate(0), h = Math.abs(b - h); a = d.xAxis[0].translate(this.x) + a; var k = d.plotHeight, c = { x: c ? g ? b: b - h: a, y: c ? k - a - e: g ? k - b - h: k - b, width: c ? h: e, height: c ? e: h }; if (e = this.label) e.align(this.alignOptions, null, c), c = e.alignAttr, e[!1 === this.options.crop || d.isInsidePlot(c.x, c.y) ? "show": "hide"](!0) } }; G.prototype.getStacks = function() { var a = this; k(a.yAxis, function(a) { a.stacks && a.hasVisibleSeries && (a.oldStacks = a.stacks) }); k(a.series, function(e) { ! e.options.stacking || !0 !== e.visible && !1 !== a.options.chart.ignoreHiddenSeries || (e.stackKey = e.type + u(e.options.stack, "")) }) }; A.prototype.buildStacks = function() { var a = this.series, e, g = u(this.options.reversedStacks, !0), d = a.length, c; if (!this.isXAxis) { this.usePercentage = !1; for (c = d; c--;) a[g ? c: d - c - 1].setStackedPoints(); for (c = d; c--;) e = a[g ? c: d - c - 1], e.setStackCliffs && e.setStackCliffs(); if (this.usePercentage) for (c = 0; c < d; c++) a[c].setPercentStacks() } }; A.prototype.renderStackTotals = function() { var a = this.chart, e = a.renderer, g = this.stacks, d = this.stackTotalGroup; d || (this.stackTotalGroup = d = e.g("stack-labels").attr({ visibility: "visible", zIndex: 6 }).add()); d.translate(a.plotLeft, a.plotTop); v(g, function(a) { v(a, function(a) { a.render(d) }) }) }; A.prototype.resetStacks = function() { var a = this, e = a.stacks; a.isXAxis || v(e, function(e) { v(e, function(d, c) { d.touched < a.stacksTouched ? (d.destroy(), delete e[c]) : (d.total = null, d.cum = null) }) }) }; A.prototype.cleanStacks = function() { var a; this.isXAxis || (this.oldStacks && (a = this.stacks = this.oldStacks), v(a, function(a) { v(a, function(a) { a.cum = a.total }) })) }; a.prototype.setStackedPoints = function() { if (this.options.stacking && (!0 === this.visible || !1 === this.chart.options.chart.ignoreHiddenSeries)) { var a = this.processedXData, e = this.processedYData, g = [], d = e.length, c = this.options, k = c.threshold, b = c.startFromThreshold ? k: 0, q = c.stack, c = c.stacking, v = this.stackKey, H = "-" + v, l = this.negStacks, B = this.yAxis, r = B.stacks, z = B.oldStacks, M, p, E, I, A, f, t; B.stacksTouched += 1; for (A = 0; A < d; A++) f = a[A], t = e[A], M = this.getStackIndicator(M, f, this.index), I = M.key, E = (p = l && t < (b ? 0 : k)) ? H: v, r[E] || (r[E] = {}), r[E][f] || (z[E] && z[E][f] ? (r[E][f] = z[E][f], r[E][f].total = null) : r[E][f] = new C(B, B.options.stackLabels, p, f, q)), E = r[E][f], null !== t && (E.points[I] = E.points[this.index] = [u(E.cum, b)], m(E.cum) || (E.base = I), E.touched = B.stacksTouched, 0 < M.index && !1 === this.singleStacks && (E.points[I][0] = E.points[this.index + "," + f + ",0"][0])), "percent" === c ? (p = p ? v: H, l && r[p] && r[p][f] ? (p = r[p][f], E.total = p.total = Math.max(p.total, E.total) + Math.abs(t) || 0) : E.total = F(E.total + (Math.abs(t) || 0))) : E.total = F(E.total + (t || 0)), E.cum = u(E.cum, b) + (t || 0), null !== t && (E.points[I].push(E.cum), g[A] = E.cum); "percent" === c && (B.usePercentage = !0); this.stackedYData = g; B.oldStacks = {} } }; a.prototype.setPercentStacks = function() { var a = this, e = a.stackKey, g = a.yAxis.stacks, d = a.processedXData, c; k([e, "-" + e], function(e) { for (var b = d.length, h, k; b--;) if (h = d[b], c = a.getStackIndicator(c, h, a.index, e), h = (k = g[e] && g[e][h]) && k.points[c.key]) k = k.total ? 100 / k.total: 0, h[0] = F(h[0] * k), h[1] = F(h[1] * k), a.stackedYData[b] = h[1] }) }; a.prototype.getStackIndicator = function(a, e, g, d) { ! m(a) || a.x !== e || d && a.key !== d ? a = { x: e, index: 0, key: d }: a.index++; a.key = [g, e, a.index].join(); return a } })(K); (function(a) { var C = a.addEvent, A = a.animate, G = a.Axis, F = a.createElement, m = a.css, g = a.defined, k = a.each, q = a.erase, v = a.extend, u = a.fireEvent, h = a.inArray, e = a.isNumber, n = a.isObject, d = a.isArray, c = a.merge, w = a.objectEach, b = a.pick, y = a.Point, D = a.Series, H = a.seriesTypes, l = a.setAnimation, B = a.splat; v(a.Chart.prototype, { addSeries: function(a, c, d) { var e, h = this; a && (c = b(c, !0), u(h, "addSeries", { options: a }, function() { e = h.initSeries(a); h.isDirtyLegend = !0; h.linkSeries(); c && h.redraw(d) })); return e }, addAxis: function(a, d, e, h) { var g = d ? "xAxis": "yAxis", l = this.options; a = c(a, { index: this[g].length, isX: d }); new G(this, a); l[g] = B(l[g] || {}); l[g].push(a); b(e, !0) && this.redraw(h) }, showLoading: function(a) { var b = this, c = b.options, d = b.loadingDiv, e = c.loading, h = function() { d && m(d, { left: b.plotLeft + "px", top: b.plotTop + "px", width: b.plotWidth + "px", height: b.plotHeight + "px" }) }; d || (b.loadingDiv = d = F("div", { className: "highcharts-loading highcharts-loading-hidden" }, null, b.container), b.loadingSpan = F("span", { className: "highcharts-loading-inner" }, null, d), C(b, "redraw", h)); d.className = "highcharts-loading"; b.loadingSpan.innerHTML = a || c.lang.loading; m(d, v(e.style, { zIndex: 10 })); m(b.loadingSpan, e.labelStyle); b.loadingShown || (m(d, { opacity: 0, display: "" }), A(d, { opacity: e.style.opacity || .5 }, { duration: e.showDuration || 0 })); b.loadingShown = !0; h() }, hideLoading: function() { var a = this.options, b = this.loadingDiv; b && (b.className = "highcharts-loading highcharts-loading-hidden", A(b, { opacity: 0 }, { duration: a.loading.hideDuration || 100, complete: function() { m(b, { display: "none" }) } })); this.loadingShown = !1 }, propsRequireDirtyBox: "backgroundColor borderColor borderWidth margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "), propsRequireUpdateSeries: "chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions tooltip".split(" "), update: function(a, d) { var l = this, r = { credits: "addCredits", title: "setTitle", subtitle: "setSubtitle" }, n = a.chart, m, q; if (n) { c(!0, l.options.chart, n); "className" in n && l.setClassName(n.className); if ("inverted" in n || "polar" in n) l.propFromSeries(), m = !0; "alignTicks" in n && (m = !0); w(n, function(a, b) { - 1 !== h("chart." + b, l.propsRequireUpdateSeries) && (q = !0); - 1 !== h(b, l.propsRequireDirtyBox) && (l.isDirtyBox = !0) }); "style" in n && l.renderer.setStyle(n.style) } a.colors && (this.options.colors = a.colors); a.plotOptions && c(!0, this.options.plotOptions, a.plotOptions); w(a, function(a, b) { if (l[b] && "function" === typeof l[b].update) l[b].update(a, !1); else if ("function" === typeof l[r[b]]) l[r[b]](a); "chart" !== b && -1 !== h(b, l.propsRequireUpdateSeries) && (q = !0) }); k("xAxis yAxis zAxis series colorAxis pane".split(" "), function(b) { a[b] && k(B(a[b]), function(a, c) { (c = g(a.id) && l.get(a.id) || l[b][c]) && c.coll === b && c.update(a, !1) }) }); m && k(l.axes, function(a) { a.update({}, !1) }); q && k(l.series, function(a) { a.update({}, !1) }); a.loading && c(!0, l.options.loading, a.loading); m = n && n.width; n = n && n.height; e(m) && m !== l.chartWidth || e(n) && n !== l.chartHeight ? l.setSize(m, n) : b(d, !0) && l.redraw() }, setSubtitle: function(a) { this.setTitle(void 0, a) } }); v(y.prototype, { update: function(a, c, d, e) { function h() { l.applyOptions(a); null === l.y && f && (l.graphic = f.destroy()); n(a, !0) && (f && f.element && a && a.marker && a.marker.symbol && (l.graphic = f.destroy()), a && a.dataLabels && l.dataLabel && (l.dataLabel = l.dataLabel.destroy())); r = l.index; g.updateParallelArrays(l, r); p.data[r] = n(p.data[r], !0) || n(a, !0) ? l.options: a; g.isDirty = g.isDirtyData = !0; ! g.fixedBox && g.hasCartesianSeries && (k.isDirtyBox = !0); "point" === p.legendType && (k.isDirtyLegend = !0); c && k.redraw(d) } var l = this, g = l.series, f = l.graphic, r, k = g.chart, p = g.options; c = b(c, !0); ! 1 === e ? h() : l.firePointEvent("update", { options: a }, h) }, remove: function(a, b) { this.series.removePoint(h(this, this.series.data), a, b) } }); v(D.prototype, { addPoint: function(a, c, d, e) { var h = this.options, l = this.data, g = this.chart, f = this.xAxis, f = f && f.hasNames && f.names, r = h.data, k, p, n = this.xData, m, q; c = b(c, !0); k = { series: this }; this.pointClass.prototype.applyOptions.apply(k, [a]); q = k.x; m = n.length; if (this.requireSorting && q < n[m - 1]) for (p = !0; m && n[m - 1] > q;) m--; this.updateParallelArrays(k, "splice", m, 0, 0); this.updateParallelArrays(k, m); f && k.name && (f[q] = k.name); r.splice(m, 0, a); p && (this.data.splice(m, 0, null), this.processData()); "point" === h.legendType && this.generatePoints(); d && (l[0] && l[0].remove ? l[0].remove(!1) : (l.shift(), this.updateParallelArrays(k, "shift"), r.shift())); this.isDirtyData = this.isDirty = !0; c && g.redraw(e) }, removePoint: function(a, c, d) { var e = this, h = e.data, g = h[a], k = e.points, f = e.chart, r = function() { k && k.length === h.length && k.splice(a, 1); h.splice(a, 1); e.options.data.splice(a, 1); e.updateParallelArrays(g || { series: e }, "splice", a, 1); g && g.destroy(); e.isDirty = !0; e.isDirtyData = !0; c && f.redraw() }; l(d, f); c = b(c, !0); g ? g.firePointEvent("remove", null, r) : r() }, remove: function(a, c, d) { function e() { h.destroy(); l.isDirtyLegend = l.isDirtyBox = !0; l.linkSeries(); b(a, !0) && l.redraw(c) } var h = this, l = h.chart; ! 1 !== d ? u(h, "remove", null, e) : e() }, update: function(a, d) { var e = this, h = e.chart, l = e.userOptions, g = e.oldType || e.type, r = a.type || l.type || h.options.chart.type, f = H[g].prototype, n = ["group", "markerGroup", "dataLabelsGroup"], m; if (Object.keys && "data" === Object.keys(a).toString()) return this.setData(a.data, d); if (r && r !== g || void 0 !== a.zIndex) n.length = 0; k(n, function(a) { n[a] = e[a]; delete e[a] }); a = c(l, { animation: !1, index: e.index, pointStart: e.xData[0] }, { data: e.options.data }, a); e.remove(!1, null, !1); for (m in f) e[m] = void 0; v(e, H[r || g].prototype); k(n, function(a) { e[a] = n[a] }); e.init(h, a); e.oldType = g; h.linkSeries(); b(d, !0) && h.redraw(!1) } }); v(G.prototype, { update: function(a, d) { var e = this.chart; a = e.options[this.coll][this.options.index] = c(this.userOptions, a); this.destroy(!0); this.init(e, v(a, { events: void 0 })); e.isDirtyBox = !0; b(d, !0) && e.redraw() }, remove: function(a) { for (var c = this.chart, e = this.coll, h = this.series, l = h.length; l--;) h[l] && h[l].remove(!1); q(c.axes, this); q(c[e], this); d(c.options[e]) ? c.options[e].splice(this.options.index, 1) : delete c.options[e]; k(c[e], function(a, b) { a.options.index = b }); this.destroy(); c.isDirtyBox = !0; b(a, !0) && c.redraw() }, setTitle: function(a, b) { this.update({ title: a }, b) }, setCategories: function(a, b) { this.update({ categories: a }, b) } }) })(K); (function(a) { var C = a.color, A = a.each, G = a.map, F = a.pick, m = a.Series, g = a.seriesType; g("area", "line", { softThreshold: !1, threshold: 0 }, { singleStacks: !1, getStackPoints: function() { var g = [], m = [], v = this.xAxis, u = this.yAxis, h = u.stacks[this.stackKey], e = {}, n = this.points, d = this.index, c = u.series, w = c.length, b, y = F(u.options.reversedStacks, !0) ? 1 : -1, D; if (this.options.stacking) { for (D = 0; D < n.length; D++) e[n[D].x] = n[D]; a.objectEach(h, function(a, b) { null !== a.total && m.push(b) }); m.sort(function(a, b) { return a - b }); b = G(c, function() { return this.visible }); A(m, function(a, c) { var l = 0, k, n; if (e[a] && !e[a].isNull) g.push(e[a]), A([ - 1, 1], function(l) { var g = 1 === l ? "rightNull": "leftNull", r = 0, q = h[m[c + l]]; if (q) for (D = d; 0 <= D && D < w;) k = q.points[D], k || (D === d ? e[a][g] = !0 : b[D] && (n = h[a].points[D]) && (r -= n[1] - n[0])), D += y; e[a][1 === l ? "rightCliff": "leftCliff"] = r }); else { for (D = d; 0 <= D && D < w;) { if (k = h[a].points[D]) { l = k[1]; break } D += y } l = u.translate(l, 0, 1, 0, 1); g.push({ isNull: !0, plotX: v.translate(a, 0, 0, 0, 1), x: a, plotY: l, yBottom: l }) } }) } return g }, getGraphPath: function(a) { var g = m.prototype.getGraphPath, k = this.options, u = k.stacking, h = this.yAxis, e, n, d = [], c = [], w = this.index, b, y = h.stacks[this.stackKey], D = k.threshold, A = h.getThreshold(k.threshold), l, k = k.connectNulls || "percent" === u, B = function(e, l, g) { var k = a[e]; e = u && y[k.x].points[w]; var n = k[g + "Null"] || 0; g = k[g + "Cliff"] || 0; var r, m, k = !0; g || n ? (r = (n ? e[0] : e[1]) + g, m = e[0] + g, k = !!n) : !u && a[l] && a[l].isNull && (r = m = D); void 0 !== r && (c.push({ plotX: b, plotY: null === r ? A: h.getThreshold(r), isNull: k, isCliff: !0 }), d.push({ plotX: b, plotY: null === m ? A: h.getThreshold(m), doCurve: !1 })) }; a = a || this.points; u && (a = this.getStackPoints()); for (e = 0; e < a.length; e++) if (n = a[e].isNull, b = F(a[e].rectPlotX, a[e].plotX), l = F(a[e].yBottom, A), !n || k) k || B(e, e - 1, "left"), n && !u && k || (c.push(a[e]), d.push({ x: e, plotX: b, plotY: l })), k || B(e, e + 1, "right"); e = g.call(this, c, !0, !0); d.reversed = !0; n = g.call(this, d, !0, !0); n.length && (n[0] = "L"); n = e.concat(n); g = g.call(this, c, !1, k); n.xMap = e.xMap; this.areaPath = n; return g }, drawGraph: function() { this.areaPath = []; m.prototype.drawGraph.apply(this); var a = this, g = this.areaPath, v = this.options, u = [["area", "highcharts-area", this.color, v.fillColor]]; A(this.zones, function(h, e) { u.push(["zone-area-" + e, "highcharts-area highcharts-zone-area-" + e + " " + h.className, h.color || a.color, h.fillColor || v.fillColor]) }); A(u, function(h) { var e = h[0], k = a[e]; k ? (k.endX = g.xMap, k.animate({ d: g })) : (k = a[e] = a.chart.renderer.path(g).addClass(h[1]).attr({ fill: F(h[3], C(h[2]).setOpacity(F(v.fillOpacity, .75)).get()), zIndex: 0 }).add(a.group), k.isArea = !0); k.startX = g.xMap; k.shiftUnit = v.step ? 2 : 1 }) }, drawLegendSymbol: a.LegendSymbolMixin.drawRectangle }) })(K); (function(a) { var C = a.pick; a = a.seriesType; a("spline", "line", {}, { getPointSpline: function(a, G, F) { var m = G.plotX, g = G.plotY, k = a[F - 1]; F = a[F + 1]; var q, v, u, h; if (k && !k.isNull && !1 !== k.doCurve && !G.isCliff && F && !F.isNull && !1 !== F.doCurve && !G.isCliff) { a = k.plotY; u = F.plotX; F = F.plotY; var e = 0; q = (1.5 * m + k.plotX) / 2.5; v = (1.5 * g + a) / 2.5; u = (1.5 * m + u) / 2.5; h = (1.5 * g + F) / 2.5; u !== q && (e = (h - v) * (u - m) / (u - q) + g - h); v += e; h += e; v > a && v > g ? (v = Math.max(a, g), h = 2 * g - v) : v < a && v < g && (v = Math.min(a, g), h = 2 * g - v); h > F && h > g ? (h = Math.max(F, g), v = 2 * g - h) : h < F && h < g && (h = Math.min(F, g), v = 2 * g - h); G.rightContX = u; G.rightContY = h } G = ["C", C(k.rightContX, k.plotX), C(k.rightContY, k.plotY), C(q, m), C(v, g), m, g]; k.rightContX = k.rightContY = null; return G } }) })(K); (function(a) { var C = a.seriesTypes.area.prototype, A = a.seriesType; A("areaspline", "spline", a.defaultPlotOptions.area, { getStackPoints: C.getStackPoints, getGraphPath: C.getGraphPath, setStackCliffs: C.setStackCliffs, drawGraph: C.drawGraph, drawLegendSymbol: a.LegendSymbolMixin.drawRectangle }) })(K); (function(a) { var C = a.animObject, A = a.color, G = a.each, F = a.extend, m = a.isNumber, g = a.merge, k = a.pick, q = a.Series, v = a.seriesType, u = a.svg; v("column", "line", { borderRadius: 0, crisp: !0, groupPadding: .2, marker: null, pointPadding: .1, minPointLength: 0, cropThreshold: 50, pointRange: null, states: { hover: { halo: !1, brightness: .1, shadow: !1 }, select: { color: "#cccccc", borderColor: "#000000", shadow: !1 } }, dataLabels: { align: null, verticalAlign: null, y: null }, softThreshold: !1, startFromThreshold: !0, stickyTracking: !1, tooltip: { distance: 6 }, threshold: 0, borderColor: "#ffffff" }, { cropShoulder: 0, directTouch: !0, trackerGroups: ["group", "dataLabelsGroup"], negStacks: !0, init: function() { q.prototype.init.apply(this, arguments); var a = this, e = a.chart; e.hasRendered && G(e.series, function(e) { e.type === a.type && (e.isDirty = !0) }) }, getColumnMetrics: function() { var a = this, e = a.options, g = a.xAxis, d = a.yAxis, c = g.reversed, m, b = {}, q = 0; ! 1 === e.grouping ? q = 1 : G(a.chart.series, function(c) { var e = c.options, g = c.yAxis, h; c.type !== a.type || !c.visible && a.chart.options.chart.ignoreHiddenSeries || d.len !== g.len || d.pos !== g.pos || (e.stacking ? (m = c.stackKey, void 0 === b[m] && (b[m] = q++), h = b[m]) : !1 !== e.grouping && (h = q++), c.columnIndex = h) }); var u = Math.min(Math.abs(g.transA) * (g.ordinalSlope || e.pointRange || g.closestPointRange || g.tickInterval || 1), g.len), v = u * e.groupPadding, l = (u - 2 * v) / (q || 1), e = Math.min(e.maxPointWidth || g.len, k(e.pointWidth, l * (1 - 2 * e.pointPadding))); a.columnMetrics = { width: e, offset: (l - e) / 2 + (v + ((a.columnIndex || 0) + (c ? 1 : 0)) * l - u / 2) * (c ? -1 : 1) }; return a.columnMetrics }, crispCol: function(a, e, g, d) { var c = this.chart, h = this.borderWidth, b = -(h % 2 ? .5 : 0), h = h % 2 ? .5 : 1; c.inverted && c.renderer.isVML && (h += 1); this.options.crisp && (g = Math.round(a + g) + b, a = Math.round(a) + b, g -= a); d = Math.round(e + d) + h; b = .5 >= Math.abs(e) && .5 < d; e = Math.round(e) + h; d -= e; b && d && (--e, d += 1); return { x: a, y: e, width: g, height: d } }, translate: function() { var a = this, e = a.chart, g = a.options, d = a.dense = 2 > a.closestPointRange * a.xAxis.transA, d = a.borderWidth = k(g.borderWidth, d ? 0 : 1), c = a.yAxis, m = a.translatedThreshold = c.getThreshold(g.threshold), b = k(g.minPointLength, 5), y = a.getColumnMetrics(), u = y.width, v = a.barW = Math.max(u, 1 + 2 * d), l = a.pointXOffset = y.offset; e.inverted && (m -= .5); g.pointPadding && (v = Math.ceil(v)); q.prototype.translate.apply(a); G(a.points, function(d) { var g = k(d.yBottom, m), h = 999 + Math.abs(g), h = Math.min(Math.max( - h, d.plotY), c.len + h), n = d.plotX + l, p = v, q = Math.min(h, g), w, y = Math.max(h, g) - q; Math.abs(y) < b && b && (y = b, w = !c.reversed && !d.negative || c.reversed && d.negative, q = Math.abs(q - m) > b ? g - b: m - (w ? b: 0)); d.barX = n; d.pointWidth = u; d.tooltipPos = e.inverted ? [c.len + c.pos - e.plotLeft - h, a.xAxis.len - n - p / 2, y] : [n + p / 2, h + c.pos - e.plotTop, y]; d.shapeType = "rect"; d.shapeArgs = a.crispCol.apply(a, d.isNull ? [n, m, p, 0] : [n, q, p, y]) }) }, getSymbol: a.noop, drawLegendSymbol: a.LegendSymbolMixin.drawRectangle, drawGraph: function() { this.group[this.dense ? "addClass": "removeClass"]("highcharts-dense-data") }, pointAttribs: function(a, e) { var h = this.options, d, c = this.pointAttrToOptions || {}; d = c.stroke || "borderColor"; var k = c["stroke-width"] || "borderWidth", b = a && a.color || this.color, m = a[d] || h[d] || this.color || b, q = a[k] || h[k] || this[k] || 0, c = h.dashStyle; a && this.zones.length && (b = a.getZone(), b = a.options.color || b && b.color || this.color); e && (a = g(h.states[e], a.options.states && a.options.states[e] || {}), e = a.brightness, b = a.color || void 0 !== e && A(b).brighten(a.brightness).get() || b, m = a[d] || m, q = a[k] || q, c = a.dashStyle || c); d = { fill: b, stroke: m, "stroke-width": q }; h.borderRadius && (d.r = h.borderRadius); c && (d.dashstyle = c); return d }, drawPoints: function() { var a = this, e = this.chart, k = a.options, d = e.renderer, c = k.animationLimit || 250, q; G(a.points, function(b) { var h = b.graphic; if (m(b.plotY) && null !== b.y) { q = b.shapeArgs; if (h) h[e.pointCount < c ? "animate": "attr"](g(q)); else b.graphic = h = d[b.shapeType](q).add(b.group || a.group); h.attr(a.pointAttribs(b, b.selected && "select")).shadow(k.shadow, null, k.stacking && !k.borderRadius); h.addClass(b.getClassName(), !0) } else h && (b.graphic = h.destroy()) }) }, animate: function(a) { var e = this, g = this.yAxis, d = e.options, c = this.chart.inverted, h = {}; u && (a ? (h.scaleY = .001, a = Math.min(g.pos + g.len, Math.max(g.pos, g.toPixels(d.threshold))), c ? h.translateX = a - g.len: h.translateY = a, e.group.attr(h)) : (h[c ? "translateX": "translateY"] = g.pos, e.group.animate(h, F(C(e.options.animation), { step: function(a, c) { e.group.attr({ scaleY: Math.max(.001, c.pos) }) } })), e.animate = null)) }, remove: function() { var a = this, e = a.chart; e.hasRendered && G(e.series, function(e) { e.type === a.type && (e.isDirty = !0) }); q.prototype.remove.apply(a, arguments) } }) })(K); (function(a) { a = a.seriesType; a("bar", "column", null, { inverted: !0 }) })(K); (function(a) { var C = a.Series; a = a.seriesType; a("scatter", "line", { lineWidth: 0, findNearestPointBy: "xy", marker: { enabled: !0 }, tooltip: { headerFormat: '\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e \x3cspan style\x3d"font-size: 0.85em"\x3e {series.name}\x3c/span\x3e\x3cbr/\x3e', pointFormat: "x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3e" } }, { sorted: !1, requireSorting: !1, noSharedTooltip: !0, trackerGroups: ["group", "markerGroup", "dataLabelsGroup"], takeOrdinalPosition: !1, drawGraph: function() { this.options.lineWidth && C.prototype.drawGraph.call(this) } }) })(K); (function(a) { var C = a.pick, A = a.relativeLength; a.CenteredSeriesMixin = { getCenter: function() { var a = this.options, F = this.chart, m = 2 * (a.slicedOffset || 0), g = F.plotWidth - 2 * m, F = F.plotHeight - 2 * m, k = a.center, k = [C(k[0], "50%"), C(k[1], "50%"), a.size || "100%", a.innerSize || 0], q = Math.min(g, F), v, u; for (v = 0; 4 > v; ++v) u = k[v], a = 2 > v || 2 === v && /%$/.test(u), k[v] = A(u, [g, F, q, k[2]][v]) + (a ? m: 0); k[3] > k[2] && (k[3] = k[2]); return k } } })(K); (function(a) { var C = a.addEvent, A = a.defined, G = a.each, F = a.extend, m = a.inArray, g = a.noop, k = a.pick, q = a.Point, v = a.Series, u = a.seriesType, h = a.setAnimation; u("pie", "line", { center: [null, null], clip: !1, colorByPoint: !0, dataLabels: { distance: 30, enabled: !0, formatter: function() { return this.point.isNull ? void 0 : this.point.name }, x: 0 }, ignoreHiddenPoint: !0, legendType: "point", marker: null, size: null, showInLegend: !1, slicedOffset: 10, stickyTracking: !1, tooltip: { followPointer: !0 }, borderColor: "#ffffff", borderWidth: 1, states: { hover: { brightness: .1, shadow: !1 } } }, { isCartesian: !1, requireSorting: !1, directTouch: !0, noSharedTooltip: !0, trackerGroups: ["group", "dataLabelsGroup"], axisTypes: [], pointAttribs: a.seriesTypes.column.prototype.pointAttribs, animate: function(a) { var e = this, d = e.points, c = e.startAngleRad; a || (G(d, function(a) { var b = a.graphic, d = a.shapeArgs; b && (b.attr({ r: a.startR || e.center[3] / 2, start: c, end: c }), b.animate({ r: d.r, start: d.start, end: d.end }, e.options.animation)) }), e.animate = null) }, updateTotals: function() { var a, g = 0, d = this.points, c = d.length, h, b = this.options.ignoreHiddenPoint; for (a = 0; a < c; a++) h = d[a], g += b && !h.visible ? 0 : h.isNull ? 0 : h.y; this.total = g; for (a = 0; a < c; a++) h = d[a], h.percentage = 0 < g && (h.visible || !b) ? h.y / g * 100 : 0, h.total = g }, generatePoints: function() { v.prototype.generatePoints.call(this); this.updateTotals() }, translate: function(a) { this.generatePoints(); var e = 0, d = this.options, c = d.slicedOffset, g = c + (d.borderWidth || 0), b, h, m, q = d.startAngle || 0, l = this.startAngleRad = Math.PI / 180 * (q - 90), q = (this.endAngleRad = Math.PI / 180 * (k(d.endAngle, q + 360) - 90)) - l, u = this.points, r, z = d.dataLabels.distance, d = d.ignoreHiddenPoint, v, p = u.length, E; a || (this.center = a = this.getCenter()); this.getX = function(b, c, d) { m = Math.asin(Math.min((b - a[1]) / (a[2] / 2 + d.labelDistance), 1)); return a[0] + (c ? -1 : 1) * Math.cos(m) * (a[2] / 2 + d.labelDistance) }; for (v = 0; v < p; v++) { E = u[v]; E.labelDistance = k(E.options.dataLabels && E.options.dataLabels.distance, z); this.maxLabelDistance = Math.max(this.maxLabelDistance || 0, E.labelDistance); b = l + e * q; if (!d || E.visible) e += E.percentage / 100; h = l + e * q; E.shapeType = "arc"; E.shapeArgs = { x: a[0], y: a[1], r: a[2] / 2, innerR: a[3] / 2, start: Math.round(1E3 * b) / 1E3, end: Math.round(1E3 * h) / 1E3 }; m = (h + b) / 2; m > 1.5 * Math.PI ? m -= 2 * Math.PI: m < -Math.PI / 2 && (m += 2 * Math.PI); E.slicedTranslation = { translateX: Math.round(Math.cos(m) * c), translateY: Math.round(Math.sin(m) * c) }; h = Math.cos(m) * a[2] / 2; r = Math.sin(m) * a[2] / 2; E.tooltipPos = [a[0] + .7 * h, a[1] + .7 * r]; E.half = m < -Math.PI / 2 || m > Math.PI / 2 ? 1 : 0; E.angle = m; b = Math.min(g, E.labelDistance / 5); E.labelPos = [a[0] + h + Math.cos(m) * E.labelDistance, a[1] + r + Math.sin(m) * E.labelDistance, a[0] + h + Math.cos(m) * b, a[1] + r + Math.sin(m) * b, a[0] + h, a[1] + r, 0 > E.labelDistance ? "center": E.half ? "right": "left", m] } }, drawGraph: null, drawPoints: function() { var a = this, g = a.chart.renderer, d, c, h, b, k = a.options.shadow; k && !a.shadowGroup && (a.shadowGroup = g.g("shadow").add(a.group)); G(a.points, function(e) { if (!e.isNull) { c = e.graphic; b = e.shapeArgs; d = e.getTranslate(); var m = e.shadowGroup; k && !m && (m = e.shadowGroup = g.g("shadow").add(a.shadowGroup)); m && m.attr(d); h = a.pointAttribs(e, e.selected && "select"); c ? c.setRadialReference(a.center).attr(h).animate(F(b, d)) : (e.graphic = c = g[e.shapeType](b).setRadialReference(a.center).attr(d).add(a.group), e.visible || c.attr({ visibility: "hidden" }), c.attr(h).attr({ "stroke-linejoin": "round" }).shadow(k, m)); c.addClass(e.getClassName()) } }) }, searchPoint: g, sortByAngle: function(a, g) { a.sort(function(a, c) { return void 0 !== a.angle && (c.angle - a.angle) * g }) }, drawLegendSymbol: a.LegendSymbolMixin.drawRectangle, getCenter: a.CenteredSeriesMixin.getCenter, getSymbol: g }, { init: function() { q.prototype.init.apply(this, arguments); var a = this, g; a.name = k(a.name, "Slice"); g = function(d) { a.slice("select" === d.type) }; C(a, "select", g); C(a, "unselect", g); return a }, isValid: function() { return a.isNumber(this.y, !0) && 0 <= this.y }, setVisible: function(a, g) { var d = this, c = d.series, e = c.chart, b = c.options.ignoreHiddenPoint; g = k(g, b); a !== d.visible && (d.visible = d.options.visible = a = void 0 === a ? !d.visible: a, c.options.data[m(d, c.data)] = d.options, G(["graphic", "dataLabel", "connector", "shadowGroup"], function(b) { if (d[b]) d[b][a ? "show": "hide"](!0) }), d.legendItem && e.legend.colorizeItem(d, a), a || "hover" !== d.state || d.setState(""), b && (c.isDirty = !0), g && e.redraw()) }, slice: function(a, g, d) { var c = this.series; h(d, c.chart); k(g, !0); this.sliced = this.options.sliced = A(a) ? a: !this.sliced; c.options.data[m(this, c.data)] = this.options; this.graphic.animate(this.getTranslate()); this.shadowGroup && this.shadowGroup.animate(this.getTranslate()) }, getTranslate: function() { return this.sliced ? this.slicedTranslation: { translateX: 0, translateY: 0 } }, haloPath: function(a) { var e = this.shapeArgs; return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(e.x, e.y, e.r + a, e.r + a, { innerR: this.shapeArgs.r, start: e.start, end: e.end }) } }) })(K); (function(a) { var C = a.addEvent, A = a.arrayMax, G = a.defined, F = a.each, m = a.extend, g = a.format, k = a.map, q = a.merge, v = a.noop, u = a.pick, h = a.relativeLength, e = a.Series, n = a.seriesTypes, d = a.stableSort; a.distribute = function(a, e) { function b(a, b) { return a.target - b.target } var c, g = !0, h = a, l = [], m; m = 0; for (c = a.length; c--;) m += a[c].size; if (m > e) { d(a, function(a, b) { return (b.rank || 0) - (a.rank || 0) }); for (m = c = 0; m <= e;) m += a[c].size, c++; l = a.splice(c - 1, a.length) } d(a, b); for (a = k(a, function(a) { return { size: a.size, targets: [a.target] } }); g;) { for (c = a.length; c--;) g = a[c], m = (Math.min.apply(0, g.targets) + Math.max.apply(0, g.targets)) / 2, g.pos = Math.min(Math.max(0, m - g.size / 2), e - g.size); c = a.length; for (g = !1; c--;) 0 < c && a[c - 1].pos + a[c - 1].size > a[c].pos && (a[c - 1].size += a[c].size, a[c - 1].targets = a[c - 1].targets.concat(a[c].targets), a[c - 1].pos + a[c - 1].size > e && (a[c - 1].pos = e - a[c - 1].size), a.splice(c, 1), g = !0) } c = 0; F(a, function(a) { var b = 0; F(a.targets, function() { h[c].pos = a.pos + b; b += h[c].size; c++ }) }); h.push.apply(h, l); d(h, b) }; e.prototype.drawDataLabels = function() { var c = this, d = c.options, b = d.dataLabels, e = c.points, h, k, l = c.hasRendered || 0, m, r, n = u(b.defer, !!d.animation), v = c.chart.renderer; if (b.enabled || c._hasPointLabels) c.dlProcessOptions && c.dlProcessOptions(b), r = c.plotGroup("dataLabelsGroup", "data-labels", n && !l ? "hidden": "visible", b.zIndex || 6), n && (r.attr({ opacity: +l }), l || C(c, "afterAnimate", function() { c.visible && r.show(!0); r[d.animation ? "animate": "attr"]({ opacity: 1 }, { duration: 200 }) })), k = b, F(e, function(e) { var l, p = e.dataLabel, n, f, t = e.connector, w = !p, z; h = e.dlOptions || e.options && e.options.dataLabels; if (l = u(h && h.enabled, k.enabled) && null !== e.y) b = q(k, h), n = e.getLabelConfig(), m = b.format ? g(b.format, n) : b.formatter.call(n, b), z = b.style, n = b.rotation, z.color = u(b.color, z.color, c.color, "#000000"), "contrast" === z.color && (e.contrastColor = v.getContrast(e.color || c.color), z.color = b.inside || 0 > u(e.labelDistance, b.distance) || d.stacking ? e.contrastColor: "#000000"), d.cursor && (z.cursor = d.cursor), f = { fill: b.backgroundColor, stroke: b.borderColor, "stroke-width": b.borderWidth, r: b.borderRadius || 0, rotation: n, padding: b.padding, zIndex: 1 }, a.objectEach(f, function(a, b) { void 0 === a && delete f[b] }); ! p || l && G(m) ? l && G(m) && (p ? f.text = m: (p = e.dataLabel = v[n ? "text": "label"](m, 0, -9999, b.shape, null, null, b.useHTML, null, "data-label"), p.addClass("highcharts-data-label-color-" + e.colorIndex + " " + (b.className || "") + (b.useHTML ? "highcharts-tracker": ""))), p.attr(f), p.css(z).shadow(b.shadow), p.added || p.add(r), c.alignDataLabel(e, p, b, null, w)) : (e.dataLabel = p = p.destroy(), t && (e.connector = t.destroy())) }) }; e.prototype.alignDataLabel = function(a, d, b, e, g) { var c = this.chart, h = c.inverted, k = u(a.plotX, -9999), r = u(a.plotY, -9999), n = d.getBBox(), q, p = b.rotation, w = b.align, v = this.visible && (a.series.forceDL || c.isInsidePlot(k, Math.round(r), h) || e && c.isInsidePlot(k, h ? e.x + 1 : e.y + e.height - 1, h)), y = "justify" === u(b.overflow, "justify"); if (v && (q = b.style.fontSize, q = c.renderer.fontMetrics(q, d).b, e = m({ x: h ? c.plotWidth - r: k, y: Math.round(h ? c.plotHeight - k: r), width: 0, height: 0 }, e), m(b, { width: n.width, height: n.height }), p ? (y = !1, k = c.renderer.rotCorr(q, p), k = { x: e.x + b.x + e.width / 2 + k.x, y: e.y + b.y + { top: 0, middle: .5, bottom: 1 } [b.verticalAlign] * e.height }, d[g ? "attr": "animate"](k).attr({ align: w }), r = (p + 720) % 360, r = 180 < r && 360 > r, "left" === w ? k.y -= r ? n.height: 0 : "center" === w ? (k.x -= n.width / 2, k.y -= n.height / 2) : "right" === w && (k.x -= n.width, k.y -= r ? 0 : n.height)) : (d.align(b, null, e), k = d.alignAttr), y ? a.isLabelJustified = this.justifyDataLabel(d, b, k, n, e, g) : u(b.crop, !0) && (v = c.isInsidePlot(k.x, k.y) && c.isInsidePlot(k.x + n.width, k.y + n.height)), b.shape && !p)) d[g ? "attr": "animate"]({ anchorX: h ? c.plotWidth - a.plotY: a.plotX, anchorY: h ? c.plotHeight - a.plotX: a.plotY }); v || (d.attr({ y: -9999 }), d.placed = !1) }; e.prototype.justifyDataLabel = function(a, d, b, e, g, h) { var c = this.chart, k = d.align, m = d.verticalAlign, n, q, p = a.box ? 0 : a.padding || 0; n = b.x + p; 0 > n && ("right" === k ? d.align = "left": d.x = -n, q = !0); n = b.x + e.width - p; n > c.plotWidth && ("left" === k ? d.align = "right": d.x = c.plotWidth - n, q = !0); n = b.y + p; 0 > n && ("bottom" === m ? d.verticalAlign = "top": d.y = -n, q = !0); n = b.y + e.height - p; n > c.plotHeight && ("top" === m ? d.verticalAlign = "bottom": d.y = c.plotHeight - n, q = !0); q && (a.placed = !h, a.align(d, null, g)); return q }; n.pie && (n.pie.prototype.drawDataLabels = function() { var c = this, d = c.data, b, g = c.chart, h = c.options.dataLabels, k = u(h.connectorPadding, 10), l = u(h.connectorWidth, 1), m = g.plotWidth, r = g.plotHeight, n, q = c.center, p = q[2] / 2, v = q[1], C, L, f, t, K = [[], []], J, N, O, P, x = [0, 0, 0, 0]; c.visible && (h.enabled || c._hasPointLabels) && (F(d, function(a) { a.dataLabel && a.visible && a.dataLabel.shortened && (a.dataLabel.attr({ width: "auto" }).css({ width: "auto", textOverflow: "clip" }), a.dataLabel.shortened = !1) }), e.prototype.drawDataLabels.apply(c), F(d, function(a) { a.dataLabel && a.visible && (K[a.half].push(a), a.dataLabel._pos = null) }), F(K, function(d, e) { var l, n, u = d.length, w = [], z; if (u) for (c.sortByAngle(d, e - .5), 0 < c.maxLabelDistance && (l = Math.max(0, v - p - c.maxLabelDistance), n = Math.min(v + p + c.maxLabelDistance, g.plotHeight), F(d, function(a) { 0 < a.labelDistance && a.dataLabel && (a.top = Math.max(0, v - p - a.labelDistance), a.bottom = Math.min(v + p + a.labelDistance, g.plotHeight), z = a.dataLabel.getBBox().height || 21, a.positionsIndex = w.push({ target: a.labelPos[1] - a.top + z / 2, size: z, rank: a.y }) - 1) }), a.distribute(w, n + z - l)), P = 0; P < u; P++) b = d[P], n = b.positionsIndex, f = b.labelPos, C = b.dataLabel, O = !1 === b.visible ? "hidden": "inherit", l = f[1], w && G(w[n]) ? void 0 === w[n].pos ? O = "hidden": (t = w[n].size, N = b.top + w[n].pos) : N = l, delete b.positionIndex, J = h.justify ? q[0] + (e ? -1 : 1) * (p + b.labelDistance) : c.getX(N < b.top + 2 || N > b.bottom - 2 ? l: N, e, b), C._attr = { visibility: O, align: f[6] }, C._pos = { x: J + h.x + ({ left: k, right: -k } [f[6]] || 0), y: N + h.y - 10 }, f.x = J, f.y = N, L = C.getBBox().width, l = null, J - L < k ? (l = Math.round(L - J + k), x[3] = Math.max(l, x[3])) : J + L > m - k && (l = Math.round(J + L - m + k), x[1] = Math.max(l, x[1])), 0 > N - t / 2 ? x[0] = Math.max(Math.round( - N + t / 2), x[0]) : N + t / 2 > r && (x[2] = Math.max(Math.round(N + t / 2 - r), x[2])), C.sideOverflow = l }), 0 === A(x) || this.verifyDataLabelOverflow(x)) && (this.placeDataLabels(), l && F(this.points, function(a) { var b; n = a.connector; if ((C = a.dataLabel) && C._pos && a.visible && 0 < a.labelDistance) { O = C._attr.visibility; if (b = !n) a.connector = n = g.renderer.path().addClass("highcharts-data-label-connector highcharts-color-" + a.colorIndex).add(c.dataLabelsGroup), n.attr({ "stroke-width": l, stroke: h.connectorColor || a.color || "#666666" }); n[b ? "attr": "animate"]({ d: c.connectorPath(a.labelPos) }); n.attr("visibility", O) } else n && (a.connector = n.destroy()) })) }, n.pie.prototype.connectorPath = function(a) { var c = a.x, b = a.y; return u(this.options.dataLabels.softConnector, !0) ? ["M", c + ("left" === a[6] ? 5 : -5), b, "C", c, b, 2 * a[2] - a[4], 2 * a[3] - a[5], a[2], a[3], "L", a[4], a[5]] : ["M", c + ("left" === a[6] ? 5 : -5), b, "L", a[2], a[3], "L", a[4], a[5]] }, n.pie.prototype.placeDataLabels = function() { F(this.points, function(a) { var c = a.dataLabel; c && a.visible && ((a = c._pos) ? (c.sideOverflow && (c._attr.width = c.getBBox().width - c.sideOverflow, c.css({ width: c._attr.width + "px", textOverflow: "ellipsis" }), c.shortened = !0), c.attr(c._attr), c[c.moved ? "animate": "attr"](a), c.moved = !0) : c && c.attr({ y: -9999 })) }, this) }, n.pie.prototype.alignDataLabel = v, n.pie.prototype.verifyDataLabelOverflow = function(a) { var c = this.center, b = this.options, d = b.center, e = b.minSize || 80, g, l = null !== b.size; l || (null !== d[0] ? g = Math.max(c[2] - Math.max(a[1], a[3]), e) : (g = Math.max(c[2] - a[1] - a[3], e), c[0] += (a[3] - a[1]) / 2), null !== d[1] ? g = Math.max(Math.min(g, c[2] - Math.max(a[0], a[2])), e) : (g = Math.max(Math.min(g, c[2] - a[0] - a[2]), e), c[1] += (a[0] - a[2]) / 2), g < c[2] ? (c[2] = g, c[3] = Math.min(h(b.innerSize || 0, g), g), this.translate(c), this.drawDataLabels && this.drawDataLabels()) : l = !0); return l }); n.column && (n.column.prototype.alignDataLabel = function(a, d, b, g, h) { var c = this.chart.inverted, l = a.series, k = a.dlBox || a.shapeArgs, m = u(a.below, a.plotY > u(this.translatedThreshold, l.yAxis.len)), n = u(b.inside, !!this.options.stacking); k && (g = q(k), 0 > g.y && (g.height += g.y, g.y = 0), k = g.y + g.height - l.yAxis.len, 0 < k && (g.height -= k), c && (g = { x: l.yAxis.len - g.y - g.height, y: l.xAxis.len - g.x - g.width, width: g.height, height: g.width }), n || (c ? (g.x += m ? 0 : g.width, g.width = 0) : (g.y += m ? g.height: 0, g.height = 0))); b.align = u(b.align, !c || n ? "center": m ? "right": "left"); b.verticalAlign = u(b.verticalAlign, c || n ? "middle": m ? "top": "bottom"); e.prototype.alignDataLabel.call(this, a, d, b, g, h); a.isLabelJustified && a.contrastColor && a.dataLabel.css({ color: a.contrastColor }) }) })(K); (function(a) { var C = a.Chart, A = a.each, G = a.pick, F = a.addEvent; C.prototype.callbacks.push(function(a) { function g() { var g = []; A(a.series || [], function(a) { var k = a.options.dataLabels, m = a.dataLabelCollections || ["dataLabel"]; (k.enabled || a._hasPointLabels) && !k.allowOverlap && a.visible && A(m, function(h) { A(a.points, function(a) { a[h] && (a[h].labelrank = G(a.labelrank, a.shapeArgs && a.shapeArgs.height), g.push(a[h])) }) }) }); a.hideOverlappingLabels(g) } g(); F(a, "redraw", g) }); C.prototype.hideOverlappingLabels = function(a) { var g = a.length, k, m, v, u, h, e, n, d, c, w = function(a, c, d, e, g, h, k, m) { return ! (g > a + d || g + k < a || h > c + e || h + m < c) }; for (m = 0; m < g; m++) if (k = a[m]) k.oldOpacity = k.opacity, k.newOpacity = 1; a.sort(function(a, c) { return (c.labelrank || 0) - (a.labelrank || 0) }); for (m = 0; m < g; m++) for (v = a[m], k = m + 1; k < g; ++k) if (u = a[k], v && u && v !== u && v.placed && u.placed && 0 !== v.newOpacity && 0 !== u.newOpacity && (h = v.alignAttr, e = u.alignAttr, n = v.parentGroup, d = u.parentGroup, c = 2 * (v.box ? 0 : v.padding), h = w(h.x + n.translateX, h.y + n.translateY, v.width - c, v.height - c, e.x + d.translateX, e.y + d.translateY, u.width - c, u.height - c)))(v.labelrank < u.labelrank ? v: u).newOpacity = 0; A(a, function(a) { var b, c; a && (c = a.newOpacity, a.oldOpacity !== c && a.placed && (c ? a.show(!0) : b = function() { a.hide() }, a.alignAttr.opacity = c, a[a.isOld ? "animate": "attr"](a.alignAttr, null, b)), a.isOld = !0) }) } })(K); (function(a) { var C = a.addEvent, A = a.Chart, G = a.createElement, F = a.css, m = a.defaultOptions, g = a.defaultPlotOptions, k = a.each, q = a.extend, v = a.fireEvent, u = a.hasTouch, h = a.inArray, e = a.isObject, n = a.Legend, d = a.merge, c = a.pick, w = a.Point, b = a.Series, y = a.seriesTypes, D = a.svg, H; H = a.TrackerMixin = { drawTrackerPoint: function() { var a = this, b = a.chart.pointer, c = function(a) { var c = b.getPointFromEvent(a); void 0 !== c && (b.isDirectTouch = !0, c.onMouseOver(a)) }; k(a.points, function(a) { a.graphic && (a.graphic.element.point = a); a.dataLabel && (a.dataLabel.div ? a.dataLabel.div.point = a: a.dataLabel.element.point = a) }); a._hasTracking || (k(a.trackerGroups, function(d) { if (a[d]) { a[d].addClass("highcharts-tracker").on("mouseover", c).on("mouseout", function(a) { b.onTrackerMouseOut(a) }); if (u) a[d].on("touchstart", c); a.options.cursor && a[d].css(F).css({ cursor: a.options.cursor }) } }), a._hasTracking = !0) }, drawTrackerGraph: function() { var a = this, b = a.options, c = b.trackByArea, d = [].concat(c ? a.areaPath: a.graphPath), e = d.length, g = a.chart, h = g.pointer, m = g.renderer, n = g.options.tooltip.snap, f = a.tracker, q, v = function() { if (g.hoverSeries !== a) a.onMouseOver() }, w = "rgba(192,192,192," + (D ? .0001 : .002) + ")"; if (e && !c) for (q = e + 1; q--;)"M" === d[q] && d.splice(q + 1, 0, d[q + 1] - n, d[q + 2], "L"), (q && "M" === d[q] || q === e) && d.splice(q, 0, "L", d[q - 2] + n, d[q - 1]); f ? f.attr({ d: d }) : a.graph && (a.tracker = m.path(d).attr({ "stroke-linejoin": "round", visibility: a.visible ? "visible": "hidden", stroke: w, fill: c ? w: "none", "stroke-width": a.graph.strokeWidth() + (c ? 0 : 2 * n), zIndex: 2 }).add(a.group), k([a.tracker, a.markerGroup], function(a) { a.addClass("highcharts-tracker").on("mouseover", v).on("mouseout", function(a) { h.onTrackerMouseOut(a) }); b.cursor && a.css({ cursor: b.cursor }); if (u) a.on("touchstart", v) })) } }; y.column && (y.column.prototype.drawTracker = H.drawTrackerPoint); y.pie && (y.pie.prototype.drawTracker = H.drawTrackerPoint); y.scatter && (y.scatter.prototype.drawTracker = H.drawTrackerPoint); q(n.prototype, { setItemEvents: function(a, b, c) { var e = this, g = e.chart.renderer.boxWrapper, h = "highcharts-legend-" + (a.series ? "point": "series") + "-active"; (c ? b: a.legendGroup).on("mouseover", function() { a.setState("hover"); g.addClass(h); b.css(e.options.itemHoverStyle) }).on("mouseout", function() { b.css(d(a.visible ? e.itemStyle: e.itemHiddenStyle)); g.removeClass(h); a.setState() }).on("click", function(b) { var c = function() { a.setVisible && a.setVisible() }; b = { browserEvent: b }; a.firePointEvent ? a.firePointEvent("legendItemClick", b, c) : v(a, "legendItemClick", b, c) }) }, createCheckboxForItem: function(a) { a.checkbox = G("input", { type: "checkbox", checked: a.selected, defaultChecked: a.selected }, this.options.itemCheckboxStyle, this.chart.container); C(a.checkbox, "click", function(b) { v(a.series || a, "checkboxClick", { checked: b.target.checked, item: a }, function() { a.select() }) }) } }); m.legend.itemStyle.cursor = "pointer"; q(A.prototype, { showResetZoom: function() { var a = this, b = m.lang, c = a.options.chart.resetZoomButton, d = c.theme, e = d.states, g = "chart" === c.relativeTo ? null: "plotBox"; this.resetZoomButton = a.renderer.button(b.resetZoom, null, null, function() { a.zoomOut() }, d, e && e.hover).attr({ align: c.position.align, title: b.resetZoomTitle }).addClass("highcharts-reset-zoom").add().align(c.position, !1, g) }, zoomOut: function() { var a = this; v(a, "selection", { resetSelection: !0 }, function() { a.zoom() }) }, zoom: function(a) { var b, d = this.pointer, g = !1, h; ! a || a.resetSelection ? k(this.axes, function(a) { b = a.zoom() }) : k(a.xAxis.concat(a.yAxis), function(a) { var c = a.axis; d[c.isXAxis ? "zoomX": "zoomY"] && (b = c.zoom(a.min, a.max), c.displayBtn && (g = !0)) }); h = this.resetZoomButton; g && !h ? this.showResetZoom() : !g && e(h) && (this.resetZoomButton = h.destroy()); b && this.redraw(c(this.options.chart.animation, a && a.animation, 100 > this.pointCount)) }, pan: function(a, b) { var c = this, d = c.hoverPoints, e; d && k(d, function(a) { a.setState() }); k("xy" === b ? [1, 0] : [1], function(b) { b = c[b ? "xAxis": "yAxis"][0]; var d = b.horiz, g = a[d ? "chartX": "chartY"], d = d ? "mouseDownX": "mouseDownY", h = c[d], f = (b.pointRange || 0) / 2, l = b.getExtremes(), k = b.toValue(h - g, !0) + f, f = b.toValue(h + b.len - g, !0) - f, m = f < k, h = m ? f: k, k = m ? k: f, f = Math.min(l.dataMin, b.toValue(b.toPixels(l.min) - b.minPixelPadding)), m = Math.max(l.dataMax, b.toValue(b.toPixels(l.max) + b.minPixelPadding)), n; n = f - h; 0 < n && (k += n, h = f); n = k - m; 0 < n && (k = m, h -= n); b.series.length && h !== l.min && k !== l.max && (b.setExtremes(h, k, !1, !1, { trigger: "pan" }), e = !0); c[d] = g }); e && c.redraw(!1); F(c.container, { cursor: "move" }) } }); q(w.prototype, { select: function(a, b) { var d = this, e = d.series, g = e.chart; a = c(a, !d.selected); d.firePointEvent(a ? "select": "unselect", { accumulate: b }, function() { d.selected = d.options.selected = a; e.options.data[h(d, e.data)] = d.options; d.setState(a && "select"); b || k(g.getSelectedPoints(), function(a) { a.selected && a !== d && (a.selected = a.options.selected = !1, e.options.data[h(a, e.data)] = a.options, a.setState(""), a.firePointEvent("unselect")) }) }) }, onMouseOver: function(a) { var b = this.series.chart, c = b.pointer; a = a ? c.normalize(a) : c.getChartCoordinatesFromPoint(this, b.inverted); c.runPointActions(a, this) }, onMouseOut: function() { var a = this.series.chart; this.firePointEvent("mouseOut"); k(a.hoverPoints || [], function(a) { a.setState() }); a.hoverPoints = a.hoverPoint = null }, importEvents: function() { if (!this.hasImportedEvents) { var b = this, c = d(b.series.options.point, b.options).events; b.events = c; a.objectEach(c, function(a, c) { C(b, c, a) }); this.hasImportedEvents = !0 } }, setState: function(a, b) { var d = Math.floor(this.plotX), e = this.plotY, h = this.series, l = h.options.states[a] || {}, k = g[h.type].marker && h.options.marker, m = k && !1 === k.enabled, n = k && k.states && k.states[a] || {}, f = !1 === n.enabled, t = h.stateMarkerGraphic, u = this.marker || {}, v = h.chart, w = h.halo, y, B = k && h.markerAttribs; a = a || ""; if (! (a === this.state && !b || this.selected && "select" !== a || !1 === l.enabled || a && (f || m && !1 === n.enabled) || a && u.states && u.states[a] && !1 === u.states[a].enabled)) { B && (y = h.markerAttribs(this, a)); if (this.graphic) this.state && this.graphic.removeClass("highcharts-point-" + this.state), a && this.graphic.addClass("highcharts-point-" + a), this.graphic.attr(h.pointAttribs(this, a)), y && this.graphic.animate(y, c(v.options.chart.animation, n.animation, k.animation)), t && t.hide(); else { if (a && n) { k = u.symbol || h.symbol; t && t.currentSymbol !== k && (t = t.destroy()); if (t) t[b ? "animate": "attr"]({ x: y.x, y: y.y }); else k && (h.stateMarkerGraphic = t = v.renderer.symbol(k, y.x, y.y, y.width, y.height).add(h.markerGroup), t.currentSymbol = k); t && t.attr(h.pointAttribs(this, a)) } t && (t[a && v.isInsidePlot(d, e, v.inverted) ? "show": "hide"](), t.element.point = this) } (d = l.halo) && d.size ? (w || (h.halo = w = v.renderer.path().add((this.graphic || t).parentGroup)), w[b ? "animate": "attr"]({ d: this.haloPath(d.size) }), w.attr({ "class": "highcharts-halo highcharts-color-" + c(this.colorIndex, h.colorIndex) }), w.point = this, w.attr(q({ fill: this.color || h.color, "fill-opacity": d.opacity, zIndex: -1 }, d.attributes))) : w && w.point && w.point.haloPath && w.animate({ d: w.point.haloPath(0) }); this.state = a } }, haloPath: function(a) { return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX) - a, this.plotY - a, 2 * a, 2 * a) } }); q(b.prototype, { onMouseOver: function() { var a = this.chart, b = a.hoverSeries; if (b && b !== this) b.onMouseOut(); this.options.events.mouseOver && v(this, "mouseOver"); this.setState("hover"); a.hoverSeries = this }, onMouseOut: function() { var a = this.options, b = this.chart, c = b.tooltip, d = b.hoverPoint; b.hoverSeries = null; if (d) d.onMouseOut(); this && a.events.mouseOut && v(this, "mouseOut"); ! c || this.stickyTracking || c.shared && !this.noSharedTooltip || c.hide(); this.setState() }, setState: function(a) { var b = this, d = b.options, e = b.graph, g = d.states, h = d.lineWidth, d = 0; a = a || ""; if (b.state !== a && (k([b.group, b.markerGroup, b.dataLabelsGroup], function(c) { c && (b.state && c.removeClass("highcharts-series-" + b.state), a && c.addClass("highcharts-series-" + a)) }), b.state = a, !g[a] || !1 !== g[a].enabled) && (a && (h = g[a].lineWidth || h + (g[a].lineWidthPlus || 0)), e && !e.dashstyle)) for (h = { "stroke-width": h }, e.animate(h, c(b.chart.options.chart.animation, g[a] && g[a].animation)); b["zone-graph-" + d];) b["zone-graph-" + d].attr(h), d += 1 }, setVisible: function(a, b) { var c = this, d = c.chart, e = c.legendItem, g, h = d.options.chart.ignoreHiddenSeries, l = c.visible; g = (c.visible = a = c.options.visible = c.userOptions.visible = void 0 === a ? !l: a) ? "show": "hide"; k(["group", "dataLabelsGroup", "markerGroup", "tracker", "tt"], function(a) { if (c[a]) c[a][g]() }); if (d.hoverSeries === c || (d.hoverPoint && d.hoverPoint.series) === c) c.onMouseOut(); e && d.legend.colorizeItem(c, a); c.isDirty = !0; c.options.stacking && k(d.series, function(a) { a.options.stacking && a.visible && (a.isDirty = !0) }); k(c.linkedSeries, function(b) { b.setVisible(a, !1) }); h && (d.isDirtyBox = !0); ! 1 !== b && d.redraw(); v(c, g) }, show: function() { this.setVisible(!0) }, hide: function() { this.setVisible(!1) }, select: function(a) { this.selected = a = void 0 === a ? !this.selected: a; this.checkbox && (this.checkbox.checked = a); v(this, a ? "select": "unselect") }, drawTracker: H.drawTrackerGraph }) })(K); (function(a) { var C = a.Chart, A = a.each, G = a.inArray, F = a.isArray, m = a.isObject, g = a.pick, k = a.splat; C.prototype.setResponsive = function(g) { var k = this.options.responsive, m = [], h = this.currentResponsive; k && k.rules && A(k.rules, function(e) { void 0 === e._id && (e._id = a.uniqueKey()); this.matchResponsiveRule(e, m, g) }, this); var e = a.merge.apply(0, a.map(m, function(e) { return a.find(k.rules, function(a) { return a._id === e }).chartOptions })), m = m.toString() || void 0; m !== (h && h.ruleIds) && (h && this.update(h.undoOptions, g), m ? (this.currentResponsive = { ruleIds: m, mergedOptions: e, undoOptions: this.currentOptions(e) }, this.update(e, g)) : this.currentResponsive = void 0) }; C.prototype.matchResponsiveRule = function(a, k) { var m = a.condition; (m.callback || function() { return this.chartWidth <= g(m.maxWidth, Number.MAX_VALUE) && this.chartHeight <= g(m.maxHeight, Number.MAX_VALUE) && this.chartWidth >= g(m.minWidth, 0) && this.chartHeight >= g(m.minHeight, 0) }).call(this) && k.push(a._id) }; C.prototype.currentOptions = function(g) { function q(g, e, n, d) { var c; a.objectEach(g, function(a, b) { if (!d && -1 < G(b, ["series", "xAxis", "yAxis"])) for (g[b] = k(g[b]), n[b] = [], c = 0; c < g[b].length; c++) e[b][c] && (n[b][c] = {}, q(a[c], e[b][c], n[b][c], d + 1)); else m(a) ? (n[b] = F(a) ? [] : {}, q(a, e[b] || {}, n[b], d + 1)) : n[b] = e[b] || null }) } var u = {}; q(g, this.options, u, 0); return u } })(K); return K });
42.764462
610
0.360045
6850491536fac8d276ebee4d7acaf45db55ef9e9
231
js
JavaScript
03-3-pagina-de-descricao-do-curso/public/js/script.js
martins-rafael/launchbase-desafios-03
50090c474a52d81d99d80b6dabd080b49f0807b2
[ "MIT" ]
null
null
null
03-3-pagina-de-descricao-do-curso/public/js/script.js
martins-rafael/launchbase-desafios-03
50090c474a52d81d99d80b6dabd080b49f0807b2
[ "MIT" ]
null
null
null
03-3-pagina-de-descricao-do-curso/public/js/script.js
martins-rafael/launchbase-desafios-03
50090c474a52d81d99d80b6dabd080b49f0807b2
[ "MIT" ]
null
null
null
const cards = document.querySelectorAll('.card-item') for (let card of cards) { card.addEventListener('click', function(){ const curso = card.getAttribute('id') window.location.href=`/courses/${curso}` }) }
28.875
53
0.649351
6850ebd5c1d031e579c3147348f9196beecc1cf2
74
js
JavaScript
lint-staged.config.js
ravnhq/mgdg
5c323c49adc73f343a0bfd8887e53e186cbea198
[ "MIT" ]
22
2021-05-20T15:28:00.000Z
2022-03-09T14:52:05.000Z
lint-staged.config.js
ravnhq/mgdg
5c323c49adc73f343a0bfd8887e53e186cbea198
[ "MIT" ]
21
2021-05-14T18:23:36.000Z
2022-03-29T01:39:13.000Z
lint-staged.config.js
ravnhq/mimicql
5c323c49adc73f343a0bfd8887e53e186cbea198
[ "MIT" ]
4
2020-09-09T16:24:57.000Z
2021-01-11T22:09:34.000Z
module.exports = { "*.{ts,tsx,js,jsx,json,md}": ["prettier --write"], }
18.5
52
0.567568
68511f2830090c9ee9568584f13dbc9bb3e4c595
113
js
JavaScript
src/wrapper/index.js
nomanmajeed/noman_portfolio
5a29ffc87bd579abff0ac3a0e3d029cf28f18f8b
[ "MIT" ]
null
null
null
src/wrapper/index.js
nomanmajeed/noman_portfolio
5a29ffc87bd579abff0ac3a0e3d029cf28f18f8b
[ "MIT" ]
null
null
null
src/wrapper/index.js
nomanmajeed/noman_portfolio
5a29ffc87bd579abff0ac3a0e3d029cf28f18f8b
[ "MIT" ]
null
null
null
import AppWrap from './AppWrap'; import MotionWrap from './MotionWrap'; export { AppWrap, MotionWrap, };
12.555556
38
0.681416
6851f6b1ec6cd781913c0f83c594bfe6a0a1ae7f
920
js
JavaScript
VtNetCore.JavaScript.Tests/Tests/Vt100/DA1.js
oising/VtNetCore
a08c6dc32b1a340c579df04ddff8754964bd135d
[ "MIT" ]
null
null
null
VtNetCore.JavaScript.Tests/Tests/Vt100/DA1.js
oising/VtNetCore
a08c6dc32b1a340c579df04ddff8754964bd135d
[ "MIT" ]
null
null
null
VtNetCore.JavaScript.Tests/Tests/Vt100/DA1.js
oising/VtNetCore
a08c6dc32b1a340c579df04ddff8754964bd135d
[ "MIT" ]
null
null
null
function getTestInformation() { return { "name": "DA1—Primary Device Attributes", "features": "DA1", "links": [ "https://vt100.net/docs/vt510-rm/DA1.html" ], "authors": [ "Darren Starr <submux@hotmail.com>" ], "notes": "" }; } function executeTest() { log.info("Test: " + getTestInformation().name); let curses = new Curses(); var terminal = host.newObj(Terminal); terminal.resizeView(80, 25); let ok = true; var seq = curses.DA1().getData(); terminal.push(seq); var b = terminal.getSendBuffer(); var re = /<esc>\[\?64;(\d+;{1,3})*\d{1,3}c/; var m = re.exec(b); if (m.length > 0) log.debug("Resulting buffer is valid: " + b); else { log.debug("Resulting buffer is invalid: " + b); ok = false; } log.status("Passed?: " + ok); return ok; }
21.395349
55
0.519565
6852a997729c26b7e2346e653e933fa8af46007b
492
js
JavaScript
examples/jk/parse/add-version.js
justkidding-config/jk
674084c9f8aedefc2dd6cc40ef1b15e241dffef0
[ "Apache-2.0" ]
373
2019-01-26T22:13:22.000Z
2022-03-30T08:24:14.000Z
examples/jk/parse/add-version.js
pecigonzalo/jk
674084c9f8aedefc2dd6cc40ef1b15e241dffef0
[ "Apache-2.0" ]
199
2018-12-18T12:44:10.000Z
2021-11-15T14:33:11.000Z
examples/jk/parse/add-version.js
pecigonzalo/jk
674084c9f8aedefc2dd6cc40ef1b15e241dffef0
[ "Apache-2.0" ]
27
2019-02-12T15:04:05.000Z
2021-08-20T16:12:21.000Z
import { parse, stringify, Format } from '@jkcfg/std'; import { merge } from '@jkcfg/std/merge'; // We're going to extract embedded JSON from a YAML resource, alter // it, then reconstruct the resource. export default function addversion(resource) { const { data, ...rest } = resource; const inConfig = parse(data['config.json'], Format.JSON); const outConfig = merge(inConfig, { version: 2 }); data['config.json'] = stringify(outConfig, Format.JSON); return { data, ...rest }; }
35.142857
67
0.689024
6852e8f38269c2fad485102208d36fafbaad8bef
126
js
JavaScript
src/pages/bio/Bio.js
hinzed1127/fayraysite
10f879cc5de9e4c0145f6d1f18b85a9b5542836d
[ "MIT" ]
null
null
null
src/pages/bio/Bio.js
hinzed1127/fayraysite
10f879cc5de9e4c0145f6d1f18b85a9b5542836d
[ "MIT" ]
null
null
null
src/pages/bio/Bio.js
hinzed1127/fayraysite
10f879cc5de9e4c0145f6d1f18b85a9b5542836d
[ "MIT" ]
null
null
null
import React from 'react'; export default function Bio() { return ( <div> this some shit about the band. </div> ); }
14
33
0.634921
685359abf435cb0f191b7335189548605939699c
705
js
JavaScript
test/spa/runner.js
smart-table/smart-table-vue
551aae332d2cdef2524c3bbc8a61b94ce024daee
[ "MIT" ]
13
2017-05-19T14:16:36.000Z
2021-11-05T09:16:09.000Z
test/spa/runner.js
smart-table/smart-table-vue
551aae332d2cdef2524c3bbc8a61b94ce024daee
[ "MIT" ]
7
2017-05-25T20:56:09.000Z
2020-12-11T00:43:11.000Z
test/spa/runner.js
smart-table/smart-table-vue
551aae332d2cdef2524c3bbc8a61b94ce024daee
[ "MIT" ]
4
2018-01-20T18:01:04.000Z
2019-05-21T23:23:08.000Z
const puppeteer = require('puppeteer-core'); const which = require('which'); const chromiumPath = which.sync('chromium-browser'); (async () => { const browser = await puppeteer.launch({ product: 'chrome', executablePath: chromiumPath, }); const page = await browser.newPage(); const forceCloseTimer = setTimeout(() => { browser.close(); }, 60000); page.on('console', msg => { const text = msg.text(); console.log(text); if (/^# failure:/u.test(text)) { clearTimeout(forceCloseTimer); browser.close(); } }); await page.goto(`file://${__dirname}/index.html`, { timeout: 0 }); })();
27.115385
55
0.558865
6853d59c33a515d40cf669e3fdf486ce5b7bc9ed
906
js
JavaScript
src/pages/who-we-help.js
Esotastic/abc-cares
5a163290b84e0b4833cedb8c206a6e40b8759cbc
[ "Apache-2.0" ]
null
null
null
src/pages/who-we-help.js
Esotastic/abc-cares
5a163290b84e0b4833cedb8c206a6e40b8759cbc
[ "Apache-2.0" ]
null
null
null
src/pages/who-we-help.js
Esotastic/abc-cares
5a163290b84e0b4833cedb8c206a6e40b8759cbc
[ "Apache-2.0" ]
null
null
null
import React from 'react' import Layout from '../components/layout' import styled, {css} from "styled-components"; const HelpWrapper = styled.div` padding-top: 2%; padding-bottom: 5%; text-align:center; ` const HelpedTile = styled.div` width: 30%; display: inline-block; margin: auto; padding: .5%; transition: all 0.5s; transition-duration: 0.5s; &:hover { background-color: blue; opacity: 0; } @media (max-width: 700px) { width: 100%; } ` const HelpedPage = () => ( <Layout> <HelpWrapper> <h1>Who We've Helped</h1> <HelpedTile> <img src="https://i.imgur.com/xJWrkOC.jpg"></img> </HelpedTile> <HelpedTile> <img src="https://i.imgur.com/xJWrkOC.jpg"></img> </HelpedTile> <HelpedTile> <img src="https://i.imgur.com/xJWrkOC.jpg"></img> </HelpedTile> </HelpWrapper> </Layout> ); export default HelpedPage;
20.133333
55
0.620309
6854048040d6f64c1e213d9239c5a438611cca8a
589
js
JavaScript
client/post/PostList.js
xhrsteven/Eyepetizer-react-app
1857ead3c356d115a585d130c95123b2c0eaf115
[ "MIT" ]
null
null
null
client/post/PostList.js
xhrsteven/Eyepetizer-react-app
1857ead3c356d115a585d130c95123b2c0eaf115
[ "MIT" ]
null
null
null
client/post/PostList.js
xhrsteven/Eyepetizer-react-app
1857ead3c356d115a585d130c95123b2c0eaf115
[ "MIT" ]
null
null
null
import React, {Component} from 'react' import PropTypes from 'prop-types' import {withStyles} from 'material-ui/styles' import Post from './Post' class PostList extends Component { render() { return ( <div style={{ marginTop: '24px', maxHeight: '100%', overflow: 'auto'}}> {this.props.posts.map((item, i) => { return <Post post={item} key={i} onRemove={this.props.removeUpdate}/> }) } </div> ) } } PostList.propTypes = { posts: PropTypes.array.isRequired, removeUpdate: PropTypes.func.isRequired } export default PostList
25.608696
81
0.636672
6854200f3c3b910dddb4e9165dceaf7c244279f1
235
js
JavaScript
example.js
vincentgor/node-js2json
348fa4532e8c921f8966f59217ef9cb743b43343
[ "MIT" ]
3
2018-11-20T04:10:31.000Z
2022-03-07T14:27:25.000Z
example.js
vincentgor/node-js2json
348fa4532e8c921f8966f59217ef9cb743b43343
[ "MIT" ]
null
null
null
example.js
vincentgor/node-js2json
348fa4532e8c921f8966f59217ef9cb743b43343
[ "MIT" ]
null
null
null
'use strict'; var util = require('./'); // util.js2json('./package1.js', './package1.json', function () { // console.log('finished'); // }); util.json2js('./package1.json', './index1.js', function () { console.log('finished'); });
21.363636
65
0.591489
68546853f86d762ed402d8db4fc17e0dc9a8c5ba
1,450
js
JavaScript
examples/sse/server.js
RasCarlito/choo
47617485906587d0e7a09dc6e3d57e01d5c93239
[ "MIT" ]
1
2021-01-05T16:43:21.000Z
2021-01-05T16:43:21.000Z
examples/sse/server.js
zeke/choo
12d4ce020e0a844def146c42dac5c36f909fbfc6
[ "MIT" ]
null
null
null
examples/sse/server.js
zeke/choo
12d4ce020e0a844def146c42dac5c36f909fbfc6
[ "MIT" ]
null
null
null
const serverRouter = require('server-router') const browserify = require('browserify') const bankai = require('bankai') const http = require('http') const SSE = require('sse') const clients = [] const PORT = 8080 const server = http.createServer(createRouter()) server.listen(PORT, () => { process.stdout.write(`listening on port ${PORT}\n`) var sse = new SSE(server) // code adapted from: https://github.com/markbrown4/server-sent-events-demo sse.on('connection', (stream) => { clients.push(stream) console.log('Opened connection 🎉') var json = JSON.stringify({ message: 'Gotcha' }) stream.send(json) console.log('Sent: ' + json) stream.on('close', () => { clients.splice(clients.indexOf(stream), 1) console.log('Closed connection 😱') }) }) }) // emit data every 1.5 seconds setInterval(() => { var json = JSON.stringify({ message: 'Hello hello!' }) clients.forEach((stream) => { stream.send(json) console.log('Sent: ' + json) }) }, 1500) function createRouter () { const router = serverRouter('/404') const html = bankai.html({ css: false }) router.on('/', (req, res) => html(req, res).pipe(res)) const js = bankai.js(browserify, require.resolve('./client.js')) router.on('/bundle.js', (req, res) => js(req, res).pipe(res)) router.on('/404', (req, res) => { res.statusCode = 404 res.end('{ "message": "the server is confused" }') }) return router }
25.892857
77
0.633103
6854918b1aaffc8496b638f388af07018cc5f3ec
425
js
JavaScript
server.js
brienpafford/nodeAPI
7057ec6fa3ae9e398b4c88f176d5bb3bfea72dcf
[ "MIT" ]
null
null
null
server.js
brienpafford/nodeAPI
7057ec6fa3ae9e398b4c88f176d5bb3bfea72dcf
[ "MIT" ]
null
null
null
server.js
brienpafford/nodeAPI
7057ec6fa3ae9e398b4c88f176d5bb3bfea72dcf
[ "MIT" ]
null
null
null
var express = require('express'); var app = require(); var bodyParser = require('body-parser'); app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json()); var port = process.env.PORT || 8080; var router = express.Router(); router.get('/', function(req, res) { res.json({ message: 'ahoy! I wrote an API!'}) }); app.use('/api', router); app.listen(port); console.log('Serving at port' + port)
22.368421
51
0.656471
6854b573b2d009f1a2485447623f7cebeccf6abd
210
js
JavaScript
src/MLIcon/ExpandSolid.js
phoenixeliot/design-system
ec9707ba5ecb2aa8be37355885e53583ec007768
[ "Apache-2.0" ]
null
null
null
src/MLIcon/ExpandSolid.js
phoenixeliot/design-system
ec9707ba5ecb2aa8be37355885e53583ec007768
[ "Apache-2.0" ]
null
null
null
src/MLIcon/ExpandSolid.js
phoenixeliot/design-system
ec9707ba5ecb2aa8be37355885e53583ec007768
[ "Apache-2.0" ]
null
null
null
import { wrapFontAwesomeIcon } from './icon-wrappers' import { faExpand } from '@fortawesome/free-solid-svg-icons/faExpand' const ExpandSolid = wrapFontAwesomeIcon(faExpand, 'Solid') export default ExpandSolid
42
69
0.795238
685544ffb067bf6ef2bc5c111898dabcb5103d16
4,585
js
JavaScript
App/config/SideBar.js
SiddigHope/LandChat-App
7985f282665c5797bc352b6bd671af31d9e07d21
[ "MIT" ]
null
null
null
App/config/SideBar.js
SiddigHope/LandChat-App
7985f282665c5797bc352b6bd671af31d9e07d21
[ "MIT" ]
null
null
null
App/config/SideBar.js
SiddigHope/LandChat-App
7985f282665c5797bc352b6bd671af31d9e07d21
[ "MIT" ]
null
null
null
import React, { useEffect, useState } from 'react' import { View, Text, StyleSheet, ScrollView, Image, TouchableHighlight, Linking } from 'react-native' import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import { List, ListItem, Right, Body } from 'native-base' import { TouchableOpacity, Share } from 'react-native'; import auth from '@react-native-firebase/auth'; import AsyncStorage from '@react-native-community/async-storage' import firestore from '@react-native-firebase/firestore'; export default SideBar = (props) =>{ const dump = {username: 'Guest', avatar: 'https://firebasestorage.googleapis.com/v0/b/landchat-da42a.appspot.com/o/pngwing.com.png?alt=media&token=5244e365-64f7-4aea-9c49-d1079c67969d'} const [user, setUser] = useState(dump) useEffect(()=>{ checkAuth() }) const checkAuth = async() => { const user = await AsyncStorage.getItem('user') if (user != null) { let me1 = JSON.parse(user) const meData = await firestore() .collection('users') .doc(me1.username).get(); setUser(meData.data()) } } const logout = async () =>{ AsyncStorage.removeItem('user') props.navigator.navigate('Signup',{navigation:props.navigator}) } return( <ScrollView style={{ backgroundColor: "#fff" }}> <View style={{ padding: 16, paddingTop: 45, backgroundColor: "#007591" }}> <Image source={{ uri: user.avatar }} style={styles.profile} /> <Text style={styles.name}>{user.username}</Text> <View style={{ flexDirection: 'row' }} > <Text style={styles.uname}>{user.bio != '' ? user.bio : 'No bio added'} </Text> <Icon name='account' size={16} color="rgba(255,255,255,0.8)" /> </View> </View> <View style={styles.container}> <List> <ListItem> <Body> <TouchableOpacity style={styles.item} onPress={() => props.navigator.navigate('Profile', { navigation: props.navigator, item: user })}> <Icon style={styles.icon} name="account" color='#000' size={20} /> <Text style={{ fontFamily: 'Tajawal-Regular', }}> {'حسابي'} </Text> </TouchableOpacity> </Body> </ListItem> {user.status != 'admin' ? null : ( <ListItem> <Body> <TouchableOpacity style={styles.item} onPress={() => props.navigator.navigate('Members', { navigation: props.navigator })}> <Icon style={styles.icon} name="account-multiple" color='#000' size={20} /> <Text style={{ fontFamily: 'Tajawal-Regular', }}> {'الاعضاء'} </Text> </TouchableOpacity> </Body> </ListItem> )} <ListItem> <Body> <TouchableOpacity style={styles.item} onPress={logout}> <Icon style={styles.icon} name="logout" color='#000' size={20} /> <Text style={{ fontFamily: 'Tajawal-Regular', }}> {'تسجيل خروج'} </Text> </TouchableOpacity> </Body> </ListItem> </List> </View> </ScrollView> ) } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#e3e3e3' }, icon: { marginRight: 5 }, profile: { width: 80, height: 80, borderRadius: 40, borderWidth: 3, borderColor: '#fff', }, name: { fontFamily: 'Tajawal-Regular', color: '#fff', fontSize: 20, fontWeight: '800', marginVertical: 8, textAlign: 'left' }, uname: { fontFamily: 'Tajawal-Regular', color: "rgba(255,255,255,0.8)", marginLeft: 4 }, item: { flex: 1, flexDirection: 'row', paddingHorizontal: 10 } })
39.188034
190
0.474373
685545c5b6d873f9ef1936c4c42216bafc53f58f
2,254
js
JavaScript
src/App.js
angmark0309/udacity-myreads-project
697b81efc527aa8ff01e1216d541b6b34a06bff8
[ "MIT" ]
null
null
null
src/App.js
angmark0309/udacity-myreads-project
697b81efc527aa8ff01e1216d541b6b34a06bff8
[ "MIT" ]
null
null
null
src/App.js
angmark0309/udacity-myreads-project
697b81efc527aa8ff01e1216d541b6b34a06bff8
[ "MIT" ]
null
null
null
import React from 'react' import * as BooksAPI from './BooksAPI' import './App.css' import { Route, Link } from 'react-router-dom' import SearchBar from './SearchBar' import BookShelf from './BookShelf' const AddButton = (props) => ( <div className="open-search"> <Link to='/search'>Add a book</Link> </div> ) class App extends React.Component { state = { currentlyReading : [], wantToRead : [], read : [] } getAndFilterAllBooks = () =>{ BooksAPI.getAll().then((books)=> { const currentlyReading = books.filter(book=>(book.shelf === "currentlyReading")); const wantToRead = books.filter(book=>(book.shelf === "wantToRead")); const read = books.filter(book=>(book.shelf === "read")); return( this.setState({ currentlyReading : currentlyReading, wantToRead : wantToRead, read : read }) ) }); } componentWillReceiveProps(props) { console.log('props: ', props); } componentDidMount() { this.getAndFilterAllBooks(); } handleBookShelf = (book, shelf) => { BooksAPI.update(book,shelf).then(()=>{ this.getAndFilterAllBooks(); }) } render() { console.log(this.state) return ( <div className="app"> <Route exact path='/' key='/' render={() => ( <div className="list-books"> <div className="list-books-title"> <h1>MyReads</h1> </div> <BookShelf headingTitle="Currently Reading" bookList={this.state.currentlyReading} handleChange={this.handleBookShelf} /> <BookShelf headingTitle="Want To Read" bookList={this.state.wantToRead} handleChange={this.handleBookShelf} /> <BookShelf headingTitle="Read" bookList={this.state.read} handleChange={this.handleBookShelf} /> </div> )}/> <Route path='/search' render={()=>( <SearchBar parentRefresh={this.getAndFilterAllBooks} />)} /> <AddButton/> </div> ) } } export default App
25.044444
87
0.536823
68568fdf5b75ec177f1a5782860822760822d98e
1,512
js
JavaScript
js/apps.js
Turner-Tobie/turner-tobie.github.io
46f3cc548afa07c02f20033b8825ec2b8d3b7d23
[ "MIT" ]
null
null
null
js/apps.js
Turner-Tobie/turner-tobie.github.io
46f3cc548afa07c02f20033b8825ec2b8d3b7d23
[ "MIT" ]
null
null
null
js/apps.js
Turner-Tobie/turner-tobie.github.io
46f3cc548afa07c02f20033b8825ec2b8d3b7d23
[ "MIT" ]
null
null
null
jQuery(function($){ $(".sort li").click(function(){ // 1. store data-type attribute var color = $(this).attr("data-type"); // 2. hide all matched elements $('.objects li').hide(); // 3. if 'color' is not defined hide/show all elements ("show all" button), if color IS defined show elemtnts that match color variable (!color) ? $('.objects li').hide().fadeIn(625) : $('li[data-type="' + color + '"]').fadeIn(625); $('.active').removeClass('active'); $(this).addClass('active'); }); var count = 0; $('li').hover( function(){ $(this).fadeTo('fast', .75)}, function(){ $(this).fadeTo('fast', 1); }) $('.drop-box').on('click', function(){ count++; var isEven = function(someNumber){return (someNumber % 2 === 0) ? true : false; }; if(isEven(count) === false){ $('.nav').animate({ height: '+=200px' }); } else if (isEven(count) === true){ $('.nav').animate({ height: '-=200px' }); } }); function glassify(){ $('.glass').each( function( index ) { $(this).before("<div class='glass2' id='glass"+index+"'></div>"); var h=$(this).outerHeight(); $('#glass'+index).css('height', (h) + 'px'); var w=$(this).outerWidth(); $('#glass'+index).css('width', (w) + 'px'); var homeOffset=$(this).offset(); $('#glass'+index).offset({ top: homeOffset.top, left: homeOffset.left }); }); }; });
28.528302
141
0.505952