From 1d0dea48ad88afb3010b03d5f9ea249203390cbb Mon Sep 17 00:00:00 2001 From: cyuamber Date: Mon, 23 Nov 2020 18:56:49 +0800 Subject: feat: change tn params Change-Id: Id98dca1004ae1a3b1ce41e9e46a05b5f5835a143 Issue-ID: USECASEUI-444 Signed-off-by: cyuamber --- .../src/app/mock/json/slicing_subnet_instance.json | 4 +- .../src/app/mock/json/slicing_task_auditInfo.json | 18 +- .../slicing-task-model.component.ts | 20 +- .../subnet-params-model.component.ts | 36 +-- usecaseui-portal/src/constants/constants.ts | 6 +- usecaseui-portal/usecase-ui/3rdpartylicenses.txt | 316 +++++++++++++++++++++ .../usecase-ui/UUIMenuBar.05c692df8a919e94151c.png | Bin 0 -> 119620 bytes usecaseui-portal/usecase-ui/assets/i18n/cn.json | 176 ++++++++++++ usecaseui-portal/usecase-ui/assets/i18n/en.json | 174 ++++++++++++ .../assets/images/Return-icon-active.png | Bin 0 -> 1210 bytes .../usecase-ui/assets/images/Return-icon.png | Bin 0 -> 1217 bytes .../assets/images/Services-icon-active.png | Bin 0 -> 631 bytes .../usecase-ui/assets/images/Services-icon.png | Bin 0 -> 903 bytes .../usecase-ui/assets/images/UUIMenuBar.png | Bin 0 -> 119620 bytes usecaseui-portal/usecase-ui/assets/images/VM.png | Bin 0 -> 16116 bytes usecaseui-portal/usecase-ui/assets/images/VNF.png | Bin 0 -> 16051 bytes usecaseui-portal/usecase-ui/assets/images/VNF1.png | Bin 0 -> 15833 bytes usecaseui-portal/usecase-ui/assets/images/VNF2.png | Bin 0 -> 17784 bytes usecaseui-portal/usecase-ui/assets/images/VNF3.png | Bin 0 -> 13353 bytes .../usecase-ui/assets/images/bigcloud.png | Bin 0 -> 7969 bytes .../usecase-ui/assets/images/cloud-city1.png | Bin 0 -> 17808 bytes .../usecase-ui/assets/images/cloud-county1.png | Bin 0 -> 24718 bytes .../usecase-ui/assets/images/cloud-out.png | Bin 0 -> 27090 bytes .../usecase-ui/assets/images/cloud-site.png | Bin 0 -> 3110 bytes .../usecase-ui/assets/images/connectivity.png | Bin 0 -> 3245 bytes .../usecase-ui/assets/images/create-box.png | Bin 0 -> 61026 bytes .../usecase-ui/assets/images/create-e2e.png | Bin 0 -> 9519 bytes .../usecase-ui/assets/images/create-ns.png | Bin 0 -> 9803 bytes .../usecase-ui/assets/images/create-vnf.png | Bin 0 -> 9517 bytes .../assets/images/customer-icon-active.png | Bin 0 -> 737 bytes .../usecase-ui/assets/images/customer-icon.png | Bin 0 -> 1114 bytes .../usecase-ui/assets/images/customer.png | Bin 0 -> 1543 bytes .../usecase-ui/assets/images/customer01.png | Bin 0 -> 47352 bytes .../usecase-ui/assets/images/customer02.png | Bin 0 -> 116230 bytes .../usecase-ui/assets/images/customer03.png | Bin 0 -> 8803 bytes .../usecase-ui/assets/images/customer04.png | Bin 0 -> 3049 bytes .../usecase-ui/assets/images/customer05.png | Bin 0 -> 2701 bytes .../usecase-ui/assets/images/customerBarUser.png | Bin 0 -> 578 bytes .../usecase-ui/assets/images/damaged-icon.png | Bin 0 -> 1751 bytes .../usecase-ui/assets/images/domain.png | Bin 0 -> 3695 bytes .../usecase-ui/assets/images/domain1.png | Bin 0 -> 62057 bytes usecaseui-portal/usecase-ui/assets/images/edge.png | Bin 0 -> 626284 bytes .../usecase-ui/assets/images/execute-faild.png | Bin 0 -> 1545 bytes .../usecase-ui/assets/images/execute-inproess.png | Bin 0 -> 2217 bytes .../usecase-ui/assets/images/execute-success.png | Bin 0 -> 1613 bytes .../usecase-ui/assets/images/home-icon-active.png | Bin 0 -> 591 bytes .../usecase-ui/assets/images/home-icon.png | Bin 0 -> 915 bytes usecaseui-portal/usecase-ui/assets/images/icon.png | Bin 0 -> 4670550 bytes .../usecase-ui/assets/images/loading-animate2.gif | Bin 0 -> 84437 bytes .../usecase-ui/assets/images/loading.gif | Bin 0 -> 3694 bytes .../usecase-ui/assets/images/loadingdonghua.gif | Bin 0 -> 493071 bytes .../usecase-ui/assets/images/logicallink.png | Bin 0 -> 5072 bytes .../assets/images/monitor-icon-active.png | Bin 0 -> 715 bytes .../usecase-ui/assets/images/monitor-icon.png | Bin 0 -> 1126 bytes .../assets/images/network-icon-active.png | Bin 0 -> 915 bytes .../usecase-ui/assets/images/network-icon.png | Bin 0 -> 1457 bytes .../assets/images/no-network-available.png | Bin 0 -> 50933 bytes .../usecase-ui/assets/images/noDatalist.png | Bin 0 -> 6997 bytes .../usecase-ui/assets/images/notificationmodel.png | Bin 0 -> 3340 bytes .../usecase-ui/assets/images/open-close.png | Bin 0 -> 16054 bytes .../usecase-ui/assets/images/open-close2.png | Bin 0 -> 17251 bytes .../usecase-ui/assets/images/out-domain.png | Bin 0 -> 3552 bytes .../usecase-ui/assets/images/scale-active.png | Bin 0 -> 862 bytes .../usecase-ui/assets/images/scale.png | Bin 0 -> 881 bytes .../usecase-ui/assets/images/service-type.png | Bin 0 -> 1722 bytes .../usecase-ui/assets/images/service.png | Bin 0 -> 4988 bytes .../assets/images/servicelist-cccvpn.png | Bin 0 -> 59263 bytes .../usecase-ui/assets/images/servicelist-e2e.png | Bin 0 -> 63236 bytes .../usecase-ui/assets/images/servicelist-ns.png | Bin 0 -> 62557 bytes .../usecase-ui/assets/images/servicelist-sotn.png | Bin 0 -> 62383 bytes .../usecase-ui/assets/images/shibai-icon.png | Bin 0 -> 958 bytes usecaseui-portal/usecase-ui/assets/images/site.png | Bin 0 -> 3034 bytes .../usecase-ui/assets/images/tildeimg.png | Bin 0 -> 896670 bytes usecaseui-portal/usecase-ui/assets/images/tp.png | Bin 0 -> 384 bytes .../usecase-ui/assets/images/tpoint.png | Bin 0 -> 7187 bytes .../usecase-ui/assets/images/update-active.png | Bin 0 -> 761 bytes .../usecase-ui/assets/images/update.png | Bin 0 -> 779 bytes .../usecase-ui/assets/images/uui-logo130.png | Bin 0 -> 8661 bytes .../usecase-ui/assets/images/vpnbinding.png | Bin 0 -> 2818 bytes .../usecase-ui/assets/images/wancheng-icon.png | Bin 0 -> 991 bytes .../usecase-ui/create-box.aef4ef8e1d464353155c.png | Bin 0 -> 61026 bytes usecaseui-portal/usecase-ui/favicon.ico | Bin 0 -> 9662 bytes .../usecase-ui/icon.0b81791cf57e5be89f9a.png | Bin 0 -> 4670550 bytes usecaseui-portal/usecase-ui/index.html | 15 + .../inline.318b50c57b4eba3d437b.bundle.js | 1 + .../usecase-ui/main.e14348f933202110d320.bundle.js | 1 + .../usecase-ui/open-close.0667f07611a0bf4e7287.png | Bin 0 -> 16054 bytes .../open-close2.01c28a4432a3019d8844.png | Bin 0 -> 17251 bytes .../polyfills.4a1f917db97eec51e6e6.bundle.js | 1 + .../scripts.84800f8e08ba46ef92c9.bundle.js | 1 + .../servicelist-e2e.eaa290afd32ed65ff26c.png | Bin 0 -> 63236 bytes .../styles.f4b90cc5eec996fe5ba8.bundle.css | 1 + .../usecase-ui/tildeimg.9690a76b32627d1957de.png | Bin 0 -> 896670 bytes 93 files changed, 730 insertions(+), 40 deletions(-) create mode 100644 usecaseui-portal/usecase-ui/3rdpartylicenses.txt create mode 100644 usecaseui-portal/usecase-ui/UUIMenuBar.05c692df8a919e94151c.png create mode 100644 usecaseui-portal/usecase-ui/assets/i18n/cn.json create mode 100644 usecaseui-portal/usecase-ui/assets/i18n/en.json create mode 100644 usecaseui-portal/usecase-ui/assets/images/Return-icon-active.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/Return-icon.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/Services-icon-active.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/Services-icon.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/UUIMenuBar.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/VM.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/VNF.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/VNF1.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/VNF2.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/VNF3.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/bigcloud.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/cloud-city1.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/cloud-county1.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/cloud-out.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/cloud-site.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/connectivity.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/create-box.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/create-e2e.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/create-ns.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/create-vnf.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/customer-icon-active.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/customer-icon.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/customer.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/customer01.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/customer02.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/customer03.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/customer04.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/customer05.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/customerBarUser.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/damaged-icon.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/domain.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/domain1.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/edge.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/execute-faild.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/execute-inproess.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/execute-success.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/home-icon-active.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/home-icon.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/icon.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/loading-animate2.gif create mode 100644 usecaseui-portal/usecase-ui/assets/images/loading.gif create mode 100644 usecaseui-portal/usecase-ui/assets/images/loadingdonghua.gif create mode 100644 usecaseui-portal/usecase-ui/assets/images/logicallink.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/monitor-icon-active.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/monitor-icon.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/network-icon-active.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/network-icon.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/no-network-available.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/noDatalist.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/notificationmodel.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/open-close.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/open-close2.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/out-domain.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/scale-active.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/scale.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/service-type.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/service.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/servicelist-cccvpn.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/servicelist-e2e.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/servicelist-ns.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/servicelist-sotn.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/shibai-icon.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/site.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/tildeimg.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/tp.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/tpoint.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/update-active.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/update.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/uui-logo130.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/vpnbinding.png create mode 100644 usecaseui-portal/usecase-ui/assets/images/wancheng-icon.png create mode 100644 usecaseui-portal/usecase-ui/create-box.aef4ef8e1d464353155c.png create mode 100644 usecaseui-portal/usecase-ui/favicon.ico create mode 100644 usecaseui-portal/usecase-ui/icon.0b81791cf57e5be89f9a.png create mode 100644 usecaseui-portal/usecase-ui/index.html create mode 100644 usecaseui-portal/usecase-ui/inline.318b50c57b4eba3d437b.bundle.js create mode 100644 usecaseui-portal/usecase-ui/main.e14348f933202110d320.bundle.js create mode 100644 usecaseui-portal/usecase-ui/open-close.0667f07611a0bf4e7287.png create mode 100644 usecaseui-portal/usecase-ui/open-close2.01c28a4432a3019d8844.png create mode 100644 usecaseui-portal/usecase-ui/polyfills.4a1f917db97eec51e6e6.bundle.js create mode 100644 usecaseui-portal/usecase-ui/scripts.84800f8e08ba46ef92c9.bundle.js create mode 100644 usecaseui-portal/usecase-ui/servicelist-e2e.eaa290afd32ed65ff26c.png create mode 100644 usecaseui-portal/usecase-ui/styles.f4b90cc5eec996fe5ba8.bundle.css create mode 100644 usecaseui-portal/usecase-ui/tildeimg.9690a76b32627d1957de.png diff --git a/usecaseui-portal/src/app/mock/json/slicing_subnet_instance.json b/usecaseui-portal/src/app/mock/json/slicing_subnet_instance.json index 24914c3f..542e203f 100644 --- a/usecaseui-portal/src/app/mock/json/slicing_subnet_instance.json +++ b/usecaseui-portal/src/app/mock/json/slicing_subnet_instance.json @@ -6,8 +6,8 @@ "result_body": { "an_suggest_nssi_id": "46da8cf8-0878-48ac-bea3-f2200959411a", "an_suggest_nssi_name": "eMBB AN instance1", - "tn_suggest_nssi_id": "46da8cf8-0878-48ac-bea3-f2200959411b", - "tn_suggest_nssi_name": "eMBB TN instance2", + "tn_bh_suggest_nssi_id": "46da8cf8-0878-48ac-bea3-f2200959411b", + "tn_bh_suggest_nssi_name": "eMBB TN instance2", "cn_suggest_nssi_id": "46da8cf8-0878-48ac-bea3-f2200959411c", "cn_suggest_nssi_name": "eMBB CN instance3" } diff --git a/usecaseui-portal/src/app/mock/json/slicing_task_auditInfo.json b/usecaseui-portal/src/app/mock/json/slicing_task_auditInfo.json index 0db434df..1828367d 100644 --- a/usecaseui-portal/src/app/mock/json/slicing_task_auditInfo.json +++ b/usecaseui-portal/src/app/mock/json/slicing_task_auditInfo.json @@ -60,14 +60,16 @@ "sliceProfile_AN_nextHopInfo":"sliceProfile_AN_nextHopInfo", "an_script_name":"test_an_01", "an_coverage_area_ta_list": ["北京;北京市;海淀区", "北京;北京市;西城区", "北京;北京市;昌平区"], - "tn_suggest_nssi_id": "46da8cf8-0878-48ac-bea3-f2200959411b", - "tn_suggest_nssi_name": "eMBB TNinstance2", - "tn_latency": "10", - "tn_bandwidth": "300", - "tn_script_name":"test_tn_01", - "sliceProfile_TN_jitte":"test_tn_jitter_01", - "sliceProfile_TN_sNSSAI":"test_tn_service_snssai_01", - "tn_enableNSSISelection":false, + "tn_bh_suggest_nssi_id": "46da8cf8-0878-48ac-bea3-f2200959411b", + "tn_bh_suggest_nssi_name": "eMBB TNinstance2", + "tn_bh_latency": "10", + "tn_bh_bandwidth": "300", + "tn_bh_script_name":"test_tn_01", + "sliceProfile_TN_BH_jitte":"test_tn_jitter_01", + "sliceProfile_TN_BH _pLMNIdList": "test_sliceProfile_TN_BH _pLMNIdList", + "sliceProfile_TN_BH _sST": "test_sliceProfile_TN_BH _sST", + "sliceProfile_TN_BH _sNSSAI":"test_tn_service_snssai_01", + "tn_bh_enableNSSISelection":false, "cn_suggest_nssi_id": "46da8cf8-0878-48ac-bea3-f2200959411c", "cn_suggest_nssi_name": "eMBB CNinstance3", "cn_service_snssai": "cn_1-010101", diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts index e902cda3..93ed9ae3 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts @@ -135,7 +135,7 @@ export class SlicingTaskModelComponent implements OnInit { this.selectedServiceId = nsi_nssi_info.suggest_nsi_id; this.selectedServiceName = nsi_nssi_info.suggest_nsi_name; // an/tn/cn 3 select box switches parameters of Matching Shared NSSI - this.enableNSSISelectionList = [nsi_nssi_info.an_enableNSSISelection,nsi_nssi_info.tn_enableNSSISelection,nsi_nssi_info.cn_enableNSSISelection]; + this.enableNSSISelectionList = [nsi_nssi_info.an_enableNSSISelection,nsi_nssi_info.tn_bh_enableNSSISelection,nsi_nssi_info.cn_enableNSSISelection]; if (!this.selectedServiceId || !this.selectedServiceName) { this.isDisabled.map((item,index)=>{ this.isDisabled[index] = false @@ -158,7 +158,7 @@ export class SlicingTaskModelComponent implements OnInit { }] } // 子网实例 - let subnetData = this.pick(nsi_nssi_info, ['an_suggest_nssi_id', 'an_suggest_nssi_name', 'tn_suggest_nssi_id', 'tn_suggest_nssi_name', 'cn_suggest_nssi_id', 'cn_suggest_nssi_name']); + let subnetData = this.pick(nsi_nssi_info, ['an_suggest_nssi_id', 'an_suggest_nssi_name', 'tn_bh_suggest_nssi_id', 'tn_bh_suggest_nssi_name', 'cn_suggest_nssi_id', 'cn_suggest_nssi_name']); this.subnetDataFormatting(subnetData, 0); // 前端模拟数据 let area = ["Beijing;Beijing;Haidian District", "Beijing;Beijing;Xicheng District", "Beijing;Beijing;Changping District"]; @@ -181,7 +181,7 @@ export class SlicingTaskModelComponent implements OnInit { 'sliceProfile_AN_logicInterfaceId', 'sliceProfile_AN_nextHopInfo' ]), an_coverage_area_ta_list: area}; - this.slicingSubnet[1].params = this.pick(nsi_nssi_info, ['tn_latency', 'tn_bandwidth', 'tn_script_name', 'sliceProfile_TN_jitte', 'sliceProfile_TN_sNSSAI',"tn_enableNSSISelection"]); + this.slicingSubnet[1].params = this.pick(nsi_nssi_info, ['tn_bh_latency', 'tn_bh_bandwidth', 'tn_bh_script_name', 'sliceProfile_TN_BH_jitte', 'sliceProfile_TN_BH _sNSSAI',"tn_bh_enableNSSISelection"]); this.slicingSubnet[2].params = {...this.pick(nsi_nssi_info, [ 'cn_service_snssai', 'cn_resource_sharing_level', @@ -265,7 +265,7 @@ export class SlicingTaskModelComponent implements OnInit { } subnetDataFormatting ( subnetData?: any, total?: number): void{ - const { an_suggest_nssi_id, an_suggest_nssi_name, tn_suggest_nssi_id, tn_suggest_nssi_name, cn_suggest_nssi_id, cn_suggest_nssi_name } = subnetData; + const { an_suggest_nssi_id, an_suggest_nssi_name, tn_bh_suggest_nssi_id, tn_bh_suggest_nssi_name, cn_suggest_nssi_id, cn_suggest_nssi_name } = subnetData; this.slicingSubnet[0].slicingId = an_suggest_nssi_id; this.slicingSubnet[0].slicingName = an_suggest_nssi_name; this.slicingSubnet[0].total = total; @@ -275,13 +275,13 @@ export class SlicingTaskModelComponent implements OnInit { service_instance_name: an_suggest_nssi_name }]; - this.slicingSubnet[1].slicingId = tn_suggest_nssi_id; - this.slicingSubnet[1].slicingName = tn_suggest_nssi_name; + this.slicingSubnet[1].slicingId = tn_bh_suggest_nssi_id; + this.slicingSubnet[1].slicingName = tn_bh_suggest_nssi_name; this.slicingSubnet[1].total = total; this.slicingSubnet[1].currentPage = '1'; this.slicingSubnet[1].instances = [{ - service_instance_id: tn_suggest_nssi_id, - service_instance_name: tn_suggest_nssi_name + service_instance_id: tn_bh_suggest_nssi_id, + service_instance_name: tn_bh_suggest_nssi_name }]; this.slicingSubnet[2].slicingId = cn_suggest_nssi_id; @@ -383,8 +383,8 @@ export class SlicingTaskModelComponent implements OnInit { an_suggest_nssi_id: slicingSubnet[0].slicingId, an_suggest_nssi_name: slicingSubnet[0].slicingName, ...slicingSubnet[0].params, - tn_suggest_nssi_id: slicingSubnet[1].slicingId, - tn_suggest_nssi_name: slicingSubnet[1].slicingName, + tn_bh_suggest_nssi_id: slicingSubnet[1].slicingId, + tn_bh_suggest_nssi_name: slicingSubnet[1].slicingName, ...slicingSubnet[1].params, cn_suggest_nssi_id: slicingSubnet[2].slicingId, cn_suggest_nssi_name: slicingSubnet[2].slicingName, diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts index 9d1ee34d..e71b459f 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts @@ -40,22 +40,24 @@ export class SubnetParamsModelComponent implements OnInit { ngOnChanges() { if(this.title){ - this.coreFormItems = this.title === 'An'?CORE_FORM_ITEMS.An:this.title === 'Cn'?CORE_FORM_ITEMS.Cn:[]; - this.formData = JSON.parse(JSON.stringify(this.detailData)); - this.keyList = this.coreFormItems.find((item) => {return item.title === 'Endpoint'}).options.map((val) => {return val.key}); - if(this.formData !==undefined && Object.keys(this.formData).length!==0){ - this.EndpointEnable = this.keyList.every((item) => {return this.formData.hasOwnProperty(item)}) - } - // -------> 2020.08.17 Add 3 parameters for Endpoint, Comment: The following code - if(this.EndpointEnable){ - this.EndpointInputs = this.Util.pick(this.formData, this.keyList)// no? - }else{ - this.coreFormItems.map((item,index)=>{ - if(item.title === 'Endpoint'){ - this.coreFormItems.splice(index,1) - } - }) - } + this.formData = JSON.parse(JSON.stringify(this.detailData)); + if (this.title === 'An' || this.title === 'Cn') { + this.coreFormItems = this.title === 'An'?CORE_FORM_ITEMS.An:this.title === 'Cn'?CORE_FORM_ITEMS.Cn:[]; + this.keyList = this.coreFormItems.find((item) => {return item.title === 'Endpoint'}).options.map((val) => {return val.key}); + if(this.formData !==undefined && Object.keys(this.formData).length!==0){ + this.EndpointEnable = this.keyList.every((item) => {return this.formData.hasOwnProperty(item)}) + } + if(this.EndpointEnable){ + this.EndpointInputs = this.Util.pick(this.formData, this.keyList)// no? + }else{ + this.coreFormItems.map((item,index)=>{ + if(item.title === 'Endpoint'){ + this.coreFormItems.splice(index,1) + } + }) + } + } + } //-------> Comment: Above code if (this.title === 'An') { @@ -210,7 +212,7 @@ export class SubnetParamsModelComponent implements OnInit { endCheckBeforeSubmit () : Array{ // check params of Endpoint let result: Array = [true, '']; - const endPointList = this.coreFormItems.find((item) => {return item.title === 'Endpoint'}).options; + const endPointList = this.coreFormItems&&this.coreFormItems.length!==0?this.coreFormItems.find((item) => {return item.title === 'Endpoint'}).options:{}; let ipKey = ''; let logicalKey = ''; for (let item of endPointList) { diff --git a/usecaseui-portal/src/constants/constants.ts b/usecaseui-portal/src/constants/constants.ts index 0ddb23b3..61030d55 100644 --- a/usecaseui-portal/src/constants/constants.ts +++ b/usecaseui-portal/src/constants/constants.ts @@ -137,17 +137,17 @@ export const TRANSFRER_FORM_ITEMS = [ }, { title: 'Latency (ms)', - key: 'tn_latency', + key: 'tn_bh_latency', required: true }, { title: 'Jitter', - key: 'sliceProfile_TN_jitte', + key: 'sliceProfile_TN_BH_jitte', required: false, }, { title: 'MaxBandwidth', - key: 'tn_bandwidth', + key: 'tn_bh_bandwidth', required: true }, ] diff --git a/usecaseui-portal/usecase-ui/3rdpartylicenses.txt b/usecaseui-portal/usecase-ui/3rdpartylicenses.txt new file mode 100644 index 00000000..67302a6b --- /dev/null +++ b/usecaseui-portal/usecase-ui/3rdpartylicenses.txt @@ -0,0 +1,316 @@ +moment@2.24.0 +MIT +Copyright (c) JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +cache-loader@1.2.2 +MIT +Copyright JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@angular-devkit/build-optimizer@0.3.2 +MIT +The MIT License + +Copyright (c) 2017 Google, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@angular/cdk@5.2.5 +MIT +The MIT License + +Copyright (c) 2018 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +axios@0.19.0 +MIT +Copyright (c) 2014-present Matt Zabriskie + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +date-fns@1.29.0 +MIT +# License + +date-fns is licensed under the [MIT license](http://kossnocorp.mit-license.org). +Read more about MIT at [TLDRLegal](https://tldrlegal.com/license/mit-license). + +webpack@3.11.0 +MIT +Copyright JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@angular/forms@5.2.11 +MIT +MIT + +jquery@3.4.1 +MIT +Copyright JS Foundation and other contributors, https://js.foundation/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +ng-zorro-antd@0.7.1 +MIT +MIT + +@angular/common@5.2.11 +MIT +MIT + +@angular/platform-browser@5.2.11 +MIT +MIT + +process@0.11.10 +MIT +(The MIT License) + +Copyright (c) 2013 Roman Shtylman + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@angular/animations@5.2.11 +MIT +MIT + +@angular/core@5.2.11 +MIT +MIT + +@ngx-translate/core@9.1.1 +MIT +MIT + +d3@3.5.17 +BSD-3-Clause +Copyright (c) 2010-2016, Michael Bostock +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* The name Michael Bostock may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +@ngx-translate/http-loader@2.0.1 +MIT +Copyright (c) 2016 Olivier Combe + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@angular/router@5.2.11 +MIT +MIT + +@angular/platform-browser-dynamic@5.2.11 +MIT +MIT + +core-js@2.5.7 +MIT +Copyright (c) 2014-2018 Denis Pushkarev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +zone.js@0.8.26 +MIT +The MIT License + +Copyright (c) 2016-2018 Google, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/usecaseui-portal/usecase-ui/UUIMenuBar.05c692df8a919e94151c.png b/usecaseui-portal/usecase-ui/UUIMenuBar.05c692df8a919e94151c.png new file mode 100644 index 00000000..7faade31 Binary files /dev/null and b/usecaseui-portal/usecase-ui/UUIMenuBar.05c692df8a919e94151c.png differ diff --git a/usecaseui-portal/usecase-ui/assets/i18n/cn.json b/usecaseui-portal/usecase-ui/assets/i18n/cn.json new file mode 100644 index 00000000..eca33690 --- /dev/null +++ b/usecaseui-portal/usecase-ui/assets/i18n/cn.json @@ -0,0 +1,176 @@ +{ + "app-component": "--:", + "i18nTextDefine_Home": "首页", + "i18nTextDefine_Customer": "用户", + "i18nTextDefine_Monitor": "监控", + "i18nTextDefine_Monitor_5g": "5G 切片", + "i18nTextDefine_Services": "服务", + "i18nTextDefine_ServicesList": "服务列表", + "i18nTextDefine_SotnEline": "SOTN Eline", + "i18nTextDefine_Mangement_5g": "5G切片管理", + "i18nTextDefine_PackageManagement": "包管理", + "i18nTextDefine_Alarm": "告警", + "i18nTextDefine_Performance": "性能", + "i18nTextDefine_NetworkTopology": "网络拓扑", + "i18nTextDefine_CCVPNNetwork":"CCVPN网络", + "i18nTextDefine_MDONSNetwork":"MDONS网络", + + "home-component": "--:", + "i18nTextDefine_SERVICES": "服务", + "i18nTextDefine_PACKAGE": "包", + "i18nTextDefine_Total": "总数", + "i18nTextDefine_cutomers_and": "用户和", + "i18nTextDefine_service_instance": "服务实例", + "i18nTextDefine_ViewDetails": "查看详情", + "i18nTextDefine_ALARM": "告警", + "i18nTextDefine_VNF_Alarm": "VNF告警", + "i18nTextDefine_VM_Alarm": "VM告警", + "i18nTextDefine_VM_Performance": "VM性能", + + "services-list-component":"--:", + "i18nTextDefine_ServiceType":"服务类型", + "i18nTextDefine_Create":"创建", + "i18nTextDefine_Failed":"失败", + "i18nTextDefine_Success":"成功", + "i18nTextDefine_InProgress":"执行中", + "i18nTextDefine_End_To_End_Service":"端到端服务", + "i18nTextDefine_Network_Service":"NS服务", + "i18nTextDefine_Cross_Domain_and_Cross_Layer_VPN":"CCVPN服务", + "i18nTextDefine_MDONS":"MDONS 多域业务网络服务", + "i18nTextDefine_NO":"序号", + "i18nTextDefine_Name":"名称", + "i18nTextDefine_Description":"描述", + "i18nTextDefine_UseCase":"场景用例", + "i18nTextDefine_Status":"状态", + "i18nTextDefine_Action":"动作", + "i18nTextDefine_Template":"模板", + "i18nTextDefine_Orchestrator":"编排器", + "i18nTextDefine_ServiceCreation":"服务创建", + "i18nTextDefine_Cancel":"取消", + "i18nTextDefine_modelOk":"确认", + "i18nTextDefine_Scale":"缩扩容", + "i18nTextDefine_SureScale":"您确定缩扩容此实例吗?", + "i18nTextDefine_InstanceName":"实例名称", + "i18nTextDefine_InstanceID":"实例ID", + "i18nTextDefine_ScaleType":"缩扩容类型", + "i18nTextDefine_AspectId":"详情Id", + "i18nTextDefine_Number_Of_Steps":"级数", + "i18nTextDefine_ScalingDirection":"缩扩容方向", + "i18nTextDefine_delete":"删除", + "i18nTextDefine_SureDelete":"您确定删除此实例吗?", + "i18nTextDefine_terminationType":"终止类型", + "i18nTextDefine_graceful":"优雅", + "i18nTextDefine_forceful":"强制", + "i18nTextDefine_gracefulTerminationTimeout":"优雅终止超时时间", + "i18nTextDefine_Heal":"自愈", + "i18nTextDefine_SureHeal":"您确定自愈此实例吗?", + "i18nTextDefine_degreeHealing":"自愈程度", + "i18nTextDefine_actionsHealing":"自愈行为", + "i18nTextDefine_healScript":"自愈脚本", + "i18nTextDefine_additionalParamsforNs":"NS附加参数", + "i18nTextDefine_cause":"原因", + "i18nTextDefine_action":"动作", + "i18nTextDefine_actionvminfo":"操作虚拟机信息", + "i18nTextDefine_Update":"更新", + "i18nTextDefine_InstanceCreationStarting":"创建开始", + "i18nTextDefine_InstanceCreatedSuccessfully":"创建成功", + "i18nTextDefine_InstanceCreationFailed":"创建失败!", + "i18nTextDefine_InstanceTeminationStarting":"删除开始", + "i18nTextDefine_InstanceTeminatedSuccessfully":"删除成功", + "i18nTextDefine_InstanceTeminationFailed":" 删除失败", + "i18nTextDefine_InstanceScaleStarting":"缩扩容开始", + "i18nTextDefine_InstanceScaledSuccessfully":"缩扩容成功", + "i18nTextDefine_InstanceScaleFailed":"缩扩容失败", + "i18nTextDefine_InstanceHealingStarting":"自愈开始", + "i18nTextDefine_InstanceHealedSuccessfully":"自愈成功", + "i18nTextDefine_InstanceHealingFailed":"自愈失败", + "i18nTextDefine_InstanceUpdateStarting":"更新开始", + "i18nTextDefine_InstanceUpdatedSuccessfully":"更新成功", + "i18nTextDefine_InstanceUpdateFailed":"更新失败", + "i18nTextDefine_Close":"关闭", + "i18nTextDefine_Templateparsingfailed": "模板解析失败" + "i18nTextDefine_domainService":"Domain Services", + + "ccvpn-creation-component": "--:", + "i18nTextDefine_InstanceCreation": "实例创建", + "i18nTextDefine_InstanceTopology": "实例拓扑", + "i18nTextDefine_Add": "新增", + "i18nTextDefine_Base": "基本信息", + "i18nTextDefine_templateInputs": "模板输入", + + "ccvpn-detail-component": "--:", + "i18nTextDefine_InstanceDetail": "实例详情", + + "onboard-vnf-vm-component": "--:", + "i18nTextDefine_Click_CSAR_File": "单击此处或拖入CSAR文件", + "i18nTextDefine_Uploaded_files": "已上传文件", + "i18nTextDefine_Uploading": "上传中", + "i18nTextDefine_StartUpload": "开始上传", + "i18nTextDefine_Nofileuploading": "没有文件正在上传。", + "i18nTextDefine_File_upload_completed": "文件上传完毕", + "i18nTextDefine_File_upload_failed": "文件上传失败", + "i18nTextDefine_Version": "版本", + "i18nTextDefine_OnboardingState": "分发状态", + "i18nTextDefine_OperationalState": "操作状态", + "i18nTextDefine_NS": "NS", + "i18nTextDefine_PNF": "PNF", + "i18nTextDefine_VNF": "VNF", + "i18nTextDefine_UsageState": "使用状态", + "i18nTextDefine_Operationbutton": "操作按钮", + + "management-component": "--:", + "i18nTextDefine_Create_initial_customer": "创建初始用户", + "i18nTextDefine_Customer_not_in_ONAP": "ONAP尚未存在已创建用户", + "i18nTextDefine_CreateCustomer": "请创建用户及其服务类型", + "i18nTextDefine_Input_customerName": "输入用户名称", + + "customer-component": "--:", + "i18nTextDefine_Instance_Count_of_Customer": "用户实例计数", + "i18nTextDefine_users": "用户", + "i18nTextDefine_Instance_Count_of_ServiceType": "服务类型实例计数", + "i18nTextDefine_Input_ServicesType": "输入服务类型", + "i18nTextDefine_Input_Sure_deleteCustomer": "您确定删除此用户吗?", + "i18nTextDefine_Input_Sure_deleteServiceType": "您确定删除此服务类型吗?", + "i18nTextDefine_CustomerName": "用户名称", + "i18nTextDefine_CustomerID": "用户ID", + + "ccvpn-network-component": "--:", + "i18nTextDefine_CreateLink": "添加链接", + "i18nTextDefine_SetAttribtes": "设置属性", + "i18nTextDefine_LinkName": "链接名称", + "i18nTextDefine_LeftPort": "左侧端口", + "i18nTextDefine_Network": "网络", + "i18nTextDefine_Node": "节点", + "i18nTextDefine_TerminalPoint": "终端", + "i18nTextDefine_RightPort": "右侧端口", + "i18nTextDefine_PartnerNetwork": "伙伴网络", + "i18nTextDefine_HostUrl": "主机网址", + "i18nTextDefine_deleteLink": "删除链接", + + "sotn-component": "--:", + "i18nTextDefine_subscriptionType": "订购类型", + "i18nTextDefine_serviceInstance": "业务实例", + "i18nTextDefine_serviceInformation": "服务信息", + "i18nTextDefine_vpnInformation": "VPN信息", + "i18nTextDefine_uniInformation": "UNI信息", + "i18nTextDefine_terminationPoint": "终点", + "i18nTextDefine_topology": "拓扑结构", + "i18nTextDefine_colorAware": "色敏感", + "i18nTextDefine_couplingFlag": "耦合标签", + "i18nTextDefine_serviceTopology": "服务拓扑", + "i18nTextDefine_resourceTopology": "资源拓扑", + "i18nTextDefine_orderService":"订购服务", + "i18nTextDefine_monitorService":"监控服务", + "i18nTextDefine_manageService":"管理服务", + + + "mdons-network-component":"--:", + "i18nTextDefine_InterDomainTitle": "域间链接", + "i18nTextDefine_Domain":"域", + "i18nTextDefine_Interface": "接口", + "i18nTextDefine_ResourceVersion": "资源版本", + "i18nTextDefine_NearEnd": "近端", + "i18nTextDefine_FarEnd": "远端", + "i18nTextDefine_ExternalNetworkMessage":"注意:两个端点都将更改为ENNI。" + +} diff --git a/usecaseui-portal/usecase-ui/assets/i18n/en.json b/usecaseui-portal/usecase-ui/assets/i18n/en.json new file mode 100644 index 00000000..7eb5ec60 --- /dev/null +++ b/usecaseui-portal/usecase-ui/assets/i18n/en.json @@ -0,0 +1,174 @@ +{ + "app-component": "--:", + "i18nTextDefine_Home": "Home", + "i18nTextDefine_Customer": "Customer", + "i18nTextDefine_Monitor": "Monitor", + "i18nTextDefine_Monitor_5g": "5G Slicing", + "i18nTextDefine_Services": "Services", + "i18nTextDefine_ServicesList": "Lifecycle Management", + "i18nTextDefine_SotnEline": "SOTN Eline", + "i18nTextDefine_Mangement_5g": "5G Slicing Management", + "i18nTextDefine_PackageManagement": "Package Management", + "i18nTextDefine_Alarm": "Alarm", + "i18nTextDefine_Performance": "Performance", + "i18nTextDefine_NetworkTopology": "Network Topology", + "i18nTextDefine_CCVPNNetwork":"CCVPN Network", + "i18nTextDefine_MDONSNetwork":"MDONS Network", + + "home-component": "--:", + "i18nTextDefine_SERVICES": "SERVICES", + "i18nTextDefine_PACKAGE": "PACKAGE", + "i18nTextDefine_Total": "Total", + "i18nTextDefine_cutomers_and": "cutomers and", + "i18nTextDefine_service_instance": "Service instance", + "i18nTextDefine_ViewDetails": "View Details", + "i18nTextDefine_ALARM": "ALARM", + "i18nTextDefine_VNF_Alarm": "VNF Alarm", + "i18nTextDefine_VM_Alarm": "VM Alarm", + "i18nTextDefine_VM_Performance": "VM PERFORMANCE", + "services-list-component":"--:", + "i18nTextDefine_ServiceType":"Service Type", + "i18nTextDefine_Create":"Create", + "i18nTextDefine_Failed":"Failed", + "i18nTextDefine_Success":"Success", + "i18nTextDefine_InProgress":"In Progress", + "i18nTextDefine_End_To_End_Service":"End To End Service", + "i18nTextDefine_Network_Service":"Network Service", + "i18nTextDefine_Cross_Domain_and_Cross_Layer_VPN":"Cross Domain and Cross Layer VPN", + "i18nTextDefine_MDONS":"Multi Domain Orchaestrational Network Service", + "i18nTextDefine_NO":"NO", + "i18nTextDefine_Name":"Name", + "i18nTextDefine_Description":"Description", + "i18nTextDefine_UseCase":"Use Case", + "i18nTextDefine_Status":"Status", + "i18nTextDefine_Action":"Action", + "i18nTextDefine_Template":"Template", + "i18nTextDefine_Orchestrator":"Orchestrator", + "i18nTextDefine_ServiceCreation":"Service Creation", + "i18nTextDefine_Cancel":"Cancel", + "i18nTextDefine_modelOk":"OK", + "i18nTextDefine_Scale":"Scale", + "i18nTextDefine_SureScale":"Are you sure scale this instance?", + "i18nTextDefine_InstanceName":"Instance Name", + "i18nTextDefine_InstanceID":"Instance ID", + "i18nTextDefine_ScaleType":"Scale Type", + "i18nTextDefine_AspectId":"AspectId", + "i18nTextDefine_Number_Of_Steps":"Number Of Steps", + "i18nTextDefine_ScalingDirection":"Scaling Direction", + "i18nTextDefine_delete":"Delete", + "i18nTextDefine_SureDelete":"Are you sure delete this instance?", + "i18nTextDefine_terminationType":"Termination Type", + "i18nTextDefine_graceful":"graceful", + "i18nTextDefine_forceful":"forceful", + "i18nTextDefine_gracefulTerminationTimeout":"graceful Termination Timeout", + "i18nTextDefine_Heal":"Heal", + "i18nTextDefine_SureHeal":"Are you sure heal this instance?", + "i18nTextDefine_degreeHealing":"degreeHealing", + "i18nTextDefine_actionsHealing":"actionsHealing", + "i18nTextDefine_healScript":"healScript", + "i18nTextDefine_additionalParamsforNs":"additional Params for NS", + "i18nTextDefine_cause":"cause", + "i18nTextDefine_action":"action", + "i18nTextDefine_actionvminfo":"actionvminfo", + "i18nTextDefine_Update":"Update", + "i18nTextDefine_InstanceCreationStarting":"instance creation is starting.", + "i18nTextDefine_InstanceCreatedSuccessfully":"instance was created successfully.", + "i18nTextDefine_InstanceCreationFailed":"instance creation failed!!!", + "i18nTextDefine_InstanceTeminationStarting":"instance temination is starting.", + "i18nTextDefine_InstanceTeminatedSuccessfully":"instance was teminated successfully.", + "i18nTextDefine_InstanceTeminationFailed":" instance temination failed!!!", + "i18nTextDefine_InstanceScaleStarting":"instance scale is starting.", + "i18nTextDefine_InstanceScaledSuccessfully":"instance was scaled successfully.", + "i18nTextDefine_InstanceScaleFailed":"instance scale failed!!!", + "i18nTextDefine_InstanceHealingStarting":" instance healing is starting.", + "i18nTextDefine_InstanceHealedSuccessfully":"instance was healed successfully.", + "i18nTextDefine_InstanceHealingFailed":"instance healing failed!!!", + "i18nTextDefine_InstanceUpdateStarting":"instance update is starting.", + "i18nTextDefine_InstanceUpdatedSuccessfully":"instance was updated successfully.", + "i18nTextDefine_InstanceUpdateFailed":"instance update failed!!!", + "i18nTextDefine_Close":"close", + "i18nTextDefine_Templateparsingfailed": "Template parsing failed", + + "ccvpn-creation-component": "--:", + "i18nTextDefine_InstanceCreation": "Instance Creation", + "i18nTextDefine_InstanceTopology": "Instance Topology", + "i18nTextDefine_Add": "Add", + "i18nTextDefine_Base": "Base", + "i18nTextDefine_templateInputs": "Template Inputs", + + "ccvpn-detail-component": "--:", + "i18nTextDefine_InstanceDetail": "Instance Detail", + + "onboard-vnf-vm-component": "--:", + "i18nTextDefine_Click_CSAR_File": "Click or drag CSAR File here", + "i18nTextDefine_Uploaded_files": "Uploaded files", + "i18nTextDefine_Uploading": "Uploading", + "i18nTextDefine_StartUpload": "StartUpload", + "i18nTextDefine_Nofileuploading": "No file is uploading.", + "i18nTextDefine_File_upload_completed": "File upload completed", + "i18nTextDefine_File_upload_failed": "File upload failed", + "i18nTextDefine_Version": "Version", + "i18nTextDefine_OnboardingState": "Onboarding State", + "i18nTextDefine_OperationalState": "Operational State", + "i18nTextDefine_NS": "NS", + "i18nTextDefine_PNF": "PNF", + "i18nTextDefine_VNF": "VNF", + "i18nTextDefine_UsageState": "Usage State", + "i18nTextDefine_Operationbutton": "Operation button", + + "management-component": "--:", + "i18nTextDefine_Create_initial_customer": "Create initial customer", + "i18nTextDefine_Customer_not_in_ONAP": "Customer has not been created in ONAP", + "i18nTextDefine_CreateCustomer": "Please create customer and its service type", + "i18nTextDefine_Input_customerName": "Input customer name", + + "customer-component": "--:", + "i18nTextDefine_Instance_Count_of_Customer": "Instance Count of Customer", + "i18nTextDefine_users": "Users", + "i18nTextDefine_Instance_Count_of_ServiceType": "Instance Count of Service Type", + "i18nTextDefine_Input_ServicesType": "Input services type", + "i18nTextDefine_Input_Sure_deleteCustomer": "Are you sure delete this Customer ?", + "i18nTextDefine_Input_Sure_deleteServiceType": "Are you sure delete this Service Type ?", + "i18nTextDefine_CustomerName": "Customer Name", + "i18nTextDefine_CustomerID": "Customer ID", + + "ccvpn-network-component": "--:", + "i18nTextDefine_CreateLink": "Create Link", + "i18nTextDefine_SetAttribtes": "Set Attribtes", + "i18nTextDefine_LinkName": "Link Name ", + "i18nTextDefine_LeftPort": "Left Port", + "i18nTextDefine_Network": "Network", + "i18nTextDefine_Node": "Node", + "i18nTextDefine_TerminalPoint": "Terminal Point", + "i18nTextDefine_RightPort": "Right Port", + "i18nTextDefine_PartnerNetwork": "Partner Network", + "i18nTextDefine_HostUrl": "Host Url", + "i18nTextDefine_DeleteLink": "Delete Link", + + "sotn-component": "--:", + "i18nTextDefine_subscriptionType": "Service Type", + "i18nTextDefine_serviceInstance": "Service Instance", + "i18nTextDefine_serviceInformation": "Service Information", + "i18nTextDefine_vpnInformation": "VPN Information", + "i18nTextDefine_uniInformation": "UNI Information", + "i18nTextDefine_terminationPoint": "Termination Point", + "i18nTextDefine_topology": "Topology", + "i18nTextDefine_colorAware": "Color Aware", + "i18nTextDefine_couplingFlag": "Coupling Flag", + "i18nTextDefine_serviceTopology": "Service Topology", + "i18nTextDefine_resourceTopology": "Resource Topology", + "i18nTextDefine_orderService":"Order Service", + "i18nTextDefine_monitorService":"Monitor Service", + "i18nTextDefine_manageService":"Manage Service", + + + "mdons-network-component":"--:", + "i18nTextDefine_InterDomainTitle": "Inter-domain link", + "i18nTextDefine_Domain":"Domain", + "i18nTextDefine_Interface": "Interface", + "i18nTextDefine_ResourceVersion": "Resource version", + "i18nTextDefine_NearEnd": "Near End", + "i18nTextDefine_FarEnd": "Far End", + "i18nTextDefine_ExternalNetworkMessage":"Note: Both the endpoints would be changed to ENNI.", + "i18nTextDefine_domainService":"Domain Services" +} diff --git a/usecaseui-portal/usecase-ui/assets/images/Return-icon-active.png b/usecaseui-portal/usecase-ui/assets/images/Return-icon-active.png new file mode 100644 index 00000000..2177d44c Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/Return-icon-active.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/Return-icon.png b/usecaseui-portal/usecase-ui/assets/images/Return-icon.png new file mode 100644 index 00000000..55431731 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/Return-icon.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/Services-icon-active.png b/usecaseui-portal/usecase-ui/assets/images/Services-icon-active.png new file mode 100644 index 00000000..a1b8c3e9 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/Services-icon-active.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/Services-icon.png b/usecaseui-portal/usecase-ui/assets/images/Services-icon.png new file mode 100644 index 00000000..0ca54865 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/Services-icon.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/UUIMenuBar.png b/usecaseui-portal/usecase-ui/assets/images/UUIMenuBar.png new file mode 100644 index 00000000..7faade31 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/UUIMenuBar.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/VM.png b/usecaseui-portal/usecase-ui/assets/images/VM.png new file mode 100644 index 00000000..72b31a5d Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/VM.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/VNF.png b/usecaseui-portal/usecase-ui/assets/images/VNF.png new file mode 100644 index 00000000..21b64db0 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/VNF.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/VNF1.png b/usecaseui-portal/usecase-ui/assets/images/VNF1.png new file mode 100644 index 00000000..0d37bebe Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/VNF1.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/VNF2.png b/usecaseui-portal/usecase-ui/assets/images/VNF2.png new file mode 100644 index 00000000..70a43a7c Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/VNF2.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/VNF3.png b/usecaseui-portal/usecase-ui/assets/images/VNF3.png new file mode 100644 index 00000000..e5904344 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/VNF3.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/bigcloud.png b/usecaseui-portal/usecase-ui/assets/images/bigcloud.png new file mode 100644 index 00000000..23bf7375 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/bigcloud.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/cloud-city1.png b/usecaseui-portal/usecase-ui/assets/images/cloud-city1.png new file mode 100644 index 00000000..051f7749 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/cloud-city1.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/cloud-county1.png b/usecaseui-portal/usecase-ui/assets/images/cloud-county1.png new file mode 100644 index 00000000..99b3e135 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/cloud-county1.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/cloud-out.png b/usecaseui-portal/usecase-ui/assets/images/cloud-out.png new file mode 100644 index 00000000..c47d7d8e Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/cloud-out.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/cloud-site.png b/usecaseui-portal/usecase-ui/assets/images/cloud-site.png new file mode 100644 index 00000000..97db0518 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/cloud-site.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/connectivity.png b/usecaseui-portal/usecase-ui/assets/images/connectivity.png new file mode 100644 index 00000000..77c97321 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/connectivity.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/create-box.png b/usecaseui-portal/usecase-ui/assets/images/create-box.png new file mode 100644 index 00000000..ce1bc289 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/create-box.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/create-e2e.png b/usecaseui-portal/usecase-ui/assets/images/create-e2e.png new file mode 100644 index 00000000..8ff6c4f4 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/create-e2e.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/create-ns.png b/usecaseui-portal/usecase-ui/assets/images/create-ns.png new file mode 100644 index 00000000..3a2b2bc4 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/create-ns.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/create-vnf.png b/usecaseui-portal/usecase-ui/assets/images/create-vnf.png new file mode 100644 index 00000000..6d2c4b75 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/create-vnf.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/customer-icon-active.png b/usecaseui-portal/usecase-ui/assets/images/customer-icon-active.png new file mode 100644 index 00000000..a9155bf3 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/customer-icon-active.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/customer-icon.png b/usecaseui-portal/usecase-ui/assets/images/customer-icon.png new file mode 100644 index 00000000..f0454173 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/customer-icon.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/customer.png b/usecaseui-portal/usecase-ui/assets/images/customer.png new file mode 100644 index 00000000..deb3fb01 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/customer.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/customer01.png b/usecaseui-portal/usecase-ui/assets/images/customer01.png new file mode 100644 index 00000000..8b60a1f1 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/customer01.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/customer02.png b/usecaseui-portal/usecase-ui/assets/images/customer02.png new file mode 100644 index 00000000..7593dd9f Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/customer02.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/customer03.png b/usecaseui-portal/usecase-ui/assets/images/customer03.png new file mode 100644 index 00000000..dd599566 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/customer03.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/customer04.png b/usecaseui-portal/usecase-ui/assets/images/customer04.png new file mode 100644 index 00000000..14506af2 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/customer04.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/customer05.png b/usecaseui-portal/usecase-ui/assets/images/customer05.png new file mode 100644 index 00000000..45e1c97e Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/customer05.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/customerBarUser.png b/usecaseui-portal/usecase-ui/assets/images/customerBarUser.png new file mode 100644 index 00000000..54aef5f8 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/customerBarUser.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/damaged-icon.png b/usecaseui-portal/usecase-ui/assets/images/damaged-icon.png new file mode 100644 index 00000000..37a016bc Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/damaged-icon.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/domain.png b/usecaseui-portal/usecase-ui/assets/images/domain.png new file mode 100644 index 00000000..68027b23 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/domain.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/domain1.png b/usecaseui-portal/usecase-ui/assets/images/domain1.png new file mode 100644 index 00000000..0ee3cf71 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/domain1.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/edge.png b/usecaseui-portal/usecase-ui/assets/images/edge.png new file mode 100644 index 00000000..95ee21bd Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/edge.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/execute-faild.png b/usecaseui-portal/usecase-ui/assets/images/execute-faild.png new file mode 100644 index 00000000..c7bfce06 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/execute-faild.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/execute-inproess.png b/usecaseui-portal/usecase-ui/assets/images/execute-inproess.png new file mode 100644 index 00000000..7a11d6cd Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/execute-inproess.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/execute-success.png b/usecaseui-portal/usecase-ui/assets/images/execute-success.png new file mode 100644 index 00000000..aaf46c35 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/execute-success.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/home-icon-active.png b/usecaseui-portal/usecase-ui/assets/images/home-icon-active.png new file mode 100644 index 00000000..c9371550 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/home-icon-active.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/home-icon.png b/usecaseui-portal/usecase-ui/assets/images/home-icon.png new file mode 100644 index 00000000..3a5e9212 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/home-icon.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/icon.png b/usecaseui-portal/usecase-ui/assets/images/icon.png new file mode 100644 index 00000000..3c6f04e4 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/icon.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/loading-animate2.gif b/usecaseui-portal/usecase-ui/assets/images/loading-animate2.gif new file mode 100644 index 00000000..1855bf3e Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/loading-animate2.gif differ diff --git a/usecaseui-portal/usecase-ui/assets/images/loading.gif b/usecaseui-portal/usecase-ui/assets/images/loading.gif new file mode 100644 index 00000000..57a6df2c Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/loading.gif differ diff --git a/usecaseui-portal/usecase-ui/assets/images/loadingdonghua.gif b/usecaseui-portal/usecase-ui/assets/images/loadingdonghua.gif new file mode 100644 index 00000000..7845fc9c Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/loadingdonghua.gif differ diff --git a/usecaseui-portal/usecase-ui/assets/images/logicallink.png b/usecaseui-portal/usecase-ui/assets/images/logicallink.png new file mode 100644 index 00000000..bfeccb43 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/logicallink.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/monitor-icon-active.png b/usecaseui-portal/usecase-ui/assets/images/monitor-icon-active.png new file mode 100644 index 00000000..6e06b662 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/monitor-icon-active.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/monitor-icon.png b/usecaseui-portal/usecase-ui/assets/images/monitor-icon.png new file mode 100644 index 00000000..8366b60b Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/monitor-icon.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/network-icon-active.png b/usecaseui-portal/usecase-ui/assets/images/network-icon-active.png new file mode 100644 index 00000000..12bde3d4 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/network-icon-active.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/network-icon.png b/usecaseui-portal/usecase-ui/assets/images/network-icon.png new file mode 100644 index 00000000..c42afa05 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/network-icon.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/no-network-available.png b/usecaseui-portal/usecase-ui/assets/images/no-network-available.png new file mode 100644 index 00000000..23040ef7 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/no-network-available.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/noDatalist.png b/usecaseui-portal/usecase-ui/assets/images/noDatalist.png new file mode 100644 index 00000000..a7f612ef Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/noDatalist.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/notificationmodel.png b/usecaseui-portal/usecase-ui/assets/images/notificationmodel.png new file mode 100644 index 00000000..315ed211 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/notificationmodel.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/open-close.png b/usecaseui-portal/usecase-ui/assets/images/open-close.png new file mode 100644 index 00000000..27e8f305 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/open-close.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/open-close2.png b/usecaseui-portal/usecase-ui/assets/images/open-close2.png new file mode 100644 index 00000000..0dd00861 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/open-close2.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/out-domain.png b/usecaseui-portal/usecase-ui/assets/images/out-domain.png new file mode 100644 index 00000000..6bcdd552 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/out-domain.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/scale-active.png b/usecaseui-portal/usecase-ui/assets/images/scale-active.png new file mode 100644 index 00000000..0ff69f30 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/scale-active.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/scale.png b/usecaseui-portal/usecase-ui/assets/images/scale.png new file mode 100644 index 00000000..1cd508bd Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/scale.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/service-type.png b/usecaseui-portal/usecase-ui/assets/images/service-type.png new file mode 100644 index 00000000..4d0844e3 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/service-type.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/service.png b/usecaseui-portal/usecase-ui/assets/images/service.png new file mode 100644 index 00000000..bcb21d35 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/service.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/servicelist-cccvpn.png b/usecaseui-portal/usecase-ui/assets/images/servicelist-cccvpn.png new file mode 100644 index 00000000..cef3655c Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/servicelist-cccvpn.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/servicelist-e2e.png b/usecaseui-portal/usecase-ui/assets/images/servicelist-e2e.png new file mode 100644 index 00000000..9e18f5bb Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/servicelist-e2e.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/servicelist-ns.png b/usecaseui-portal/usecase-ui/assets/images/servicelist-ns.png new file mode 100644 index 00000000..312ae40b Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/servicelist-ns.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/servicelist-sotn.png b/usecaseui-portal/usecase-ui/assets/images/servicelist-sotn.png new file mode 100644 index 00000000..5ecf3226 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/servicelist-sotn.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/shibai-icon.png b/usecaseui-portal/usecase-ui/assets/images/shibai-icon.png new file mode 100644 index 00000000..374f6270 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/shibai-icon.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/site.png b/usecaseui-portal/usecase-ui/assets/images/site.png new file mode 100644 index 00000000..f50a886e Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/site.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/tildeimg.png b/usecaseui-portal/usecase-ui/assets/images/tildeimg.png new file mode 100644 index 00000000..e39a315d Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/tildeimg.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/tp.png b/usecaseui-portal/usecase-ui/assets/images/tp.png new file mode 100644 index 00000000..3b0841a3 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/tp.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/tpoint.png b/usecaseui-portal/usecase-ui/assets/images/tpoint.png new file mode 100644 index 00000000..18e4e4cb Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/tpoint.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/update-active.png b/usecaseui-portal/usecase-ui/assets/images/update-active.png new file mode 100644 index 00000000..75eeecc0 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/update-active.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/update.png b/usecaseui-portal/usecase-ui/assets/images/update.png new file mode 100644 index 00000000..d6788024 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/update.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/uui-logo130.png b/usecaseui-portal/usecase-ui/assets/images/uui-logo130.png new file mode 100644 index 00000000..2843b006 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/uui-logo130.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/vpnbinding.png b/usecaseui-portal/usecase-ui/assets/images/vpnbinding.png new file mode 100644 index 00000000..6401677a Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/vpnbinding.png differ diff --git a/usecaseui-portal/usecase-ui/assets/images/wancheng-icon.png b/usecaseui-portal/usecase-ui/assets/images/wancheng-icon.png new file mode 100644 index 00000000..4d672a81 Binary files /dev/null and b/usecaseui-portal/usecase-ui/assets/images/wancheng-icon.png differ diff --git a/usecaseui-portal/usecase-ui/create-box.aef4ef8e1d464353155c.png b/usecaseui-portal/usecase-ui/create-box.aef4ef8e1d464353155c.png new file mode 100644 index 00000000..ce1bc289 Binary files /dev/null and b/usecaseui-portal/usecase-ui/create-box.aef4ef8e1d464353155c.png differ diff --git a/usecaseui-portal/usecase-ui/favicon.ico b/usecaseui-portal/usecase-ui/favicon.ico new file mode 100644 index 00000000..aa3eae68 Binary files /dev/null and b/usecaseui-portal/usecase-ui/favicon.ico differ diff --git a/usecaseui-portal/usecase-ui/icon.0b81791cf57e5be89f9a.png b/usecaseui-portal/usecase-ui/icon.0b81791cf57e5be89f9a.png new file mode 100644 index 00000000..3c6f04e4 Binary files /dev/null and b/usecaseui-portal/usecase-ui/icon.0b81791cf57e5be89f9a.png differ diff --git a/usecaseui-portal/usecase-ui/index.html b/usecaseui-portal/usecase-ui/index.html new file mode 100644 index 00000000..496667af --- /dev/null +++ b/usecaseui-portal/usecase-ui/index.html @@ -0,0 +1,15 @@ +UUI \ No newline at end of file diff --git a/usecaseui-portal/usecase-ui/inline.318b50c57b4eba3d437b.bundle.js b/usecaseui-portal/usecase-ui/inline.318b50c57b4eba3d437b.bundle.js new file mode 100644 index 00000000..1e8af07b --- /dev/null +++ b/usecaseui-portal/usecase-ui/inline.318b50c57b4eba3d437b.bundle.js @@ -0,0 +1 @@ +!function(r){var n=window.webpackJsonp;window.webpackJsonp=function(e,u,c){for(var f,i,p,a=0,l=[];a12?n:n+12:"sanje"===t?n+12:void 0},meridiem:function(n,t,e){return n<4?"rati":n<12?"sokalli":n<16?"donparam":n<20?"sanje":"rati"}})}(e("PJh5"))},"+3/4":function(n,t,e){"use strict";e.d(t,"a",function(){return l});var i=e("TToO"),l=function(n){function t(t){n.call(this),this.scheduler=t}return Object(i.__extends)(t,n),t.create=function(n){return new t(n)},t.dispatch=function(n){n.subscriber.complete()},t.prototype._subscribe=function(n){var e=this.scheduler;if(e)return e.schedule(t.dispatch,0,{subscriber:n});n.complete()},t}(e("YaPU").a)},"+3eL":function(n,t,e){"use strict";var i,l=e("WhVc");function o(){try{return i.apply(this,arguments)}catch(n){return l.errorObject.e=n,l.errorObject}}t.tryCatch=function(n){return i=n,o}},"+4ur":function(n,t,e){"use strict";var i=e("LxNc");t._catch=function(n){return i.catchError(n)(this)}},"+7/x":function(n,t,e){!function(n){"use strict";var t={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},e={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};n.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(n){return n+"\u0bb5\u0ba4\u0bc1"},preparse:function(n){return n.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(n){return e[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(n,t,e){return n<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":n<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":n<10?" \u0b95\u0bbe\u0bb2\u0bc8":n<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":n<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":n<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(n,t){return 12===n&&(n=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===t?n<2?n:n+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===t||"\u0b95\u0bbe\u0bb2\u0bc8"===t?n:"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===t&&n>=10?n:n+12},week:{dow:0,doy:6}})}(e("PJh5"))},"+7iS":function(n,t,e){"use strict";var i=e("dw63");t.findIndex=function(n,t){return function(e){return e.lift(new i.FindValueOperator(n,e,!0,t))}}},"+CnV":function(n,t,e){"use strict";e.d(t,"a",function(){return i});var i=function(n){var t,i=e("AMGY").a.Symbol;return"function"==typeof i?i.observable?t=i.observable:(t=i("observable"),i.observable=t):t="@@observable",t}()},"+EXD":function(n,t,e){"use strict";var i=e("TToO").__extends,l=e("rCTf"),o=e("CURp"),r=e("wAkD");t.DeferObservable=function(n){function t(t){n.call(this),this.observableFactory=t}return i(t,n),t.create=function(n){return new t(n)},t.prototype._subscribe=function(n){return new s(n,this.observableFactory)},t}(l.Observable);var s=function(n){function t(t,e){n.call(this,t),this.factory=e,this.tryDefer()}return i(t,n),t.prototype.tryDefer=function(){try{this._callFactory()}catch(n){this._error(n)}},t.prototype._callFactory=function(){var n=this.factory();n&&this.add(o.subscribeToResult(this,n))},t}(r.OuterSubscriber)},"+I/r":function(n,t,e){"use strict";var i=e("TLKQ");t.onErrorResumeNext=i.onErrorResumeNextStatic},"+KN+":function(n,t,e){"use strict";var i=e("rCTf"),l=e("O/+v");i.Observable.prototype.bufferCount=l.bufferCount},"+Ku1":function(n,t,e){"use strict";t.a=function(n){return function(t){return t.lift(new r(n))}};var i=e("TToO"),l=e("tZ2B"),o=e("PIsA"),r=function(){function n(n){this.closingNotifier=n}return n.prototype.call=function(n,t){return t.subscribe(new s(n,this.closingNotifier))},n}(),s=function(n){function t(t,e){n.call(this,t),this.buffer=[],this.add(Object(o.a)(this,e))}return Object(i.__extends)(t,n),t.prototype._next=function(n){this.buffer.push(n)},t.prototype.notifyNext=function(n,t,e,i,l){var o=this.buffer;this.buffer=[],this.destination.next(o)},t}(l.a)},"+Y2e":function(n,t,e){"use strict";var i=e("TToO").__extends,l=e("EEr4"),o=e("mmVS"),r=e("rCTf"),s=e("B00U"),a=e("VOfZ"),u=e("MQMf"),c=e("+3eL"),h=e("WhVc"),d=e("KLoZ");t.WebSocketSubject=function(n){function t(t,e){if(t instanceof r.Observable)n.call(this,e,t);else{if(n.call(this),this.WebSocketCtor=a.root.WebSocket,this._output=new l.Subject,"string"==typeof t?this.url=t:d.assign(this,t),!this.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new u.ReplaySubject}}return i(t,n),t.prototype.resultSelector=function(n){return JSON.parse(n.data)},t.create=function(n){return new t(n)},t.prototype.lift=function(n){var e=new t(this,this.destination);return e.operator=n,e},t.prototype._resetState=function(){this.socket=null,this.source||(this.destination=new u.ReplaySubject),this._output=new l.Subject},t.prototype.multiplex=function(n,t,e){var i=this;return new r.Observable(function(l){var o=c.tryCatch(n)();o===h.errorObject?l.error(h.errorObject.e):i.next(o);var r=i.subscribe(function(n){var t=c.tryCatch(e)(n);t===h.errorObject?l.error(h.errorObject.e):t&&l.next(n)},function(n){return l.error(n)},function(){return l.complete()});return function(){var n=c.tryCatch(t)();n===h.errorObject?l.error(h.errorObject.e):i.next(n),r.unsubscribe()}})},t.prototype._connectSocket=function(){var n=this,t=this.WebSocketCtor,e=this._output,i=null;try{i=this.protocol?new t(this.url,this.protocol):new t(this.url),this.socket=i,this.binaryType&&(this.socket.binaryType=this.binaryType)}catch(n){return void e.error(n)}var l=new s.Subscription(function(){n.socket=null,i&&1===i.readyState&&i.close()});i.onopen=function(t){var r=n.openObserver;r&&r.next(t);var s=n.destination;n.destination=o.Subscriber.create(function(n){return 1===i.readyState&&i.send(n)},function(t){var l=n.closingObserver;l&&l.next(void 0),t&&t.code?i.close(t.code,t.reason):e.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),n._resetState()},function(){var t=n.closingObserver;t&&t.next(void 0),i.close(),n._resetState()}),s&&s instanceof u.ReplaySubject&&l.add(s.subscribe(n.destination))},i.onerror=function(t){n._resetState(),e.error(t)},i.onclose=function(t){n._resetState();var i=n.closeObserver;i&&i.next(t),t.wasClean?e.complete():e.error(t)},i.onmessage=function(t){var i=c.tryCatch(n.resultSelector)(t);i===h.errorObject?e.error(h.errorObject.e):e.next(i)}},t.prototype._subscribe=function(n){var t=this,e=this.source;if(e)return e.subscribe(n);this.socket||this._connectSocket();var i=new s.Subscription;return i.add(this._output.subscribe(n)),i.add(function(){var n=t.socket;0===t._output.observers.length&&(n&&1===n.readyState&&n.close(),t._resetState())}),i},t.prototype.unsubscribe=function(){var t=this.source,e=this.socket;e&&1===e.readyState&&(e.close(),this._resetState()),n.prototype.unsubscribe.call(this),t||(this.destination=new u.ReplaySubject)},t}(l.AnonymousSubject)},"+Zxz":function(n,t,e){"use strict";var i=e("TToO").__extends,l=e("mmVS");t.defaultIfEmpty=function(n){return void 0===n&&(n=null),function(t){return t.lift(new o(n))}};var o=function(){function n(n){this.defaultValue=n}return n.prototype.call=function(n,t){return t.subscribe(new r(n,this.defaultValue))},n}(),r=function(n){function t(t,e){n.call(this,t),this.defaultValue=e,this.isEmpty=!0}return i(t,n),t.prototype._next=function(n){this.isEmpty=!1,this.destination.next(n)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(l.Subscriber)},"+ayw":function(n,t,e){"use strict";var i=e("sTFn");t.share=function(){return i.share()(this)}},"+j5Y":function(n,t,e){"use strict";e.d(t,"d",function(){return L}),e.d(t,"f",function(){return D}),e.d(t,"b",function(){return N}),e.d(t,"a",function(){return j}),e.d(t,"j",function(){return x}),e.d(t,"g",function(){return T}),e.d(t,"i",function(){return k}),e.d(t,"e",function(){return f}),e.d(t,"c",function(){return _}),e.d(t,"k",function(){return C}),e.d(t,"h",function(){return Y}),e.d(t,"o",function(){return z}),e.d(t,"l",function(){return P}),e.d(t,"m",function(){return A}),e.d(t,"n",function(){return F});var i=e("WT6e"),l=e("bkcK"),o=e("TToO"),r=e("9Ocp"),s=e("g5jc"),a=e("VwZZ"),u=e("w9is"),c=e("hl8n"),h=e("akf3"),d=e("YrNA"),p=function(){function n(){}return n.prototype.enable=function(){},n.prototype.disable=function(){},n.prototype.attach=function(){},n}(),f=function(){return function(n){var t=this;this.scrollStrategy=new p,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.direction="ltr",n&&Object.keys(n).filter(function(t){return"undefined"!=typeof n[t]}).forEach(function(e){return t[e]=n[e]})}}(),_=function(n,t,e,i){this.offsetX=e,this.offsetY=i,this.originX=n.originX,this.originY=n.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY};function m(){return Error("Scroll strategy has already been attached.")}var g=function(){function n(n,t,e,i){var l=this;this._scrollDispatcher=n,this._ngZone=t,this._viewportRuler=e,this._config=i,this._scrollSubscription=null,this._detach=function(){l.disable(),l._overlayRef.hasAttached()&&l._ngZone.run(function(){return l._overlayRef.detach()})}}return n.prototype.attach=function(n){if(this._overlayRef)throw m();this._overlayRef=n},n.prototype.enable=function(){var n=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=n._viewportRuler.getViewportScrollPosition().top;Math.abs(t-n._initialScrollPosition)>n._config.threshold?n._detach():n._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}},n.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},n}(),v=function(){function n(n,t){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}return n.prototype.attach=function(){},n.prototype.enable=function(){if(this._canBeEnabled()){var n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=-this._previousScrollPosition.left+"px",n.style.top=-this._previousScrollPosition.top+"px",n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},n.prototype.disable=function(){if(this._isEnabled){var n=this._document.documentElement,t=this._document.body,e=n.style.scrollBehavior||"",i=t.style.scrollBehavior||"";this._isEnabled=!1,n.style.left=this._previousHTMLStyles.left,n.style.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),n.style.scrollBehavior=t.style.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),n.style.scrollBehavior=e,t.style.scrollBehavior=i}},n.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var n=this._document.body,t=this._viewportRuler.getViewportSize();return n.scrollHeight>t.height||n.scrollWidth>t.width},n}();function y(n,t){return t.some(function(t){return n.bottomt.bottom||n.rightt.right})}function b(n,t){return t.some(function(t){return n.topt.bottom||n.leftt.right})}var w=function(){function n(n,t,e,i){this._scrollDispatcher=n,this._viewportRuler=t,this._ngZone=e,this._config=i,this._scrollSubscription=null}return n.prototype.attach=function(n){if(this._overlayRef)throw m();this._overlayRef=n},n.prototype.enable=function(){var n=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(n._overlayRef.updatePosition(),n._config&&n._config.autoClose){var t=n._overlayRef.overlayElement.getBoundingClientRect(),e=n._viewportRuler.getViewportSize(),i=e.width,l=e.height;y(t,[{width:i,height:l,bottom:l,right:i,top:0,left:0}])&&(n.disable(),n._ngZone.run(function(){return n._overlayRef.detach()}))}}))},n.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},n}(),C=function(){return function(n,t,e,i){var l=this;this._scrollDispatcher=n,this._viewportRuler=t,this._ngZone=e,this.noop=function(){return new p},this.close=function(n){return new g(l._scrollDispatcher,l._ngZone,l._viewportRuler,n)},this.block=function(){return new v(l._viewportRuler,l._document)},this.reposition=function(n){return new w(l._scrollDispatcher,l._viewportRuler,l._ngZone,n)},this._document=i}}(),x=function(){function n(n,t,e,i,l,o){this._portalOutlet=n,this._pane=t,this._config=e,this._ngZone=i,this._keyboardDispatcher=l,this._document=o,this._backdropElement=null,this._backdropClick=new s.b,this._attachments=new s.b,this._detachments=new s.b,this._keydownEvents=new s.b,e.scrollStrategy&&e.scrollStrategy.attach(this)}return Object.defineProperty(n.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),n.prototype.attach=function(n){var t=this,e=this._portalOutlet.attach(n);return this._config.positionStrategy&&this._config.positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Object(r.a)(1)).subscribe(function(){t.hasAttached()&&t.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&(Array.isArray(this._config.panelClass)?this._config.panelClass.forEach(function(n){return t._pane.classList.add(n)}):this._pane.classList.add(this._config.panelClass)),this._attachments.next(),this._keyboardDispatcher.add(this),e},n.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._config.positionStrategy&&this._config.positionStrategy.detach&&this._config.positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable();var n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),n}},n.prototype.dispose=function(){var n=this.hasAttached();this._config.positionStrategy&&this._config.positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this.detachBackdrop(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),n&&this._detachments.next(),this._detachments.complete()},n.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},n.prototype.backdropClick=function(){return this._backdropClick.asObservable()},n.prototype.attachments=function(){return this._attachments.asObservable()},n.prototype.detachments=function(){return this._detachments.asObservable()},n.prototype.keydownEvents=function(){return this._keydownEvents.asObservable()},n.prototype.getConfig=function(){return this._config},n.prototype.updatePosition=function(){this._config.positionStrategy&&this._config.positionStrategy.apply()},n.prototype.updateSize=function(n){this._config=Object(o.__assign)({},this._config,n),this._updateElementSize()},n.prototype.setDirection=function(n){this._config=Object(o.__assign)({},this._config,{direction:n}),this._updateElementDirection()},n.prototype._updateElementDirection=function(){this._pane.setAttribute("dir",this._config.direction)},n.prototype._updateElementSize=function(){(this._config.width||0===this._config.width)&&(this._pane.style.width=S(this._config.width)),(this._config.height||0===this._config.height)&&(this._pane.style.height=S(this._config.height)),(this._config.minWidth||0===this._config.minWidth)&&(this._pane.style.minWidth=S(this._config.minWidth)),(this._config.minHeight||0===this._config.minHeight)&&(this._pane.style.minHeight=S(this._config.minHeight)),(this._config.maxWidth||0===this._config.maxWidth)&&(this._pane.style.maxWidth=S(this._config.maxWidth)),(this._config.maxHeight||0===this._config.maxHeight)&&(this._pane.style.maxHeight=S(this._config.maxHeight))},n.prototype._togglePointerEvents=function(n){this._pane.style.pointerEvents=n?"auto":"none"},n.prototype._attachBackdrop=function(){var n=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._backdropElement.classList.add(this._config.backdropClass),this._pane.parentElement.insertBefore(this._backdropElement,this._pane),this._backdropElement.addEventListener("click",function(t){return n._backdropClick.next(t)}),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){n._backdropElement&&n._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},n.prototype._updateStackingOrder=function(){this._pane.nextSibling&&this._pane.parentNode.appendChild(this._pane)},n.prototype.detachBackdrop=function(){var n=this,t=this._backdropElement;if(t){var e=function(){t&&t.parentNode&&t.parentNode.removeChild(t),n._backdropElement==t&&(n._backdropElement=null)};t.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&t.classList.remove(this._config.backdropClass),t.addEventListener("transitionend",e),t.style.pointerEvents="none",this._ngZone.runOutsideAngular(function(){setTimeout(e,500)})}},n}();function S(n){return"string"==typeof n?n:n+"px"}var O=function(){function n(n,t,e,i,l){this._connectedTo=e,this._viewportRuler=i,this._document=l,this._dir="ltr",this._offsetX=0,this._offsetY=0,this.scrollables=[],this._resizeSubscription=a.a.EMPTY,this._preferredPositions=[],this._applied=!1,this._positionLocked=!1,this._onPositionChange=new s.b,this._origin=this._connectedTo.nativeElement,this.withFallbackPosition(n,t)}return Object.defineProperty(n.prototype,"_isRtl",{get:function(){return"rtl"===this._dir},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onPositionChange",{get:function(){return this._onPositionChange.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),n.prototype.attach=function(n){var t=this;this._pane=n.overlayElement,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){return t.apply()})},n.prototype.dispose=function(){this._applied=!1,this._resizeSubscription.unsubscribe(),this._onPositionChange.complete()},n.prototype.detach=function(){this._applied=!1,this._resizeSubscription.unsubscribe()},n.prototype.apply=function(){if(this._applied&&this._positionLocked&&this._lastConnectedPosition)this.recalculateLastPosition();else{this._applied=!0;for(var n,t,e=this._pane,i=this._origin.getBoundingClientRect(),l=e.getBoundingClientRect(),o=this._viewportRuler.getViewportSize(),r=0,s=this._preferredPositions;r-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._unsubscribeFromKeydownEvents()},n.prototype._subscribeToKeydownEvents=function(){var n=this,t=Object(c.a)(this._document.body,"keydown",!0);this._keydownEventSubscription=t.pipe(Object(u.a)(function(){return!!n._attachedOverlays.length})).subscribe(function(t){n._selectOverlayFromEvent(t)._keydownEvents.next(t)})},n.prototype._unsubscribeFromKeydownEvents=function(){this._keydownEventSubscription&&(this._keydownEventSubscription.unsubscribe(),this._keydownEventSubscription=null)},n.prototype._selectOverlayFromEvent=function(n){return this._attachedOverlays.find(function(t){return t.overlayElement===n.target||t.overlayElement.contains(n.target)})||this._attachedOverlays[this._attachedOverlays.length-1]},n}();function z(n,t){return n||new T(t)}var D=function(){function n(n){this._document=n}return n.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},n.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},n.prototype._createContainer=function(){var n=this._document.createElement("div");n.classList.add("cdk-overlay-container"),this._document.body.appendChild(n),this._containerElement=n},n}();function P(n,t){return n||new D(t)}var I=0,L=function(){function n(n,t,e,i,l,o,r,s,a){this.scrollStrategies=n,this._overlayContainer=t,this._componentFactoryResolver=e,this._positionBuilder=i,this._keyboardDispatcher=l,this._appRef=o,this._injector=r,this._ngZone=s,this._document=a}return n.prototype.create=function(n){var t=this._createPaneElement(),e=this._createPortalOutlet(t);return new x(e,t,new f(n),this._ngZone,this._keyboardDispatcher,this._document)},n.prototype.position=function(){return this._positionBuilder},n.prototype._createPaneElement=function(){var n=this._document.createElement("div");return n.id="cdk-overlay-"+I++,n.classList.add("cdk-overlay-pane"),this._overlayContainer.getContainerElement().appendChild(n),n},n.prototype._createPortalOutlet=function(n){return new l.b(n,this._componentFactoryResolver,this._appRef,this._injector)},n}(),E=[new _({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new _({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new _({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new _({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"})],A=new i.q("cdk-connected-overlay-scroll-strategy");function F(n){return function(){return n.scrollStrategies.reposition()}}var N=function(n){this.elementRef=n},j=function(){function n(n,t,e,o,r){this._overlay=n,this._scrollStrategy=o,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._backdropSubscription=a.a.EMPTY,this._offsetX=0,this._offsetY=0,this.scrollStrategy=this._scrollStrategy(),this.open=!1,this.backdropClick=new i.n,this.positionChange=new i.n,this.attach=new i.n,this.detach=new i.n,this._templatePortal=new l.d(t,e)}return Object.defineProperty(n.prototype,"offsetX",{get:function(){return this._offsetX},set:function(n){this._offsetX=n,this._position&&this._position.withOffsetX(n)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"offsetY",{get:function(){return this._offsetY},set:function(n){this._offsetY=n,this._position&&this._position.withOffsetY(n)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(n){this._hasBackdrop=Object(h.a)(n)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"lockPosition",{get:function(){return this._lockPosition},set:function(n){this._lockPosition=Object(h.a)(n)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_deprecatedOrigin",{get:function(){return this.origin},set:function(n){this.origin=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_deprecatedPositions",{get:function(){return this.positions},set:function(n){this.positions=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_deprecatedOffsetX",{get:function(){return this.offsetX},set:function(n){this.offsetX=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_deprecatedOffsetY",{get:function(){return this.offsetY},set:function(n){this.offsetY=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_deprecatedWidth",{get:function(){return this.width},set:function(n){this.width=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_deprecatedHeight",{get:function(){return this.height},set:function(n){this.height=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_deprecatedMinWidth",{get:function(){return this.minWidth},set:function(n){this.minWidth=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_deprecatedMinHeight",{get:function(){return this.minHeight},set:function(n){this.minHeight=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_deprecatedBackdropClass",{get:function(){return this.backdropClass},set:function(n){this.backdropClass=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_deprecatedScrollStrategy",{get:function(){return this.scrollStrategy},set:function(n){this.scrollStrategy=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_deprecatedOpen",{get:function(){return this.open},set:function(n){this.open=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_deprecatedHasBackdrop",{get:function(){return this.hasBackdrop},set:function(n){this.hasBackdrop=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"overlayRef",{get:function(){return this._overlayRef},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dir",{get:function(){return this._dir?this._dir.value:"ltr"},enumerable:!0,configurable:!0}),n.prototype.ngOnDestroy=function(){this._destroyOverlay()},n.prototype.ngOnChanges=function(n){this._position&&((n.positions||n._deprecatedPositions)&&this._position.withPositions(this.positions),n.lockPosition&&this._position.withLockedPosition(this.lockPosition),(n.origin||n._deprecatedOrigin)&&(this._position.setOrigin(this.origin.elementRef),this.open&&this._position.apply())),(n.open||n._deprecatedOpen)&&(this.open?this._attachOverlay():this._detachOverlay())},n.prototype._createOverlay=function(){this.positions&&this.positions.length||(this.positions=E),this._overlayRef=this._overlay.create(this._buildConfig())},n.prototype._buildConfig=function(){var n=this._position=this._createPositionStrategy(),t=new f({positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),t},n.prototype._createPositionStrategy=function(){for(var n=this,t=this.positions[0],e={originX:t.originX,originY:t.originY},i={overlayX:t.overlayX,overlayY:t.overlayY},l=this._overlay.position().connectedTo(this.origin.elementRef,e,i).withOffsetX(this.offsetX).withOffsetY(this.offsetY).withLockedPosition(this.lockPosition),o=1;o=2?function(e){return Object(r.a)(Object(i.a)(n,t),Object(l.a)(1),Object(o.a)(t))(e)}:function(t){return Object(r.a)(Object(i.a)(function(t,e,i){return n(t,e,i+1)}),Object(l.a)(1))(t)}};var i=e("E5SG"),l=e("T1Dh"),o=e("2ESx"),r=e("f9aG")},"/6P1":function(n,t,e){!function(n){"use strict";var t={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function e(n,t,e,i){return t?l(e)[0]:i?l(e)[1]:l(e)[2]}function i(n){return n%10==0||n>10&&n<20}function l(n){return t[n].split("_")}function o(n,t,o,r){var s=n+" ";return 1===n?s+e(0,t,o[0],r):t?s+(i(n)?l(o)[1]:l(o)[0]):r?s+l(o)[1]:s+(i(n)?l(o)[1]:l(o)[2])}n.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function(n,t,e,i){return t?"kelios sekund\u0117s":i?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:o,m:e,mm:o,h:e,hh:o,d:e,dd:o,M:e,MM:o,y:e,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(n){return n+"-oji"},week:{dow:1,doy:4}})}(e("PJh5"))},"/8te":function(n,t,e){"use strict";var i=e("Gb0N");t.range=i.RangeObservable.create},"/E8D":function(n,t,e){!function(n){"use strict";n.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(n){return(/^[0-9].+$/.test(n)?"tra":"in")+" "+n},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(e("PJh5"))},"/Foq":function(n,t,e){"use strict";var i;i=function(){return function(n){var t={};function e(i){if(t[i])return t[i].exports;var l=t[i]={i:i,l:!1,exports:{}};return n[i].call(l.exports,l,l.exports,e),l.l=!0,l.exports}return e.m=n,e.c=t,e.d=function(n,t,i){e.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:i})},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=123)}([function(n,t,e){t.__esModule=!0,t.default=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}},function(n,t,e){t.__esModule=!0;var i,l=(i=e(169))&&i.__esModule?i:{default:i};t.default=function(){function n(n,t){for(var e=0;e2&&void 0!==arguments[2]&&arguments[2];for(var l in n)void 0!==e[l]&&(null===e[l]||"object"!==(0,r.default)(e[l])?c(n,e,l,i):"object"===(0,r.default)(n[l])&&t.fillIfDefined(n[l],e[l],i))},t.extend=function(n,t){for(var e=1;e3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o=0;o3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o in i)if(i.hasOwnProperty(o)&&-1===n.indexOf(o))if(i[o]&&i[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?t.deepExtend(e[o],i[o]):c(e,i,o,l);else if(Array.isArray(i[o])){e[o]=[];for(var r=0;r2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var o in e)if(e.hasOwnProperty(o)||!0===i)if(e[o]&&e[o].constructor===Object)void 0===n[o]&&(n[o]={}),n[o].constructor===Object?t.deepExtend(n[o],e[o],i):c(n,e,o,l);else if(Array.isArray(e[o])){n[o]=[];for(var r=0;r=0&&(t="DOMMouseScroll"),n.addEventListener(t,e,i)):n.attachEvent("on"+t,e)},t.removeEventListener=function(n,t,e,i){n.removeEventListener?(void 0===i&&(i=!1),"mousewheel"===t&&navigator.userAgent.indexOf("Firefox")>=0&&(t="DOMMouseScroll"),n.removeEventListener(t,e,i)):n.detachEvent("on"+t,e)},t.preventDefault=function(n){n||(n=window.event),n.preventDefault?n.preventDefault():n.returnValue=!1},t.getTarget=function(n){var t;return n||(n=window.event),n.target?t=n.target:n.srcElement&&(t=n.srcElement),void 0!=t.nodeType&&3==t.nodeType&&(t=t.parentNode),t},t.hasParent=function(n,t){for(var e=n;e;){if(e===t)return!0;e=e.parentNode}return!1},t.option={},t.option.asBoolean=function(n,t){return"function"==typeof n&&(n=n()),null!=n?0!=n:t||null},t.option.asNumber=function(n,t){return"function"==typeof n&&(n=n()),null!=n?Number(n)||t||null:t||null},t.option.asString=function(n,t){return"function"==typeof n&&(n=n()),null!=n?String(n):t||null},t.option.asSize=function(n,e){return"function"==typeof n&&(n=n()),t.isString(n)?n:t.isNumber(n)?n+"px":e||null},t.option.asElement=function(n,t){return"function"==typeof n&&(n=n()),n||t||null},t.hexToRGB=function(n){n=n.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(n,t,e,i){return t+t+e+e+i+i});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},t.overrideOpacity=function(n,e){var i;return-1!=n.indexOf("rgba")?n:-1!=n.indexOf("rgb")?"rgba("+(i=n.substr(n.indexOf("(")+1).replace(")","").split(","))[0]+","+i[1]+","+i[2]+","+e+")":null==(i=t.hexToRGB(n))?n:"rgba("+i.r+","+i.g+","+i.b+","+e+")"},t.RGBToHex=function(n,t,e){return"#"+((1<<24)+(n<<16)+(t<<8)+e).toString(16).slice(1)},t.parseColor=function(n){var e;if(!0===t.isString(n)){if(!0===t.isValidRGB(n)){var i=n.substr(4).substr(0,n.length-5).split(",").map(function(n){return parseInt(n)});n=t.RGBToHex(i[0],i[1],i[2])}if(!0===t.isValidHex(n)){var l=t.hexToHSV(n),o={h:l.h,s:.8*l.s,v:Math.min(1,1.02*l.v)},r={h:l.h,s:Math.min(1,1.25*l.s),v:.8*l.v},s=t.HSVToHex(r.h,r.s,r.v),a=t.HSVToHex(o.h,o.s,o.v);e={background:n,border:s,highlight:{background:a,border:s},hover:{background:a,border:s}}}else e={background:n,border:n,highlight:{background:n,border:n},hover:{background:n,border:n}}}else(e={}).background=n.background||void 0,e.border=n.border||void 0,t.isString(n.highlight)?e.highlight={border:n.highlight,background:n.highlight}:(e.highlight={},e.highlight.background=n.highlight&&n.highlight.background||void 0,e.highlight.border=n.highlight&&n.highlight.border||void 0),t.isString(n.hover)?e.hover={border:n.hover,background:n.hover}:(e.hover={},e.hover.background=n.hover&&n.hover.background||void 0,e.hover.border=n.hover&&n.hover.border||void 0);return e},t.RGBToHSV=function(n,t,e){n/=255,t/=255,e/=255;var i=Math.min(n,Math.min(t,e)),l=Math.max(n,Math.max(t,e));return i==l?{h:0,s:0,v:i}:{h:60*((n==i?3:e==i?1:5)-(n==i?t-e:e==i?n-t:e-n)/(l-i))/360,s:(l-i)/l,v:l}};var d=function(n){var t={};return n.split(";").forEach(function(n){if(""!=n.trim()){var e=n.split(":"),i=e[0].trim(),l=e[1].trim();t[i]=l}}),t},p=function(n){return(0,o.default)(n).map(function(t){return t+": "+n[t]}).join("; ")};t.addCssText=function(n,e){var i=d(n.style.cssText),l=d(e),o=t.extend(i,l);n.style.cssText=p(o)},t.removeCssText=function(n,t){var e=d(n.style.cssText),i=d(t);for(var l in i)i.hasOwnProperty(l)&&delete e[l];n.style.cssText=p(e)},t.HSVToRGB=function(n,t,e){var i,l,o,r=Math.floor(6*n),s=6*n-r,a=e*(1-t),u=e*(1-s*t),c=e*(1-(1-s)*t);switch(r%6){case 0:i=e,l=c,o=a;break;case 1:i=u,l=e,o=a;break;case 2:i=a,l=e,o=c;break;case 3:i=a,l=u,o=e;break;case 4:i=c,l=a,o=e;break;case 5:i=e,l=a,o=u}return{r:Math.floor(255*i),g:Math.floor(255*l),b:Math.floor(255*o)}},t.HSVToHex=function(n,e,i){var l=t.HSVToRGB(n,e,i);return t.RGBToHex(l.r,l.g,l.b)},t.hexToHSV=function(n){var e=t.hexToRGB(n);return t.RGBToHSV(e.r,e.g,e.b)},t.isValidHex=function(n){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(n)},t.isValidRGB=function(n){return n=n.replace(" ",""),/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/i.test(n)},t.isValidRGBA=function(n){return n=n.replace(" ",""),/rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(.{1,3})\)/i.test(n)},t.selectiveBridgeObject=function(n,e){if(null!==e&&"object"===("undefined"==typeof e?"undefined":(0,r.default)(e))){for(var i=(0,l.default)(e),o=0;o0&&t(i,n[l-1])<0;l--)n[l]=n[l-1];n[l]=i}return n},t.mergeOptions=function(n,t,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=function(n){return null!==n&&void 0!==n},s=function(n){return null!==n&&"object"===("undefined"==typeof n?"undefined":(0,r.default)(n))};if(!s(n))throw new Error("Parameter mergeTarget must be an object");if(!s(t))throw new Error("Parameter options must be an object");if(!o(e))throw new Error("Parameter option must have a value");if(!s(i))throw new Error("Parameter globalOptions must be an object");var a=t[e],u=s(i)&&!function(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}(i)?i[e]:void 0,c=u?u.enabled:void 0;if(void 0!==a){if("boolean"==typeof a)return s(n[e])||(n[e]={}),void(n[e].enabled=a);if(null===a&&!s(n[e])){if(!o(u))return;n[e]=(0,l.default)(u)}if(s(a)){var h=!0;void 0!==a.enabled?h=a.enabled:void 0!==c&&(h=u.enabled),function(n,t,e){s(n[e])||(n[e]={});var i=t[e],l=n[e];for(var o in i)i.hasOwnProperty(o)&&(l[o]=i[o])}(n,t,e),n[e].enabled=h}}},t.binarySearchCustom=function(n,t,e,i){for(var l=0,o=0,r=n.length-1;o<=r&&l<1e4;){var s=Math.floor((o+r)/2),a=n[s],u=t(void 0===i?a[e]:a[e][i]);if(0==u)return s;-1==u?o=s+1:r=s-1,l++}return-1},t.binarySearchValue=function(n,t,e,i,l){var o,r,s,a,u=0,c=0,h=n.length-1;for(l=void 0!=l?l:function(n,t){return n==t?0:n0)return"before"==i?Math.max(0,a-1):a;if(l(r,t)<0&&l(s,t)>0)return"before"==i?a:Math.min(n.length-1,a+1);l(r,t)<0?c=a+1:h=a-1,u++}return-1},t.easingFunctions={linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return n*(2-n)},easeInOutQuad:function(n){return n<.5?2*n*n:(4-2*n)*n-1},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return--n*n*n+1},easeInOutCubic:function(n){return n<.5?4*n*n*n:(n-1)*(2*n-2)*(2*n-2)+1},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1- --n*n*n*n},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-8*--n*n*n*n},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1+--n*n*n*n*n},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1+16*--n*n*n*n*n}},t.getScrollBarWidth=function(){var n=document.createElement("p");n.style.width="100%",n.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(n),document.body.appendChild(t);var e=n.offsetWidth;t.style.overflow="scroll";var i=n.offsetWidth;return e==i&&(i=t.clientWidth),document.body.removeChild(t),e-i},t.topMost=function(n,t){var e=void 0;Array.isArray(t)||(t=[t]);var l=!0,o=!1,r=void 0;try{for(var s,a=(0,i.default)(n);!(l=(s=a.next()).done);l=!0){var u=s.value;if(u){e=u[t[0]];for(var c=1;cl?1:is)&&(r=a,s=u)}return r},u.prototype.min=function(n){var t,e,i=this._data,l=(0,o.default)(i),r=null,s=null;for(t=0,e=l.length;t0?(i=t[n].redundant[0],t[n].redundant.shift()):(i=document.createElementNS("http://www.w3.org/2000/svg",n),e.appendChild(i)):(i=document.createElementNS("http://www.w3.org/2000/svg",n),t[n]={used:[],redundant:[]},e.appendChild(i)),t[n].used.push(i),i},t.getDOMElement=function(n,t,e,i){var l;return t.hasOwnProperty(n)?t[n].redundant.length>0?(l=t[n].redundant[0],t[n].redundant.shift()):(l=document.createElement(n),void 0!==i?e.insertBefore(l,i):e.appendChild(l)):(l=document.createElement(n),t[n]={used:[],redundant:[]},void 0!==i?e.insertBefore(l,i):e.appendChild(l)),t[n].used.push(l),l},t.drawPoint=function(n,e,i,l,o,r){var s;if("circle"==i.style?((s=t.getSVGElement("circle",l,o)).setAttributeNS(null,"cx",n),s.setAttributeNS(null,"cy",e),s.setAttributeNS(null,"r",.5*i.size)):((s=t.getSVGElement("rect",l,o)).setAttributeNS(null,"x",n-.5*i.size),s.setAttributeNS(null,"y",e-.5*i.size),s.setAttributeNS(null,"width",i.size),s.setAttributeNS(null,"height",i.size)),void 0!==i.styles&&s.setAttributeNS(null,"style",i.styles),s.setAttributeNS(null,"class",i.className+" vis-point"),r){var a=t.getSVGElement("text",l,o);r.xOffset&&(n+=r.xOffset),r.yOffset&&(e+=r.yOffset),r.content&&(a.textContent=r.content),r.className&&a.setAttributeNS(null,"class",r.className+" vis-label"),a.setAttributeNS(null,"x",n),a.setAttributeNS(null,"y",e)}return s},t.drawBar=function(n,e,i,l,o,r,s,a){if(0!=l){l<0&&(e-=l*=-1);var u=t.getSVGElement("rect",r,s);u.setAttributeNS(null,"x",n-.5*i),u.setAttributeNS(null,"y",e),u.setAttributeNS(null,"width",i),u.setAttributeNS(null,"height",l),u.setAttributeNS(null,"class",o),a&&u.setAttributeNS(null,"style",a)}}},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.printStyle=void 0;var i=a(e(19)),l=a(e(6)),o=a(e(8)),r=a(e(0)),s=a(e(1));function a(n){return n&&n.__esModule?n:{default:n}}var u=e(2),c=!1,h=void 0,d="background: #FFeeee; color: #dd0000",p=function(){function n(){(0,r.default)(this,n)}return(0,s.default)(n,null,[{key:"validate",value:function(t,e,i){c=!1,h=e;var l=e;return void 0!==i&&(l=e[i]),n.parse(t,l,[]),c}},{key:"parse",value:function(t,e,i){for(var l in t)t.hasOwnProperty(l)&&n.check(l,t,e,i)}},{key:"check",value:function(t,e,i,l){if(void 0!==i[t]||void 0!==i.__any__){var o=t,r=!0;void 0===i[t]&&void 0!==i.__any__&&(o="__any__",r="object"===n.getType(e[t]));var s=i[o];r&&void 0!==s.__type__&&(s=s.__type__),n.checkFields(t,e,i,o,s,l)}else n.getSuggestion(t,i,l)}},{key:"checkFields",value:function(t,e,i,l,r,s){var a=function(e){console.log("%c"+e+n.printLocation(s,t),d)},h=n.getType(e[t]),p=r[h];void 0!==p?"array"===n.getType(p)&&-1===p.indexOf(e[t])?(a('Invalid option detected in "'+t+'". Allowed values are:'+n.print(p)+' not "'+e[t]+'". '),c=!0):"object"===h&&"__any__"!==l&&(s=u.copyAndExtendArray(s,t),n.parse(e[t],i[l],s)):void 0===r.any&&(a('Invalid type received for "'+t+'". Expected: '+n.print((0,o.default)(r))+". Received ["+h+'] "'+e[t]+'"'),c=!0)}},{key:"getType",value:function(n){var t="undefined"==typeof n?"undefined":(0,l.default)(n);return"object"===t?null===n?"null":n instanceof Boolean?"boolean":n instanceof Number?"number":n instanceof String?"string":Array.isArray(n)?"array":n instanceof Date?"date":void 0!==n.nodeType?"dom":!0===n._isAMomentObject?"moment":"object":"number"===t?"number":"boolean"===t?"boolean":"string"===t?"string":void 0===t?"undefined":t}},{key:"getSuggestion",value:function(t,e,i){var l,r=n.findInOptions(t,e,i,!1),s=n.findInOptions(t,h,[],!0);l=void 0!==r.indexMatch?" in "+n.printLocation(r.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+r.indexMatch+'"?\n\n':s.distance<=4&&r.distance>s.distance?" in "+n.printLocation(r.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+n.printLocation(s.path,s.closestMatch,""):r.distance<=8?'. Did you mean "'+r.closestMatch+'"?'+n.printLocation(r.path,t):". Did you mean one of these: "+n.print((0,o.default)(e))+n.printLocation(i,t),console.log('%cUnknown option detected: "'+t+'"'+l,d),c=!0}},{key:"findInOptions",value:function(t,e,i){var l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,r="",s=[],a=t.toLowerCase(),c=void 0;for(var h in e){var d=void 0;if(void 0!==e[h].__type__&&!0===l){var p=n.findInOptions(t,e[h],u.copyAndExtendArray(i,h));o>p.distance&&(r=p.closestMatch,s=p.path,o=p.distance,c=p.indexMatch)}else-1!==h.toLowerCase().indexOf(a)&&(c=h),o>(d=n.levenshteinDistance(t,h))&&(r=h,s=u.copyArray(i),o=d)}return{closestMatch:r,path:s,distance:o,indexMatch:c}}},{key:"printLocation",value:function(n,t){for(var e="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",i=0;i0&&(this.enableBorderDashes(n,t),n.stroke(),this.disableBorderDashes(n,t)),n.restore()}},{key:"performFill",value:function(n,t){this.enableShadow(n,t),n.fill(),this.disableShadow(n,t),this.performStroke(n,t)}},{key:"_addBoundingBoxMargin",value:function(n){this.boundingBox.left-=n,this.boundingBox.top-=n,this.boundingBox.bottom+=n,this.boundingBox.right+=n}},{key:"_updateBoundingBox",value:function(n,t,e,i,l){void 0!==e&&this.resize(e,i,l),this.left=n-this.width/2,this.top=t-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(n,t,e,i,l){this._updateBoundingBox(n,t,e,i,l)}},{key:"getDimensionsFromLabel",value:function(n,t,e){this.textSize=this.labelModule.getTextSize(n,t,e);var i=this.textSize.width,l=this.textSize.height;return 0===i&&(i=14,l=14),{width:i,height:l}}}]),n}();t.default=s},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(23));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){return(0,l.default)(this,t),(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o))}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"resize",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{size:this.options.size};if(this.needsRefresh(t,e)){this.labelModule.getTextSize(n,t,e);var l=2*i.size;this.width=l,this.height=l,this.radius=.5*this.width}}},{key:"_drawShape",value:function(n,t,e,i,l,o,r,s){this.resize(n,o,r,s),this.left=i-this.width/2,this.top=l-this.height/2,this.initContextForDraw(n,s),n[t](i,l,s.size),this.performFill(n,s),void 0!==this.options.label&&(this.labelModule.calculateLabelSize(n,o,r,i,l,"hanging"),this.labelModule.draw(n,i,l+.5*this.height+.5*this.labelModule.size.height,o,r,"hanging")),this.updateBoundingBox(i,l)}},{key:"updateBoundingBox",value:function(n,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=n-this.options.size,this.boundingBox.right=n+this.options.size,this.boundingBox.bottom=t+this.options.size,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),t}();t.default=c},function(n,t,e){var i=e(78),l=e(51);n.exports=function(n){return i(l(n))}},function(n,t,e){var i=e(20),l=e(39);n.exports=e(21)?function(n,t,e){return i.f(n,t,l(1,e))}:function(n,t,e){return n[t]=e,n}},function(n,t,e){var i=e(32);n.exports=function(n){if(!i(n))throw TypeError(n+" is not an object!");return n}},function(n,t){n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n,t,e){n.exports={default:e(138),__esModule:!0}},function(n,t,e){t.__esModule=!0;var i=o(e(188)),l=o(e(77));function o(n){return n&&n.__esModule?n:{default:n}}t.default=function(n,t){if(Array.isArray(n))return n;if((0,i.default)(Object(n)))return function(n,t){var e=[],i=!0,o=!1,r=void 0;try{for(var s,a=(0,l.default)(n);!(i=(s=a.next()).done)&&(e.push(s.value),!t||e.length!==t);i=!0);}catch(n){o=!0,r=n}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return e}(n,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,t){n.exports={}},function(n,t){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},function(n,t,e){var i=e(84),l=e(58);n.exports=Object.keys||function(n){return i(n,l)}},function(n,t,e){function i(n,t,e){this.x=void 0!==n?n:0,this.y=void 0!==t?t:0,this.z=void 0!==e?e:0}i.subtract=function(n,t){var e=new i;return e.x=n.x-t.x,e.y=n.y-t.y,e.z=n.z-t.z,e},i.add=function(n,t){var e=new i;return e.x=n.x+t.x,e.y=n.y+t.y,e.z=n.z+t.z,e},i.avg=function(n,t){return new i((n.x+t.x)/2,(n.y+t.y)/2,(n.z+t.z)/2)},i.crossProduct=function(n,t){var e=new i;return e.x=n.y*t.z-n.z*t.y,e.y=n.z*t.x-n.x*t.z,e.z=n.x*t.y-n.y*t.x,e},i.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},n.exports=i},function(n,t,e){var i,l;void 0===(l="function"==typeof(i=function(){return function(n){var t,e=n&&n.preventDefault||!1,i=n&&n.container||window,l={},o={keydown:{},keyup:{}},r={};for(t=97;t<=122;t++)r[String.fromCharCode(t)]={code:t-97+65,shift:!1};for(t=65;t<=90;t++)r[String.fromCharCode(t)]={code:t,shift:!0};for(t=0;t<=9;t++)r[""+t]={code:48+t,shift:!1};for(t=1;t<=12;t++)r["F"+t]={code:111+t,shift:!1};for(t=0;t<=9;t++)r["num"+t]={code:96+t,shift:!1};r["num*"]={code:106,shift:!1},r["num+"]={code:107,shift:!1},r["num-"]={code:109,shift:!1},r["num/"]={code:111,shift:!1},r["num."]={code:110,shift:!1},r.left={code:37,shift:!1},r.up={code:38,shift:!1},r.right={code:39,shift:!1},r.down={code:40,shift:!1},r.space={code:32,shift:!1},r.enter={code:13,shift:!1},r.shift={code:16,shift:void 0},r.esc={code:27,shift:!1},r.backspace={code:8,shift:!1},r.tab={code:9,shift:!1},r.ctrl={code:17,shift:!1},r.alt={code:18,shift:!1},r.delete={code:46,shift:!1},r.pageup={code:33,shift:!1},r.pagedown={code:34,shift:!1},r["="]={code:187,shift:!1},r["-"]={code:189,shift:!1},r["]"]={code:221,shift:!1},r["["]={code:219,shift:!1};var s=function(n){u(n,"keydown")},a=function(n){u(n,"keyup")},u=function(n,t){if(void 0!==o[t][n.keyCode]){for(var i=o[t][n.keyCode],l=0;l=4*r){var c=0,h=o.clone();switch(i[s].repeat){case"daily":a.day()!=u.day()&&(c=1),a.dayOfYear(l.dayOfYear()),a.year(l.year()),a.subtract(7,"days"),u.dayOfYear(l.dayOfYear()),u.year(l.year()),u.subtract(7-c,"days"),h.add(1,"weeks");break;case"weekly":var d=u.diff(a,"days"),p=a.day();a.date(l.date()),a.month(l.month()),a.year(l.year()),u=a.clone(),a.day(p),u.day(p),u.add(d,"days"),a.subtract(1,"weeks"),u.subtract(1,"weeks"),h.add(1,"weeks");break;case"monthly":a.month()!=u.month()&&(c=1),a.month(l.month()),a.year(l.year()),a.subtract(1,"months"),u.month(l.month()),u.year(l.year()),u.subtract(1,"months"),u.add(c,"months"),h.add(1,"months");break;case"yearly":a.year()!=u.year()&&(c=1),a.year(l.year()),a.subtract(1,"years"),u.year(l.year()),u.subtract(1,"years"),u.add(c,"years"),h.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",i[s].repeat)}for(;a=t[i].start&&t[l].end<=t[i].end?t[l].remove=!0:t[l].start>=t[i].start&&t[l].start<=t[i].end?(t[i].end=t[l].end,t[l].remove=!0):t[l].end>=t[i].start&&t[l].end<=t[i].end&&(t[i].start=t[l].start,t[l].remove=!0));for(i=0;i=t.hiddenDates[o].start&&ln.range.end?(e=t.correctTimeForHidden(n.options.moment,n.body.hiddenDates,{start:n.range.start,end:e},e),l=n.range.conversion(i,r),(e.valueOf()-l.offset)*l.scale):(e=t.correctTimeForHidden(n.options.moment,n.body.hiddenDates,n.range,e),l=n.range.conversion(i,r),(e.valueOf()-l.offset)*l.scale)},t.toTime=function(n,e,i){if(0==n.body.hiddenDates.length){var l=n.range.conversion(i);return new Date(e/l.scale+l.offset)}var o=t.getHiddenDurationBetween(n.body.hiddenDates,n.range.start,n.range.end),r=(n.range.end-n.range.start-o)*e/i,s=t.getAccumulatedHiddenDuration(n.body.hiddenDates,n.range,r);return new Date(s+r+n.range.start)},t.getHiddenDurationBetween=function(n,t,e){for(var i=0,l=0;l=t&&r=t&&r<=e&&(i+=r-o)}return i},t.correctTimeForHidden=function(n,e,i,l){return(l=n(l).toDate().valueOf())-t.getHiddenDurationBefore(n,e,i,l)},t.getHiddenDurationBefore=function(n,t,e,i){var l=0;i=n(i).toDate().valueOf();for(var o=0;o=e.start&&s=s&&(l+=s-r)}return l},t.getAccumulatedHiddenDuration=function(n,t,e){for(var i=0,l=0,o=t.start,r=0;r=t.start&&a=e)break;i+=a-s}}return i},t.snapAwayFromHidden=function(n,e,i,l){var o=t.isHidden(e,n);return 1==o.hidden?i<0?1==l?o.startDate-(o.endDate-e)-1:o.startDate-1:1==l?o.endDate+(e-o.startDate)+1:o.endDate+1:e},t.isHidden=function(n,t){for(var e=0;e=i&&n0){var t=[];if(Array.isArray(this.options.dataAttributes))t=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;t=(0,l.default)(this.data)}for(var e=0;ethis.max&&this.flush(),clearTimeout(this._timeout),this.queue.length>0&&"number"==typeof this.delay){var n=this;this._timeout=setTimeout(function(){n.flush()},this.delay)}},i.prototype.flush=function(){for(;this._queue.length>0;){var n=this._queue.shift();n.fn.apply(n.context||n.fn,n.args||[])}},n.exports=i},function(n,t){function e(n){if(n)return function(n){for(var t in e.prototype)n[t]=e.prototype[t];return n}(n)}n.exports=e,e.prototype.on=e.prototype.addEventListener=function(n,t){return this._callbacks=this._callbacks||{},(this._callbacks[n]=this._callbacks[n]||[]).push(t),this},e.prototype.once=function(n,t){var e=this;function i(){e.off(n,i),t.apply(this,arguments)}return this._callbacks=this._callbacks||{},i.fn=t,this.on(n,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(n,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var e,i=this._callbacks[n];if(!i)return this;if(1==arguments.length)return delete this._callbacks[n],this;for(var l=0;l=.4*m}if(this.options.showMinorLabels&&f){var x=this._repaintMinorText(c,v,n,y);x.style.width=b+"px"}p&&this.options.showMajorLabels?(c>0&&(void 0==w&&(w=c),x=this._repaintMajorText(c,r.getLabelMajor(),n,y)),g=this._repaintMajorLine(c,b,n,y)):f?g=this._repaintMinorLine(c,b,n,y):g&&(g.style.width=parseInt(g.style.width)+b+"px")}if(1e3!==C||h||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to 1000 lines."),h=!0),this.options.showMajorLabels){var S=this.body.util.toTime(0),O=r.getLabelMajor(S);(void 0==w||O.length*(this.props.majorCharWidth||10)+10n.left&&this.shape.topn.top}},{key:"isBoundingBoxOverlappingWith",value:function(n){return this.shape.boundingBox.leftn.left&&this.shape.boundingBox.topn.top}}],[{key:"updateGroupOptions",value:function(n,t,e){if(void 0!==e){var i=n.group;if(void 0!==t&&void 0!==t.group&&i!==t.group)throw new Error("updateGroupOptions: group values in options don't match.");if("number"==typeof i||"string"==typeof i&&""!=i){var l=e.get(i);r.selectiveNotDeepExtend(["font"],n,l),n.color=r.parseColor(n.color)}}}},{key:"parseOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments[4];if(r.selectiveNotDeepExtend(["color","fixed","shadow"],t,e,i),n.checkMass(e),r.mergeOptions(t,e,"shadow",l),void 0!==e.color&&null!==e.color){var s=r.parseColor(e.color);r.fillIfDefined(t.color,s)}else!0===i&&null===e.color&&(t.color=r.bridgeObject(l.color));void 0!==e.fixed&&null!==e.fixed&&("boolean"==typeof e.fixed?(t.fixed.x=e.fixed,t.fixed.y=e.fixed):(void 0!==e.fixed.x&&"boolean"==typeof e.fixed.x&&(t.fixed.x=e.fixed.x),void 0!==e.fixed.y&&"boolean"==typeof e.fixed.y&&(t.fixed.y=e.fixed.y))),!0===i&&null===e.font&&(t.font=r.bridgeObject(l.font)),n.updateGroupOptions(t,e,o),void 0!==e.scaling&&r.mergeOptions(t.scaling,e.scaling,"label",l.scaling)}},{key:"checkMass",value:function(n,t){if(void 0!==n.mass&&n.mass<=0){var e="";void 0!==t&&(e=" in node id: "+t),console.log("%cNegative or zero mass disallowed"+e+", setting mass to 1.",S),n.mass=1}}}]),n}();t.default=O},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=r(e(6)),l=r(e(0)),o=r(e(1));function r(n){return n&&n.__esModule?n:{default:n}}var s=e(2),a=function(){function n(){(0,l.default)(this,n)}return(0,o.default)(n,null,[{key:"choosify",value:function(n,t){var e=["node","edge","label"],l=!0,o=s.topMost(t,"chosen");if("boolean"==typeof o)l=o;else if("object"===("undefined"==typeof o?"undefined":(0,i.default)(o))){if(-1===e.indexOf(n))throw new Error("choosify: subOption '"+n+"' should be one of '"+e.join("', '")+"'");var r=s.topMost(t,["chosen",n]);"boolean"!=typeof r&&"function"!=typeof r||(l=r)}return l}},{key:"pointInRect",value:function(n,t,e){if(n.width<=0||n.height<=0)return!1;if(void 0!==e){var i={x:t.x-e.x,y:t.y-e.y};if(0!==e.angle){var l=-e.angle;t={x:Math.cos(l)*i.x-Math.sin(l)*i.y,y:Math.sin(l)*i.x+Math.cos(l)*i.y}}else t=i}return n.leftt.x&&n.topt.y}},{key:"isValidLabel",value:function(n){return"string"==typeof n&&""!==n}}]),n}();t.default=a},function(n,t,e){e(125);for(var i=e(18),l=e(26),o=e(31),r=e(13)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;adocument.F=Object<\/script>"),n.close(),a=n.F;i--;)delete a.prototype[o[i]];return a()};n.exports=Object.create||function(n,t){var e;return null!==n?(s.prototype=i(n),e=new s,s.prototype=null,e[r]=n):e=a(),void 0===t?e:l(e,t)}},function(n,t){var e=Math.ceil,i=Math.floor;n.exports=function(n){return isNaN(n=+n)?0:(n>0?i:e)(n)}},function(n,t,e){var i=e(57)("keys"),l=e(40);n.exports=function(n){return i[n]||(i[n]=l(n))}},function(n,t,e){var i=e(18),l=i["__core-js_shared__"]||(i["__core-js_shared__"]={});n.exports=function(n){return l[n]||(l[n]={})}},function(n,t){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,t,e){var i=e(20).f,l=e(22),o=e(13)("toStringTag");n.exports=function(n,t,e){n&&!l(n=e?n:n.prototype,o)&&i(n,o,{configurable:!0,value:t})}},function(n,t,e){var i=e(135)(!0);e(79)(String,"String",function(n){this._t=String(n),this._i=0},function(){var n,t=this._t,e=this._i;return e>=t.length?{value:void 0,done:!0}:(n=i(t,e),this._i+=n.length,{value:n,done:!1})})},function(n,t,e){t.f=e(13)},function(n,t,e){var i=e(18),l=e(7),o=e(52),r=e(61),s=e(20).f;n.exports=function(n){var t=l.Symbol||(l.Symbol=o?{}:i.Symbol||{});"_"==n.charAt(0)||n in t||s(t,n,{value:r.f(n)})}},function(n,t){t.f=Object.getOwnPropertySymbols},function(n,t,e){var i=r(e(8)),l=r(e(19)),o=r(e(6));function r(n){return n&&n.__esModule?n:{default:n}}var s=e(2),a=e(9),u=e(16),c=e(36);function h(n,t){var e=a().hours(0).minutes(0).seconds(0).milliseconds(0),i=e.clone().add(-3,"days").valueOf(),l=e.clone().add(3,"days").valueOf();this.millisecondsPerPixelCache=void 0,void 0===t?(this.start=i,this.end=l):(this.start=t.start||i,this.end=t.end||l),this.rolling=!1,this.body=n,this.deltaDifference=0,this.scaleOffset=0,this.startToFront=!1,this.endToFront=!0,this.defaultOptions={rtl:!1,start:null,end:null,moment:a,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},this.options=s.extend({},this.defaultOptions),this.props={touch:{}},this.animationTimer=null,this.body.emitter.on("panstart",this._onDragStart.bind(this)),this.body.emitter.on("panmove",this._onDrag.bind(this)),this.body.emitter.on("panend",this._onDragEnd.bind(this)),this.body.emitter.on("mousewheel",this._onMouseWheel.bind(this)),this.body.emitter.on("touch",this._onTouch.bind(this)),this.body.emitter.on("pinch",this._onPinch.bind(this)),this.body.dom.rollingModeBtn.addEventListener("click",this.startRolling.bind(this)),this.setOptions(t)}function d(n){if("horizontal"!=n&&"vertical"!=n)throw new TypeError('Unknown direction "'+n+'". Choose "horizontal" or "vertical".')}(h.prototype=new u).setOptions=function(n){n&&(s.selectiveExtend(["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","rtl","showCurrentTime","rollingMode","horizontalScroll"],this.options,n),n.rollingMode&&n.rollingMode.follow&&this.startRolling(),("start"in n||"end"in n)&&this.setRange(n.start,n.end))},h.prototype.startRolling=function(){var n=this;!function t(){n.stopRolling(),n.rolling=!0;var e=n.end-n.start,i=s.convert(new Date,"Date").valueOf();n.setRange(i-e*n.options.rollingMode.offset,i+e*(1-n.options.rollingMode.offset),{animation:!1}),(e=1/n.conversion(n.body.domProps.center.width).scale/10)<30&&(e=30),e>1e3&&(e=1e3),n.body.dom.rollingModeBtn.style.visibility="hidden",n.currentTimeTimer=setTimeout(t,e)}()},h.prototype.stopRolling=function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")},h.prototype.setRange=function(n,t,e,r,a){e||(e={}),!0!==e.byUser&&(e.byUser=!1);var u=this,h=void 0!=n?s.convert(n,"Date").valueOf():null,d=void 0!=t?s.convert(t,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,e.animation){var p=this.start,f=this.end,_="object"===(0,o.default)(e.animation)&&"duration"in e.animation?e.animation.duration:500,m="object"===(0,o.default)(e.animation)&&"easingFunction"in e.animation?e.animation.easingFunction:"easeInOutQuad",g=s.easingFunctions[m];if(!g)throw new Error("Unknown easing function "+(0,l.default)(m)+". Choose from: "+(0,i.default)(s.easingFunctions).join(", "));var v=(new Date).valueOf(),y=!1;return function n(){if(!u.props.touch.dragging){var t=(new Date).valueOf()-v,i=g(t/_),l=t>_;b=u._applyRange(l||null===h?h:p+(h-p)*i,l||null===d?d:f+(d-f)*i),c.updateHiddenDates(u.options.moment,u.body,u.options.hiddenDates),y=y||b;var o={start:new Date(u.start),end:new Date(u.end),byUser:e.byUser,event:e.event};if(a&&a(i,b,l),b&&u.body.emitter.emit("rangechange",o),l){if(y&&(u.body.emitter.emit("rangechanged",o),r))return r()}else u.animationTimer=setTimeout(n,20)}}()}var b=this._applyRange(h,d);if(c.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates),b){var w={start:new Date(this.start),end:new Date(this.end),byUser:e.byUser,event:e.event};if(this.body.emitter.emit("rangechange",w),clearTimeout(u.timeoutID),u.timeoutID=setTimeout(function(){u.body.emitter.emit("rangechanged",w)},200),r)return r()}},h.prototype.getMillisecondsPerPixel=function(){return void 0===this.millisecondsPerPixelCache&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache},h.prototype._cancelAnimation=function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)},h.prototype._applyRange=function(n,t){var e,i=null!=n?s.convert(n,"Date").valueOf():this.start,l=null!=t?s.convert(t,"Date").valueOf():this.end,o=null!=this.options.max?s.convert(this.options.max,"Date").valueOf():null,r=null!=this.options.min?s.convert(this.options.min,"Date").valueOf():null;if(isNaN(i)||null===i)throw new Error('Invalid start "'+n+'"');if(isNaN(l)||null===l)throw new Error('Invalid end "'+t+'"');if(lo&&(l=o)),null!==o&&l>o&&(i-=e=l-o,l-=e,null!=r&&i=this.start-.5&&l<=this.end?(i=this.start,l=this.end):(i-=(e=a-(l-i))/2,l+=e/2))}if(null!==this.options.zoomMax){var u=parseFloat(this.options.zoomMax);u<0&&(u=0),l-i>u&&(this.end-this.start===u&&ithis.end?(i=this.start,l=this.end):(i+=(e=l-i-u)/2,l-=e/2))}var c=this.start!=i||this.end!=l;return i>=this.start&&i<=this.end||l>=this.start&&l<=this.end||this.start>=i&&this.start<=l||this.end>=i&&this.end<=l||this.body.emitter.emit("checkRangedItems"),this.start=i,this.end=l,c},h.prototype.getRange=function(){return{start:this.start,end:this.end}},h.prototype.conversion=function(n,t){return h.conversion(this.start,this.end,n,t)},h.conversion=function(n,t,e,i){return void 0===i&&(i=0),0!=e&&t-n!=0?{offset:n,scale:e/(t-n-i)}:{offset:0,scale:1}},h.prototype._onDragStart=function(n){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(n)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))},h.prototype._onDrag=function(n){if(n&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var t=this.options.direction;d(t);var e="horizontal"==t?n.deltaX:n.deltaY;e-=this.deltaDifference;var i=this.props.touch.end-this.props.touch.start;i-=c.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end);var l,o="horizontal"==t?this.body.domProps.center.width:this.body.domProps.center.height,r=this.props.touch.start+(l=this.options.rtl?e/o*i:-e/o*i),s=this.props.touch.end+l,a=c.snapAwayFromHidden(this.body.hiddenDates,r,this.previousDelta-e,!0),u=c.snapAwayFromHidden(this.body.hiddenDates,s,this.previousDelta-e,!0);if(a!=r||u!=s)return this.deltaDifference+=e,this.props.touch.start=a,this.props.touch.end=u,void this._onDrag(n);this.previousDelta=e,this._applyRange(r,s);var h=new Date(this.start),p=new Date(this.end);this.body.emitter.emit("rangechange",{start:h,end:p,byUser:!0,event:n}),this.body.emitter.emit("panmove")}},h.prototype._onDragEnd=function(n){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:n}))},h.prototype._onMouseWheel=function(n){var t=0;if(n.wheelDelta?t=n.wheelDelta/120:n.detail&&(t=-n.detail/3),!(this.options.zoomKey&&!n[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(n)&&t){var e,i;if(e=t<0?1-t/5:1/(1+t/5),this.rolling)i=this.start+(this.end-this.start)*this.options.rollingMode.offset;else{var l=this.getPointer({x:n.clientX,y:n.clientY},this.body.dom.center);i=this._pointerToDate(l)}this.zoom(e,i,t,n),n.preventDefault()}},h.prototype._onTouch=function(n){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.scaleOffset=0,this.deltaDifference=0,s.preventDefault(n)},h.prototype._onPinch=function(n){if(this.options.zoomable&&this.options.moveable){s.preventDefault(n),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(n.center,this.body.dom.center)),this.stopRolling();var t=1/(n.scale+this.scaleOffset),e=this._pointerToDate(this.props.touch.center),i=c.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end),l=c.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,e),o=i-l,r=e-l+(this.props.touch.start-(e-l))*t,a=e+o+(this.props.touch.end-(e+o))*t;this.startToFront=1-t<=0,this.endToFront=t-1<=0;var u=c.snapAwayFromHidden(this.body.hiddenDates,r,1-t,!0),h=c.snapAwayFromHidden(this.body.hiddenDates,a,t-1,!0);u==r&&h==a||(this.props.touch.start=u,this.props.touch.end=h,this.scaleOffset=1-n.scale,r=u,a=h),this.setRange(r,a,{animation:!1,byUser:!0,event:n}),this.startToFront=!1,this.endToFront=!0}},h.prototype._isInsideRange=function(n){var t,e=n.center?n.center.x:n.clientX;t=this.options.rtl?e-s.getAbsoluteLeft(this.body.dom.centerContainer):s.getAbsoluteRight(this.body.dom.centerContainer)-e;var i=this.body.util.toTime(t);return i>=this.start&&i<=this.end},h.prototype._pointerToDate=function(n){var t,e=this.options.direction;return d(e),"horizontal"==e?this.body.util.toTime(n.x).valueOf():(t=this.conversion(this.body.domProps.center.height),n.y/t.scale+t.offset)},h.prototype.getPointer=function(n,t){return this.options.rtl?{x:s.getAbsoluteRight(t)-n.x,y:n.y-s.getAbsoluteTop(t)}:{x:n.x-s.getAbsoluteLeft(t),y:n.y-s.getAbsoluteTop(t)}},h.prototype.zoom=function(n,t,e,i){null==t&&(t=(this.start+this.end)/2);var l=c.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end),o=c.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,t),r=l-o,s=t-o+(this.start-(t-o))*n,a=t+r+(this.end-(t+r))*n;this.startToFront=!(e>0),this.endToFront=!(-e>0);var u=c.snapAwayFromHidden(this.body.hiddenDates,s,e,!0),h=c.snapAwayFromHidden(this.body.hiddenDates,a,-e,!0);u==s&&h==a||(s=u,a=h),this.setRange(s,a,{animation:!1,byUser:!0,event:i}),this.startToFront=!1,this.endToFront=!0},h.prototype.move=function(n){var t=this.end-this.start,e=this.end+t*n;this.start=this.start+t*n,this.end=e},h.prototype.moveTo=function(n){var t=(this.start+this.end)/2-n;this.setRange(this.start-t,this.end-t,{animation:!1,byUser:!0,event:null})},n.exports=h},function(n,t,e){var i=o(e(19)),l=o(e(6));function o(n){return n&&n.__esModule?n:{default:n}}var r=e(44),s=e(10),a=e(37),u=e(2),c=e(45),h=e(97),d=e(36),p=e(46);function f(){}r(f.prototype),f.prototype._create=function(n){this.dom={},this.dom.container=n,this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.root.className="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",(function(){!0===this.initialDrawDone&&this._redraw()}).bind(this)),this.on("rangechanged",(function(){this.initialRangeChangeDone||(this.initialRangeChangeDone=!0)}).bind(this)),this.on("touch",this._onTouch.bind(this)),this.on("panmove",this._onDrag.bind(this));var t=this;this._origRedraw=this._redraw.bind(this),this._redraw=u.throttle(this._origRedraw),this.on("_change",function(n){t.itemSet&&t.itemSet.initialItemSetDrawn&&n&&1==n.queue?t._redraw():t._origRedraw()}),this.hammer=new s(this.dom.root);var e=this.hammer.get("pinch").set({enable:!0});function i(n){this.isActive()&&this.emit("mousewheel",n);var t=0,e=0;if("detail"in n&&(e=-1*n.detail),"wheelDelta"in n&&(e=n.wheelDelta),"wheelDeltaY"in n&&(e=n.wheelDeltaY),"wheelDeltaX"in n&&(t=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(t=-1*e,e=0),"deltaY"in n&&(e=-1*n.deltaY),"deltaX"in n&&(t=n.deltaX),this.options.zoomKey&&!n[this.options.zoomKey])if(n.preventDefault(),this.options.verticalScroll&&Math.abs(e)>=Math.abs(t)){var i=this.props.scrollTop+e;this.isActive()&&(this._setScrollTop(i),this._redraw(),this.emit("scroll",n))}else if(this.options.horizontalScroll){var l=(Math.abs(t)>=Math.abs(e)?t:e)/120*(this.range.end-this.range.start)/20;this.range.setRange(this.range.start+l,this.range.end+l,{animation:!1,byUser:!0,event:n})}}function l(n){t.options.verticalScroll&&(n.preventDefault(),t.isActive()&&(t._setScrollTop(-n.target.scrollTop),t._redraw(),t.emit("scrollSide",n)))}a.disablePreventDefaultVertically(e),this.hammer.get("pan").set({threshold:5,direction:s.DIRECTION_HORIZONTAL}),this.listeners={},["tap","doubletap","press","pinch","pan","panstart","panmove","panend"].forEach(function(n){var e=function(e){t.isActive()&&t.emit(n,e)};t.hammer.on(n,e),t.listeners[n]=e}),a.onTouch(this.hammer,(function(n){t.emit("touch",n)}).bind(this)),a.onRelease(this.hammer,(function(n){t.emit("release",n)}).bind(this)),this.dom.centerContainer.addEventListener?(this.dom.centerContainer.addEventListener("mousewheel",i.bind(this),!1),this.dom.centerContainer.addEventListener("DOMMouseScroll",i.bind(this),!1)):this.dom.centerContainer.attachEvent("onmousewheel",i.bind(this)),this.dom.left.parentNode.addEventListener("scroll",l.bind(this)),this.dom.right.parentNode.addEventListener("scroll",l.bind(this));var o=!1;if(this.dom.center.addEventListener("dragover",(function(n){if(n.preventDefault&&n.preventDefault(),!(!n.target.className.indexOf("vis")>-1||o))return n.dataTransfer.dropEffect="move",o=!0,!1}).bind(this),!1),this.dom.center.addEventListener("drop",(function(n){n.preventDefault&&n.preventDefault(),n.stopPropagation&&n.stopPropagation();try{var e=JSON.parse(n.dataTransfer.getData("text"));if(!e||!e.content)return}catch(n){return!1}return o=!1,n.center={x:n.clientX,y:n.clientY},"item"!==e.target?t.itemSet._onAddItem(n):t.itemSet._onDropObjectOnItem(n),t.emit("drop",t.getEventProperties(n)),!1}).bind(this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!n)throw new Error("No container provided");n.appendChild(this.dom.root)},f.prototype.setOptions=function(n){if(n){if(u.selectiveExtend(["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","rtl","zoomKey","horizontalScroll","verticalScroll"],this.options,n),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="vis-panel vis-right vis-vertical-scroll":this.dom.leftContainer.className="vis-panel vis-left vis-vertical-scroll"),"object"!==(0,l.default)(this.options.orientation)&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in n&&("string"==typeof n.orientation?this.options.orientation={item:n.orientation,axis:n.orientation}:"object"===(0,l.default)(n.orientation)&&("item"in n.orientation&&(this.options.orientation.item=n.orientation.item),"axis"in n.orientation&&(this.options.orientation.axis=n.orientation.axis))),"both"===this.options.orientation.axis){if(!this.timeAxis2){var t=this.timeAxis2=new c(this.body);t.setOptions=function(n){var e=n?u.extend({},n):{};e.orientation="top",c.prototype.setOptions.call(t,e)},this.components.push(t)}}else if(this.timeAxis2){var e=this.components.indexOf(this.timeAxis2);-1!==e&&this.components.splice(e,1),this.timeAxis2.destroy(),this.timeAxis2=null}if("function"==typeof n.drawPoints&&(n.drawPoints={onRender:n.drawPoints}),"hiddenDates"in this.options&&d.convertHiddenOptions(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in n&&(n.clickToUse?this.activator||(this.activator=new h(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),"showCustomTime"in n)throw new Error("Option `showCustomTime` is deprecated. Create a custom time bar via timeline.addCustomTime(time [, id])");this._initAutoResize()}if(this.components.forEach(function(t){return t.setOptions(n)}),"configure"in n){this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(n.configure);var i=u.deepExtend({},this.options);this.components.forEach(function(n){u.deepExtend(i,n.options)}),this.configurator.setModuleOptions({global:i})}this._redraw()},f.prototype.isActive=function(){return!this.activator||this.activator.active},f.prototype.destroy=function(){for(var n in this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator),this.listeners)this.listeners.hasOwnProperty(n)&&delete this.listeners[n];this.listeners=null,this.hammer=null,this.components.forEach(function(n){return n.destroy()}),this.body=null},f.prototype.setCustomTime=function(n,t){var e=this.customTimes.filter(function(n){return t===n.options.id});if(0===e.length)throw new Error("No custom time bar found with id "+(0,i.default)(t));e.length>0&&e[0].setCustomTime(n)},f.prototype.getCustomTime=function(n){var t=this.customTimes.filter(function(t){return t.options.id===n});if(0===t.length)throw new Error("No custom time bar found with id "+(0,i.default)(n));return t[0].getCustomTime()},f.prototype.setCustomTimeTitle=function(n,t){var e=this.customTimes.filter(function(n){return n.options.id===t});if(0===e.length)throw new Error("No custom time bar found with id "+(0,i.default)(t));if(e.length>0)return e[0].setCustomTitle(n)},f.prototype.getEventProperties=function(n){return{event:n}},f.prototype.addCustomTime=function(n,t){var e=void 0!==n?u.convert(n,"Date").valueOf():new Date;if(this.customTimes.some(function(n){return n.options.id===t}))throw new Error("A custom time with id "+(0,i.default)(t)+" already exists");var l=new p(this.body,u.extend({},this.options,{time:e,id:t}));return this.customTimes.push(l),this.components.push(l),this._redraw(),t},f.prototype.removeCustomTime=function(n){var t=this.customTimes.filter(function(t){return t.options.id===n});if(0===t.length)throw new Error("No custom time bar found with id "+(0,i.default)(n));t.forEach((function(n){this.customTimes.splice(this.customTimes.indexOf(n),1),this.components.splice(this.components.indexOf(n),1),n.destroy()}).bind(this))},f.prototype.getVisibleItems=function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]},f.prototype.fit=function(n,t){var e=this.getDataRange();if(null!==e.min||null!==e.max){var i=e.max-e.min,l=new Date(e.min.valueOf()-.01*i),o=new Date(e.max.valueOf()+.01*i);this.range.setRange(l,o,{animation:!n||void 0===n.animation||n.animation},t)}},f.prototype.getDataRange=function(){throw new Error("Cannot invoke abstract method getDataRange")},f.prototype.setWindow=function(n,t,e,i){var l;"function"==typeof arguments[2]&&(i=arguments[2],e={}),1==arguments.length?this.range.setRange((l=arguments[0]).start,l.end,{animation:void 0===l.animation||l.animation}):2==arguments.length&&"function"==typeof arguments[1]?(i=arguments[1],this.range.setRange((l=arguments[0]).start,l.end,{animation:void 0===l.animation||l.animation},i)):this.range.setRange(n,t,{animation:!e||void 0===e.animation||e.animation},i)},f.prototype.moveTo=function(n,t,e){"function"==typeof arguments[1]&&(e=arguments[1],t={});var i=this.range.end-this.range.start,l=u.convert(n,"Date").valueOf();this.range.setRange(l-i/2,l+i/2,{animation:!t||void 0===t.animation||t.animation},e)},f.prototype.getWindow=function(){var n=this.range.getRange();return{start:new Date(n.start),end:new Date(n.end)}},f.prototype.zoomIn=function(n,t,e){if(!(!n||n<0||n>1)){"function"==typeof arguments[1]&&(e=arguments[1],t={});var i=this.getWindow(),l=i.start.valueOf(),o=i.end.valueOf(),r=o-l,s=(r-r/(1+n))/2;this.setWindow(l+s,o-s,t,e)}},f.prototype.zoomOut=function(n,t,e){if(!(!n||n<0||n>1)){"function"==typeof arguments[1]&&(e=arguments[1],t={});var i=this.getWindow(),l=i.start.valueOf(),o=i.end.valueOf(),r=o-l;this.setWindow(l-r*n/2,o+r*n/2,t,e)}},f.prototype.redraw=function(){this._redraw()},f.prototype._redraw=function(){this.redrawCount++;var n=!1,t=this.options,e=this.props,i=this.dom;if(i&&i.container&&0!=i.root.offsetWidth){d.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates),"top"==t.orientation?(u.addClassName(i.root,"vis-top"),u.removeClassName(i.root,"vis-bottom")):(u.removeClassName(i.root,"vis-top"),u.addClassName(i.root,"vis-bottom")),i.root.style.maxHeight=u.option.asSize(t.maxHeight,""),i.root.style.minHeight=u.option.asSize(t.minHeight,""),i.root.style.width=u.option.asSize(t.width,""),e.border.left=(i.centerContainer.offsetWidth-i.centerContainer.clientWidth)/2,e.border.right=e.border.left,e.border.top=(i.centerContainer.offsetHeight-i.centerContainer.clientHeight)/2,e.border.bottom=e.border.top,e.borderRootHeight=i.root.offsetHeight-i.root.clientHeight,e.borderRootWidth=i.root.offsetWidth-i.root.clientWidth,0===i.centerContainer.clientHeight&&(e.border.left=e.border.top,e.border.right=e.border.left),0===i.root.clientHeight&&(e.borderRootWidth=e.borderRootHeight),e.center.height=i.center.offsetHeight,e.left.height=i.left.offsetHeight,e.right.height=i.right.offsetHeight,e.top.height=i.top.clientHeight||-e.border.top,e.bottom.height=i.bottom.clientHeight||-e.border.bottom;var l=Math.max(e.left.height,e.center.height,e.right.height);i.root.style.height=u.option.asSize(t.height,e.top.height+l+e.bottom.height+e.borderRootHeight+e.border.top+e.border.bottom+"px"),e.root.height=i.root.offsetHeight,e.background.height=e.root.height-e.borderRootHeight;var o=e.root.height-e.top.height-e.bottom.height-e.borderRootHeight;e.centerContainer.height=o,e.leftContainer.height=o,e.rightContainer.height=e.leftContainer.height,e.root.width=i.root.offsetWidth,e.background.width=e.root.width-e.borderRootWidth,this.initialDrawDone||(e.scrollbarWidth=u.getScrollBarWidth()),t.verticalScroll?t.rtl?(e.left.width=i.leftContainer.clientWidth||-e.border.left,e.right.width=i.rightContainer.clientWidth+e.scrollbarWidth||-e.border.right):(e.left.width=i.leftContainer.clientWidth+e.scrollbarWidth||-e.border.left,e.right.width=i.rightContainer.clientWidth||-e.border.right):(e.left.width=i.leftContainer.clientWidth||-e.border.left,e.right.width=i.rightContainer.clientWidth||-e.border.right),this._setDOM();var r=this._updateScrollTop();"top"!=t.orientation.item&&(r+=Math.max(e.centerContainer.height-e.center.height-e.border.top-e.border.bottom,0)),i.center.style.top=r+"px";var a=0==e.scrollTop?"hidden":"",c=e.scrollTop==e.scrollTopMin?"hidden":"";i.shadowTop.style.visibility=a,i.shadowBottom.style.visibility=c,i.shadowTopLeft.style.visibility=a,i.shadowBottomLeft.style.visibility=c,i.shadowTopRight.style.visibility=a,i.shadowBottomRight.style.visibility=c,t.verticalScroll&&(i.rightContainer.className="vis-panel vis-right vis-vertical-scroll",i.leftContainer.className="vis-panel vis-left vis-vertical-scroll",i.shadowTopRight.style.visibility="hidden",i.shadowBottomRight.style.visibility="hidden",i.shadowTopLeft.style.visibility="hidden",i.shadowBottomLeft.style.visibility="hidden",i.left.style.top="0px",i.right.style.top="0px"),(!t.verticalScroll||e.center.heighte.centerContainer.height;if(this.hammer.get("pan").set({direction:h?s.DIRECTION_ALL:s.DIRECTION_HORIZONTAL}),this.components.forEach(function(t){n=t.redraw()||n}),n){if(this.redrawCount<5)return void this.body.emitter.emit("_change");console.log("WARNING: infinite loop in redraw?")}else this.redrawCount=0;this.body.emitter.emit("changed")}},f.prototype._setDOM=function(){var n=this.props,t=this.dom;n.leftContainer.width=n.left.width,n.rightContainer.width=n.right.width;var e=n.root.width-n.left.width-n.right.width-n.borderRootWidth;n.center.width=e,n.centerContainer.width=e,n.top.width=e,n.bottom.width=e,t.background.style.height=n.background.height+"px",t.backgroundVertical.style.height=n.background.height+"px",t.backgroundHorizontal.style.height=n.centerContainer.height+"px",t.centerContainer.style.height=n.centerContainer.height+"px",t.leftContainer.style.height=n.leftContainer.height+"px",t.rightContainer.style.height=n.rightContainer.height+"px",t.background.style.width=n.background.width+"px",t.backgroundVertical.style.width=n.centerContainer.width+"px",t.backgroundHorizontal.style.width=n.background.width+"px",t.centerContainer.style.width=n.center.width+"px",t.top.style.width=n.top.width+"px",t.bottom.style.width=n.bottom.width+"px",t.background.style.left="0",t.background.style.top="0",t.backgroundVertical.style.left=n.left.width+n.border.left+"px",t.backgroundVertical.style.top="0",t.backgroundHorizontal.style.left="0",t.backgroundHorizontal.style.top=n.top.height+"px",t.centerContainer.style.left=n.left.width+"px",t.centerContainer.style.top=n.top.height+"px",t.leftContainer.style.left="0",t.leftContainer.style.top=n.top.height+"px",t.rightContainer.style.left=n.left.width+n.center.width+"px",t.rightContainer.style.top=n.top.height+"px",t.top.style.left=n.left.width+"px",t.top.style.top="0",t.bottom.style.left=n.left.width+"px",t.bottom.style.top=n.top.height+n.centerContainer.height+"px",t.center.style.left="0",t.left.style.left="0",t.right.style.left="0"},f.prototype.repaint=function(){throw new Error("Function repaint is deprecated. Use redraw instead.")},f.prototype.setCurrentTime=function(n){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(n)},f.prototype.getCurrentTime=function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()},f.prototype._toTime=function(n){return d.toTime(this,n,this.props.center.width)},f.prototype._toGlobalTime=function(n){return d.toTime(this,n,this.props.root.width)},f.prototype._toScreen=function(n){return d.toScreen(this,n,this.props.center.width)},f.prototype._toGlobalScreen=function(n){return d.toScreen(this,n,this.props.root.width)},f.prototype._initAutoResize=function(){1==this.options.autoResize?this._startAutoResize():this._stopAutoResize()},f.prototype._startAutoResize=function(){var n=this;this._stopAutoResize(),this._onResize=function(){1==n.options.autoResize?n.dom.root&&(n.dom.root.offsetWidth==n.props.lastWidth&&n.dom.root.offsetHeight==n.props.lastHeight||(n.props.lastWidth=n.dom.root.offsetWidth,n.props.lastHeight=n.dom.root.offsetHeight,n.props.scrollbarWidth=u.getScrollBarWidth(),n.body.emitter.emit("_change"))):n._stopAutoResize()},u.addEventListener(window,"resize",this._onResize),n.dom.root&&(n.props.lastWidth=n.dom.root.offsetWidth,n.props.lastHeight=n.dom.root.offsetHeight),this.watchTimer=setInterval(this._onResize,1e3)},f.prototype._stopAutoResize=function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(u.removeEventListener(window,"resize",this._onResize),this._onResize=null)},f.prototype._onTouch=function(n){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop},f.prototype._onPinch=function(n){this.touch.allowDragging=!1},f.prototype._onDrag=function(n){if(n&&this.touch.allowDragging){var t=n.deltaY,e=this._getScrollTop(),i=this._setScrollTop(this.touch.initialScrollTop+t);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),i!=e&&this.emit("verticalDrag")}},f.prototype._setScrollTop=function(n){return this.props.scrollTop=n,this._updateScrollTop(),this.props.scrollTop},f.prototype._updateScrollTop=function(){var n=Math.min(this.props.centerContainer.height-this.props.center.height,0);return n!=this.props.scrollTopMin&&("top"!=this.options.orientation.item&&(this.props.scrollTop+=n-this.props.scrollTopMin),this.props.scrollTopMin=n),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop0&&this.current.milliseconds()0&&this.current.seconds()0&&this.current.minutes()0&&this.current.hours()0?n.step:1,this.autoScale=!1)},r.prototype.setAutoScale=function(n){this.autoScale=n},r.prototype.setMinimumStep=function(n){void 0!=n&&(31104e9>n&&(this.scale="year",this.step=1e3),15552e9>n&&(this.scale="year",this.step=500),31104e8>n&&(this.scale="year",this.step=100),15552e8>n&&(this.scale="year",this.step=50),31104e7>n&&(this.scale="year",this.step=10),15552e7>n&&(this.scale="year",this.step=5),31104e6>n&&(this.scale="year",this.step=1),7776e6>n&&(this.scale="month",this.step=3),2592e6>n&&(this.scale="month",this.step=1),432e6>n&&(this.scale="day",this.step=5),1728e5>n&&(this.scale="day",this.step=2),864e5>n&&(this.scale="day",this.step=1),432e5>n&&(this.scale="weekday",this.step=1),144e5>n&&(this.scale="hour",this.step=4),36e5>n&&(this.scale="hour",this.step=1),9e5>n&&(this.scale="minute",this.step=15),6e5>n&&(this.scale="minute",this.step=10),3e5>n&&(this.scale="minute",this.step=5),6e4>n&&(this.scale="minute",this.step=1),15e3>n&&(this.scale="second",this.step=15),1e4>n&&(this.scale="second",this.step=10),5e3>n&&(this.scale="second",this.step=5),1e3>n&&(this.scale="second",this.step=1),200>n&&(this.scale="millisecond",this.step=200),100>n&&(this.scale="millisecond",this.step=100),50>n&&(this.scale="millisecond",this.step=50),10>n&&(this.scale="millisecond",this.step=10),5>n&&(this.scale="millisecond",this.step=5),1>n&&(this.scale="millisecond",this.step=1))},r.snap=function(n,t,e){var l=i(n);if("year"==t){var o=l.year()+Math.round(l.month()/12);l.year(Math.round(o/e)*e),l.month(0),l.date(0),l.hours(0),l.minutes(0),l.seconds(0),l.milliseconds(0)}else if("month"==t)l.date()>15?(l.date(1),l.add(1,"month")):l.date(1),l.hours(0),l.minutes(0),l.seconds(0),l.milliseconds(0);else if("week"==t)l.weekday()>2?(l.weekday(0),l.add(1,"week")):l.weekday(0),l.hours(0),l.minutes(0),l.seconds(0),l.milliseconds(0);else if("day"==t){switch(e){case 5:case 2:l.hours(24*Math.round(l.hours()/24));break;default:l.hours(12*Math.round(l.hours()/12))}l.minutes(0),l.seconds(0),l.milliseconds(0)}else if("weekday"==t){switch(e){case 5:case 2:l.hours(12*Math.round(l.hours()/12));break;default:l.hours(6*Math.round(l.hours()/6))}l.minutes(0),l.seconds(0),l.milliseconds(0)}else if("hour"==t){switch(e){case 4:l.minutes(60*Math.round(l.minutes()/60));break;default:l.minutes(30*Math.round(l.minutes()/30))}l.seconds(0),l.milliseconds(0)}else if("minute"==t){switch(e){case 15:case 10:l.minutes(5*Math.round(l.minutes()/5)),l.seconds(0);break;case 5:l.seconds(60*Math.round(l.seconds()/60));break;default:l.seconds(30*Math.round(l.seconds()/30))}l.milliseconds(0)}else if("second"==t)switch(e){case 15:case 10:l.seconds(5*Math.round(l.seconds()/5)),l.milliseconds(0);break;case 5:l.milliseconds(1e3*Math.round(l.milliseconds()/1e3));break;default:l.milliseconds(500*Math.round(l.milliseconds()/500))}else if("millisecond"==t){var r=e>5?e/2:1;l.milliseconds(Math.round(l.milliseconds()/r)*r)}return l},r.prototype.isMajor=function(){if(1==this.switchedYear)switch(this.scale){case"year":case"month":case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedMonth)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedDay)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var n=this.moment(this.current);switch(this.scale){case"millisecond":return 0==n.milliseconds();case"second":return 0==n.seconds();case"minute":return 0==n.hours()&&0==n.minutes();case"hour":return 0==n.hours();case"weekday":case"day":case"week":return 1==n.date();case"month":return 0==n.month();case"year":default:return!1}},r.prototype.getLabelMinor=function(n){if(void 0==n&&(n=this.current),n instanceof Date&&(n=this.moment(n)),"function"==typeof this.format.minorLabels)return this.format.minorLabels(n,this.scale,this.step);var t=this.format.minorLabels[this.scale];switch(this.scale){case"week":if(this.isMajor()&&0!==n.weekday())return"";default:return t&&t.length>0?this.moment(n).format(t):""}},r.prototype.getLabelMajor=function(n){if(void 0==n&&(n=this.current),n instanceof Date&&(n=this.moment(n)),"function"==typeof this.format.majorLabels)return this.format.majorLabels(n,this.scale,this.step);var t=this.format.majorLabels[this.scale];return t&&t.length>0?this.moment(n).format(t):""},r.prototype.getClassName=function(){var n=this.moment,t=this.moment(this.current),e=t.locale?t.locale("en"):t.lang("en"),i=this.step,l=[];function o(n){return n/i%2==0?" vis-even":" vis-odd"}function r(t){return t.isSame(new Date,"day")?" vis-today":t.isSame(n().add(1,"day"),"day")?" vis-tomorrow":t.isSame(n().add(-1,"day"),"day")?" vis-yesterday":""}function s(n){return n.isSame(new Date,"week")?" vis-current-week":""}function a(n){return n.isSame(new Date,"month")?" vis-current-month":""}switch(this.scale){case"millisecond":l.push(r(e)),l.push(o(e.milliseconds()));break;case"second":l.push(r(e)),l.push(o(e.seconds()));break;case"minute":l.push(r(e)),l.push(o(e.minutes()));break;case"hour":l.push("vis-h"+e.hours()+(4==this.step?"-h"+(e.hours()+4):"")),l.push(r(e)),l.push(o(e.hours()));break;case"weekday":l.push("vis-"+e.format("dddd").toLowerCase()),l.push(r(e)),l.push(s(e)),l.push(o(e.date()));break;case"day":l.push("vis-day"+e.date()),l.push("vis-"+e.format("MMMM").toLowerCase()),l.push(r(e)),l.push(a(e)),l.push(this.step<=2?r(e):""),l.push(this.step<=2?"vis-"+e.format("dddd").toLowerCase():""),l.push(o(e.date()-1));break;case"week":l.push("vis-week"+e.format("w")),l.push(s(e)),l.push(o(e.week()));break;case"month":l.push("vis-"+e.format("MMMM").toLowerCase()),l.push(a(e)),l.push(o(e.month()));break;case"year":l.push("vis-year"+e.year()),l.push(e.isSame(new Date,"year")?" vis-current-year":""),l.push(o(e.year()))}return l.filter(String).join(" ")},n.exports=r},function(n,t,e){var i=e(2),l=e(16),o=e(9),r=e(98);function s(n,t){this.body=n,this.defaultOptions={rtl:!1,showCurrentTime:!0,moment:o,locales:r,locale:"en"},this.options=i.extend({},this.defaultOptions),this.offset=0,this._create(),this.setOptions(t)}(s.prototype=new l)._create=function(){var n=document.createElement("div");n.className="vis-current-time",n.style.position="absolute",n.style.top="0px",n.style.height="100%",this.bar=n},s.prototype.destroy=function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null},s.prototype.setOptions=function(n){n&&i.selectiveExtend(["rtl","showCurrentTime","moment","locale","locales"],this.options,n)},s.prototype.redraw=function(){if(this.options.showCurrentTime){var n=this.body.dom.backgroundVertical;this.bar.parentNode!=n&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),n.appendChild(this.bar),this.start());var t=this.options.moment((new Date).valueOf()+this.offset),e=this.body.util.toScreen(t),i=this.options.locales[this.options.locale];i||(this.warned||(console.log("WARNING: options.locales['"+this.options.locale+"'] not found. See http://visjs.org/docs/timeline/#Localization"),this.warned=!0),i=this.options.locales.en);var l=i.current+" "+i.time+": "+t.format("dddd, MMMM Do YYYY, H:mm:ss");l=l.charAt(0).toUpperCase()+l.substring(1),this.options.rtl?this.bar.style.right=e+"px":this.bar.style.left=e+"px",this.bar.title=l}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1},s.prototype.start=function(){var n=this;!function t(){n.stop();var e=1/n.body.range.conversion(n.body.domProps.center.width).scale/10;e<30&&(e=30),e>1e3&&(e=1e3),n.redraw(),n.body.emitter.emit("currentTimeTick"),n.currentTimeTimer=setTimeout(t,e)}()},s.prototype.stop=function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)},s.prototype.setCurrentTime=function(n){var t=i.convert(n,"Date").valueOf(),e=(new Date).valueOf();this.offset=t-e,this.redraw()},s.prototype.getCurrentTime=function(){return new Date((new Date).valueOf()+this.offset)},n.exports=s},function(n,t,e){var i,l=(i=e(8))&&i.__esModule?i:{default:i},o=e(2),r=e(100);function s(n,t,e){if(this.groupId=n,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.doInnerStack=!1,this.subgroupIndex=0,this.subgroupOrderer=t&&t.subgroupOrder,this.itemSet=e,this.isVisible=null,this.stackDirty=!0,t&&t.nestedGroups&&(this.nestedGroups=t.nestedGroups,this.showNested=0!=t.showNested),t&&t.subgroupStack)if("boolean"==typeof t.subgroupStack)this.doInnerStack=t.subgroupStack,this.subgroupStackAll=t.subgroupStack;else for(var i in t.subgroupStack)this.subgroupStack[i]=t.subgroupStack[i],this.doInnerStack=this.doInnerStack||t.subgroupStack[i];this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var l=this;this.itemSet.body.emitter.on("checkRangedItems",function(){l.checkRangedItems=!0}),this._create(),this.setData(t)}s.prototype._create=function(){var n=document.createElement("div");n.className=this.itemSet.options.groupEditable.order?"vis-label draggable":"vis-label",this.dom.label=n;var t=document.createElement("div");t.className="vis-inner",n.appendChild(t),this.dom.inner=t;var e=document.createElement("div");e.className="vis-group",e["timeline-group"]=this,this.dom.foreground=e,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)},s.prototype.setData=function(n){var t,e;if((t=this.itemSet.options&&this.itemSet.options.groupTemplate?(e=this.itemSet.options.groupTemplate.bind(this))(n,this.dom.inner):n&&n.content)instanceof Element){for(this.dom.inner.appendChild(t);this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(t)}else t instanceof Object?e(n,this.dom.inner):this.dom.inner.innerHTML=void 0!==t&&null!==t?t:this.groupId||"";if(this.dom.label.title=n&&n.title||"",this.dom.inner.firstChild?o.removeClassName(this.dom.inner,"vis-hidden"):o.addClassName(this.dom.inner,"vis-hidden"),n&&n.nestedGroups){this.nestedGroups&&this.nestedGroups==n.nestedGroups||(this.nestedGroups=n.nestedGroups),void 0===n.showNested&&void 0!==this.showNested||(this.showNested=0!=n.showNested),o.addClassName(this.dom.label,"vis-nesting-group");var i=this.itemSet.options.rtl?"collapsed-rtl":"collapsed";this.showNested?(o.removeClassName(this.dom.label,i),o.addClassName(this.dom.label,"expanded")):(o.removeClassName(this.dom.label,"expanded"),o.addClassName(this.dom.label,i))}else this.nestedGroups&&(this.nestedGroups=null,o.removeClassName(this.dom.label,i=this.itemSet.options.rtl?"collapsed-rtl":"collapsed"),o.removeClassName(this.dom.label,"expanded"),o.removeClassName(this.dom.label,"vis-nesting-group"));n&&n.nestedInGroup&&(o.addClassName(this.dom.label,"vis-nested-group"),this.itemSet.options&&this.itemSet.options.rtl?this.dom.inner.style.paddingRight="30px":this.dom.inner.style.paddingLeft="30px");var l=n&&n.className||null;l!=this.className&&(this.className&&(o.removeClassName(this.dom.label,this.className),o.removeClassName(this.dom.foreground,this.className),o.removeClassName(this.dom.background,this.className),o.removeClassName(this.dom.axis,this.className)),o.addClassName(this.dom.label,l),o.addClassName(this.dom.foreground,l),o.addClassName(this.dom.background,l),o.addClassName(this.dom.axis,l),this.className=l),this.style&&(o.removeCssText(this.dom.label,this.style),this.style=null),n&&n.style&&(o.addCssText(this.dom.label,n.style),this.style=n.style)},s.prototype.getLabelWidth=function(){return this.props.label.width},s.prototype._didMarkerHeightChange=function(){var n=this.dom.marker.clientHeight;if(n!=this.lastMarkerHeight){this.lastMarkerHeight=n;var t={},e=0;if(o.forEach(this.items,function(n,i){n.dirty=!0,n.displayed&&(t[i]=n.redraw(!0),e=t[i].length)}),e>0)for(var i=0;i0)for(var h=0;h0){var t=this;this.resetSubgroups(),o.forEach(this.visibleItems,function(e){void 0!==e.data.subgroup&&(t.subgroups[e.data.subgroup].height=Math.max(t.subgroups[e.data.subgroup].height,e.height+n.item.vertical),t.subgroups[e.data.subgroup].visible=!0)})}},s.prototype._isGroupVisible=function(n,t){return this.top<=n.body.domProps.centerContainer.height-n.body.domProps.scrollTop+t.axis&&this.top+this.height+t.axis>=-n.body.domProps.scrollTop},s.prototype._calculateHeight=function(n){var t,e=this.visibleItems;if(e.length>0){var i=e[0].top,l=e[0].top+e[0].height;if(o.forEach(e,function(n){i=Math.min(i,n.top),l=Math.max(l,n.top+n.height)}),i>n.axis){var r=i-n.axis;l-=r,o.forEach(e,function(n){n.top-=r})}t=l+n.item.vertical/2}else t=0;return Math.max(t,this.props.label.height)},s.prototype.show=function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)},s.prototype.hide=function(){var n=this.dom.label;n.parentNode&&n.parentNode.removeChild(n);var t=this.dom.foreground;t.parentNode&&t.parentNode.removeChild(t);var e=this.dom.background;e.parentNode&&e.parentNode.removeChild(e);var i=this.dom.axis;i.parentNode&&i.parentNode.removeChild(i)},s.prototype.add=function(n){this.items[n.id]=n,n.setParent(this),this.stackDirty=!0,void 0!==n.data.subgroup&&(this._addToSubgroup(n),this.orderSubgroups()),-1==this.visibleItems.indexOf(n)&&this._checkIfVisible(n,this.visibleItems,this.itemSet.body.range)},s.prototype._addToSubgroup=function(n,t){void 0!=(t=t||n.data.subgroup)&&void 0===this.subgroups[t]&&(this.subgroups[t]={height:0,top:0,start:n.data.start,end:n.data.end||n.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[t]||!1},this.subgroupIndex++),new Date(n.data.start)new Date(this.subgroups[t].end)&&(this.subgroups[t].end=e),this.subgroups[t].items.push(n)},s.prototype._updateSubgroupsSizes=function(){var n=this;if(n.subgroups)for(var t in n.subgroups){var e=n.subgroups[t].items[0].data.start,i=(n.subgroups[t].items[0].data.end||n.subgroups[t].items[0].data.start)-1;n.subgroups[t].items.forEach(function(n){new Date(n.data.start)new Date(i)&&(i=t)}),n.subgroups[t].start=e,n.subgroups[t].end=new Date(i-1)}},s.prototype.orderSubgroups=function(){if(void 0!==this.subgroupOrderer){var n,t=[];if("string"==typeof this.subgroupOrderer){for(n in this.subgroups)t.push({subgroup:n,sortField:this.subgroups[n].items[0].data[this.subgroupOrderer]});t.sort(function(n,t){return n.sortField-t.sortField})}else if("function"==typeof this.subgroupOrderer){for(n in this.subgroups)t.push(this.subgroups[n].items[0].data);t.sort(this.subgroupOrderer)}if(t.length>0)for(var e=0;e=0&&(e.items.splice(i,1),e.items.length?this._updateSubgroupsSizes():delete this.subgroups[t])}}},s.prototype.removeFromDataSet=function(n){this.itemSet.removeItem(n.id)},s.prototype.order=function(){for(var n=o.toArray(this.items),t=[],e=[],i=0;i0)for(var c=0;ca}),1==this.checkRangedItems)for(this.checkRangedItems=!1,c=0;ca})}var p={},f=0;for(c=0;c0)for(var m=0;m=0&&!l(r=t[o]);o--)void 0===i[r.id]&&(i[r.id]=!0,e.push(r));for(o=n+1;on.start},l.prototype._createDomElement=function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="vis-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["timeline-item"]=this,this.dirty=!0)},l.prototype._appendDomElement=function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.appendChild(this.dom.box)}this.displayed=!0},l.prototype._updateDirtyDomComponents=function(){this.dirty&&(this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box),this.dom.box.className=this.baseClassName+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(this.editable.updateTime||this.editable.updateGroup?" vis-editable":" vis-readonly"),this.dom.content.style.maxWidth="none")},l.prototype._getDomComponentsSizes=function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.frame).overflow,{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}},l.prototype._updateDomComponentsSizes=function(n){this.props.content.width=n.content.width,this.height=n.box.height,this.dom.content.style.maxWidth="",this.dirty=!1},l.prototype._repaintDomAdditionals=function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()},l.prototype.redraw=function(n){var t,e,i=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),(function(){this.dirty&&(t=this._getDomComponentsSizes.bind(this)())}).bind(this),(function(){this.dirty&&this._updateDomComponentsSizes.bind(this)(t)}).bind(this),this._repaintDomAdditionals.bind(this)];return n?i:(i.forEach(function(n){e=n()}),e)},l.prototype.show=function(){this.displayed||this.redraw()},l.prototype.hide=function(){if(this.displayed){var n=this.dom.box;n.parentNode&&n.parentNode.removeChild(n),this.displayed=!1}},l.prototype.repositionX=function(n){var t,e,i=this.parent.width,l=this.conversion.toScreen(this.data.start),o=this.conversion.toScreen(this.data.end),r=void 0===this.data.align?this.options.align:this.data.align;!1===this.data.limitSize||void 0!==n&&!0!==n||(l<-i&&(l=-i),o>2*i&&(o=2*i));var s=Math.max(o-l+.5,1);switch(this.overflow?(this.options.rtl?this.right=l:this.left=l,this.width=s+this.props.content.width,e=this.props.content.width):(this.options.rtl?this.right=l:this.left=l,this.width=s,e=Math.min(o-l,this.props.content.width)),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=s+"px",r){case"left":this.options.rtl?this.dom.content.style.right="0":this.dom.content.style.left="0";break;case"right":this.options.rtl?this.dom.content.style.right=Math.max(s-e,0)+"px":this.dom.content.style.left=Math.max(s-e,0)+"px";break;case"center":this.options.rtl?this.dom.content.style.right=Math.max((s-e)/2,0)+"px":this.dom.content.style.left=Math.max((s-e)/2,0)+"px";break;default:t=this.overflow?o>0?Math.max(-l,0):-e:l<0?-l:0,this.options.rtl?this.dom.content.style.right=t+"px":(this.dom.content.style.left=t+"px",this.dom.content.style.width="calc(100% - "+t+"px)")}},l.prototype.repositionY=function(){this.dom.box.style.top="top"==this.options.orientation.item?this.top+"px":this.parent.height-this.top-this.height+"px"},l.prototype._repaintDragLeft=function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.options.editable.updateTime&&!this.dom.dragLeft){var n=document.createElement("div");n.className="vis-drag-left",n.dragLeftItem=this,this.dom.box.appendChild(n),this.dom.dragLeft=n}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragLeft||(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)},l.prototype._repaintDragRight=function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.options.editable.updateTime&&!this.dom.dragRight){var n=document.createElement("div");n.className="vis-drag-right",n.dragRightItem=this,this.dom.box.appendChild(n),this.dom.dragRight=n}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragRight||(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)},n.exports=l},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=s(e(19)),l=s(e(6)),o=s(e(0)),r=s(e(1));function s(n){return n&&n.__esModule?n:{default:n}}var a=e(2),u=e(179).default,c=function(){function n(t,e,i){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;(0,o.default)(this,n),this.parent=t,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},a.extend(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new u(l),this.wrapper=void 0}return(0,r.default)(n,[{key:"setOptions",value:function(n){if(void 0!==n){this.popupHistory={},this._removePopup();var t=!0;"string"==typeof n?this.options.filter=n:n instanceof Array?this.options.filter=n.join():"object"===("undefined"==typeof n?"undefined":(0,l.default)(n))?(void 0!==n.container&&(this.options.container=n.container),void 0!==n.filter&&(this.options.filter=n.filter),void 0!==n.showButton&&(this.options.showButton=n.showButton),void 0!==n.enabled&&(t=n.enabled)):"boolean"==typeof n?(this.options.filter=!0,t=n):"function"==typeof n&&(this.options.filter=n,t=!0),!1===this.options.filter&&(t=!1),this.options.enabled=t}this._clean()}},{key:"setModuleOptions",value:function(n){this.moduleOptions=n,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){var n=this;this._clean(),this.changedOptions=[];var t=this.options.filter,e=0,i=!1;for(var l in this.configureOptions)this.configureOptions.hasOwnProperty(l)&&(this.allowCreation=!1,i=!1,"function"==typeof t?i=(i=t(l,[]))||this._handleObject(this.configureOptions[l],[l],!0):!0!==t&&-1===t.indexOf(l)||(i=!0),!1!==i&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(l),this._handleObject(this.configureOptions[l],[l])),e++);if(!0===this.options.showButton){var o=document.createElement("div");o.className="vis-configuration vis-config-button",o.innerHTML="generate options",o.onclick=function(){n._printOptions()},o.onmouseover=function(){o.className="vis-configuration vis-config-button hover"},o.onmouseout=function(){o.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(o)}this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var n=0;n1?e-1:0),l=1;l2&&void 0!==arguments[2]&&arguments[2],i=document.createElement("div");return i.className="vis-configuration vis-config-label vis-config-s"+t.length,i.innerHTML=!0===e?""+n+":":n+":",i}},{key:"_makeDropdown",value:function(n,t,e){var i=document.createElement("select");i.className="vis-configuration vis-config-select";var l=0;void 0!==t&&-1!==n.indexOf(t)&&(l=n.indexOf(t));for(var o=0;oo&&1!==o&&(s.max=Math.ceil(1.2*t),u=s.max,a="range increased"),s.value=t):s.value=i;var c=document.createElement("input");c.className="vis-configuration vis-config-rangeinput",c.value=s.value;var h=this;s.onchange=function(){c.value=this.value,h._update(Number(this.value),e)},s.oninput=function(){c.value=this.value};var d=this._makeLabel(e[e.length-1],e),p=this._makeItem(e,d,s,c);""!==a&&this.popupHistory[p]!==u&&(this.popupHistory[p]=u,this._setupPopup(a,p))}},{key:"_setupPopup",value:function(n,t){var e=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!1,l=this.options.filter,o=!1;for(var r in n)if(n.hasOwnProperty(r)){i=!0;var s=n[r],u=a.copyAndExtendArray(t,r);if("function"==typeof l&&!1===(i=l(r,t))&&!(s instanceof Array)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,i=this._handleObject(s,u,!0),this.allowCreation=!1===e),!1!==i){o=!0;var c=this._getValue(u);if(s instanceof Array)this._handleArray(s,c,u);else if("string"==typeof s)this._makeTextInput(s,c,u);else if("boolean"==typeof s)this._makeCheckbox(s,c,u);else if(s instanceof Object){var h=!0;if(-1!==t.indexOf("physics")&&this.moduleOptions.physics.solver!==r&&(h=!1),!0===h)if(void 0!==s.enabled){var d=a.copyAndExtendArray(u,"enabled"),p=this._getValue(d);if(!0===p){var f=this._makeLabel(r,u,!0);this._makeItem(u,f),o=this._handleObject(s,u)||o}else this._makeCheckbox(s,p,u)}else{var _=this._makeLabel(r,u,!0);this._makeItem(u,_),o=this._handleObject(s,u)||o}}else console.error("dont know how to handle",s,r,u)}}return o}},{key:"_handleArray",value:function(n,t,e){"string"==typeof n[0]&&"color"===n[0]?(this._makeColorField(n,t,e),n[1]!==t&&this.changedOptions.push({path:e,value:t})):"string"==typeof n[0]?(this._makeDropdown(n,t,e),n[0]!==t&&this.changedOptions.push({path:e,value:t})):"number"==typeof n[0]&&(this._makeRange(n,t,e),n[0]!==t&&this.changedOptions.push({path:e,value:Number(t)}))}},{key:"_update",value:function(n,t){var e=this._constructOptions(n,t);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",e),this.initialized=!0,this.parent.setOptions(e)}},{key:"_constructOptions",value:function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e;n="false"!==(n="true"===n||n)&&n;for(var l=0;lvar options = "+(0,i.default)(n,null,2)+""}},{key:"getOptions",value:function(){for(var n={},t=0;tthis.imageObj.height?e=this.imageObj.width/this.imageObj.height:i=this.imageObj.height/this.imageObj.width),n=2*this.options.size*e,t=2*this.options.size*i}else n=this.imageObj.width,t=this.imageObj.height;this.width=n,this.height=t,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(n,t,e,i){this.initContextForDraw(n,i),n.circle(t,e,i.size),this.performFill(n,i)}},{key:"_drawImageAtPosition",value:function(n,t){if(0!=this.imageObj.width){n.globalAlpha=1,this.enableShadow(n,t);var e=1;!0===this.options.shapeProperties.interpolation&&(e=this.imageObj.width/this.width/this.body.view.scale),this.imageObj.drawImageAtPosition(n,e,this.left,this.top,this.width,this.height),this.disableShadow(n,t)}}},{key:"_drawImageLabel",value:function(n,t,e,i,l){var o,r=0;if(void 0!==this.height){r=.5*this.height;var s=this.labelModule.getTextSize(n,i,l);s.lineCount>=1&&(r+=s.height/2)}o=e+r,this.options.label&&(this.labelOffset=r),this.labelModule.draw(n,t,o,i,l,"hanging")}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=a(e(19)),l=a(e(6)),o=a(e(29)),r=a(e(0)),s=a(e(1));function a(n){return n&&n.__esModule?n:{default:n}}var u=e(2),c=e(117).default,h=e(48).default,d=e(215).default,p=e(217).default,f=e(218).default,_=e(219).default,m=function(){function n(t,e,i,l){if((0,r.default)(this,n),void 0===e)throw new Error("No body provided");this.options=u.bridgeObject(i),this.globalOptions=i,this.defaultOptions=l,this.body=e,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new c(this.body,this.options,!0),this.setOptions(t)}return(0,s.default)(n,[{key:"setOptions",value:function(t){if(t){n.parseOptions(this.options,t,!0,this.globalOptions),void 0!==t.id&&(this.id=t.id),void 0!==t.from&&(this.fromId=t.from),void 0!==t.to&&(this.toId=t.to),void 0!==t.title&&(this.title=t.title),void 0!==t.value&&(t.value=parseFloat(t.value)),this.chooser=h.choosify("edge",[t,this.options,this.defaultOptions]),this.updateLabelModule(t);var e=this.updateEdgeType();return this._setInteractionWidths(),this.connect(),void 0===t.hidden&&void 0===t.physics||(e=!0),e}}},{key:"getFormattingValues",value:function(){var n=this.options.color.inherit,t={toArrow:!0===this.options.arrows.to||!0===this.options.arrows.to.enabled,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,middleArrow:!0===this.options.arrows.middle||!0===this.options.arrows.middle.enabled,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,fromArrow:!0===this.options.arrows.from||!0===this.options.arrows.from.enabled,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,arrowStrikethrough:this.options.arrowStrikethrough,color:n?void 0:this.options.color.color,inheritsColor:n,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width};if(this.selected||this.hover)if(!0===this.chooser){if(this.selected){var e=this.options.selectionWidth;"function"==typeof e?t.width=e(t.width):"number"==typeof e&&(t.width+=e),t.width=Math.max(t.width,.3/this.body.view.scale),t.color=this.options.color.highlight,t.shadow=this.options.shadow.enabled}else if(this.hover){var i=this.options.hoverWidth;"function"==typeof i?t.width=i(t.width):"number"==typeof i&&(t.width+=i),t.width=Math.max(t.width,.3/this.body.view.scale),t.color=this.options.color.hover,t.shadow=this.options.shadow.enabled}}else"function"==typeof this.chooser&&(this.chooser(t,this.options.id,this.selected,this.hover),void 0!==t.color&&(t.inheritsColor=!1),!1===t.shadow&&(t.shadowColor===this.options.shadow.color&&t.shadowSize===this.options.shadow.size&&t.shadowX===this.options.shadow.x&&t.shadowY===this.options.shadow.y||(t.shadow=!0)));else t.shadow=this.options.shadow.enabled,t.width=Math.max(t.width,.3/this.body.view.scale);return t}},{key:"updateLabelModule",value:function(n){this.labelModule.update(this.options,[n,this.options,this.globalOptions,this.defaultOptions]),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var n=this.options.smooth,t=!1,e=!0;return void 0!==this.edgeType&&((this.edgeType instanceof p&&!0===n.enabled&&"dynamic"===n.type||this.edgeType instanceof d&&!0===n.enabled&&"cubicBezier"===n.type||this.edgeType instanceof f&&!0===n.enabled&&"dynamic"!==n.type&&"cubicBezier"!==n.type||this.edgeType instanceof _&&!1===n.type.enabled)&&(e=!1),!0===e&&(t=this.cleanup())),!0===e?!0===n.enabled?"dynamic"===n.type?(t=!0,this.edgeType=new p(this.options,this.body,this.labelModule)):this.edgeType="cubicBezier"===n.type?new d(this.options,this.body,this.labelModule):new f(this.options,this.body,this.labelModule):this.edgeType=new _(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),t}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=void 0!==this.from&&void 0!==this.to,!0===this.connected?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(n,t,e){if(void 0!==this.options.value){var i=this.options.scaling.customScalingFunction(n,t,e,this.options.value),l=this.options.scaling.max-this.options.scaling.min;!0===this.options.scaling.label.enabled&&(this.options.font.size=this.options.scaling.label.min+i*(this.options.scaling.label.max-this.options.scaling.label.min)),this.options.width=this.options.scaling.min+i*l}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){this.edgeType.hoverWidth="function"==typeof this.options.hoverWidth?this.options.hoverWidth(this.options.width):this.options.hoverWidth+this.options.width,this.edgeType.selectionWidth="function"==typeof this.options.selectionWidth?this.options.selectionWidth(this.options.width):this.options.selectionWidth+this.options.width}},{key:"draw",value:function(n){var t=this.getFormattingValues();if(!t.hidden){var e=this.edgeType.getViaNode(),i={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,t.fromArrow&&(i.from=this.edgeType.getArrowData(n,"from",e,this.selected,this.hover,t),!1===t.arrowStrikethrough&&(this.edgeType.fromPoint=i.from.core)),t.toArrow&&(i.to=this.edgeType.getArrowData(n,"to",e,this.selected,this.hover,t),!1===t.arrowStrikethrough&&(this.edgeType.toPoint=i.to.core)),t.middleArrow&&(i.middle=this.edgeType.getArrowData(n,"middle",e,this.selected,this.hover,t)),this.edgeType.drawLine(n,t,this.selected,this.hover,e),this.drawArrows(n,i,t),this.drawLabel(n,e)}}},{key:"drawArrows",value:function(n,t,e){e.fromArrow&&this.edgeType.drawArrowHead(n,e,this.selected,this.hover,t.from),e.middleArrow&&this.edgeType.drawArrowHead(n,e,this.selected,this.hover,t.middle),e.toArrow&&this.edgeType.drawArrowHead(n,e,this.selected,this.hover,t.to)}},{key:"drawLabel",value:function(n,t){if(void 0!==this.options.label){var e=this.from,i=this.to;if(this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(n,this.selected,this.hover),e.id!=i.id){this.labelModule.pointToSelf=!1;var l=this.edgeType.getPoint(.5,t);n.save();var o=this._getRotation(n);0!=o.angle&&(n.translate(o.x,o.y),n.rotate(o.angle)),this.labelModule.draw(n,l.x,l.y,this.selected,this.hover),n.restore()}else{var r,s;this.labelModule.pointToSelf=!0;var a=this.options.selfReferenceSize;e.shape.width>e.shape.height?(r=e.x+.5*e.shape.width,s=e.y-a):(r=e.x+a,s=e.y-.5*e.shape.height),l=this._pointOnCircle(r,s,a,.125),this.labelModule.draw(n,l.x,l.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(n){var t=[];if(this.labelModule.visible()){var e=this._getRotation();h.pointInRect(this.labelModule.getSize(),n,e)&&t.push({edgeId:this.id,labelId:0})}return this.isOverlappingWith({left:n.x,top:n.y})&&t.push({edgeId:this.id}),t}},{key:"isOverlappingWith",value:function(n){return!!this.connected&&this.edgeType.getDistanceToEdge(this.from.x,this.from.y,this.to.x,this.to.y,n.left,n.top)<10}},{key:"_getRotation",value:function(n){var t=this.edgeType.getViaNode(),e=this.edgeType.getPoint(.5,t);void 0!==n&&this.labelModule.calculateLabelSize(n,this.selected,this.hover,e.x,e.y);var i={x:e.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible())return i;if("horizontal"===this.options.font.align)return i;var l=this.from.x-this.to.x,o=Math.atan2(this.from.y-this.to.y,l);return(o<-1&&l<0||o>0&&l<0)&&(o+=Math.PI),i.angle=o,i}},{key:"_pointOnCircle",value:function(n,t,e,i){var l=2*i*Math.PI;return{x:n+e*Math.cos(l),y:t-e*Math.sin(l)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return void 0!==this.body.nodes[this.fromId]&&void 0!==this.body.nodes[this.toId]}}],[{key:"parseOptions",value:function(n,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(u.selectiveDeepExtend(["arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","to","title","value","width","font","chosen","widthConstraint"],n,t,e),n.label=h.isValidLabel(t.label)?t.label:void 0,u.mergeOptions(n,t,"smooth",r),u.mergeOptions(n,t,"shadow",r),void 0!==t.dashes&&null!==t.dashes?n.dashes=t.dashes:!0===e&&null===t.dashes&&(n.dashes=(0,o.default)(r.dashes)),void 0!==t.scaling&&null!==t.scaling?(void 0!==t.scaling.min&&(n.scaling.min=t.scaling.min),void 0!==t.scaling.max&&(n.scaling.max=t.scaling.max),u.mergeOptions(n.scaling,t.scaling,"label",r.scaling)):!0===e&&null===t.scaling&&(n.scaling=(0,o.default)(r.scaling)),void 0!==t.arrows&&null!==t.arrows)if("string"==typeof t.arrows){var a=t.arrows.toLowerCase();n.arrows.to.enabled=-1!=a.indexOf("to"),n.arrows.middle.enabled=-1!=a.indexOf("middle"),n.arrows.from.enabled=-1!=a.indexOf("from")}else{if("object"!==(0,l.default)(t.arrows))throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+(0,i.default)(t.arrows));u.mergeOptions(n.arrows,t.arrows,"to",r.arrows),u.mergeOptions(n.arrows,t.arrows,"middle",r.arrows),u.mergeOptions(n.arrows,t.arrows,"from",r.arrows)}else!0===e&&null===t.arrows&&(n.arrows=(0,o.default)(r.arrows));if(void 0!==t.color&&null!==t.color){var c=t.color,d=n.color;if(s)u.deepExtend(d,r.color,!1,e);else for(var p in d)d.hasOwnProperty(p)&&delete d[p];if(u.isString(d))d.color=d,d.highlight=d,d.hover=d,d.inherit=!1,void 0===c.opacity&&(d.opacity=1);else{var f=!1;void 0!==c.color&&(d.color=c.color,f=!0),void 0!==c.highlight&&(d.highlight=c.highlight,f=!0),void 0!==c.hover&&(d.hover=c.hover,f=!0),void 0!==c.inherit&&(d.inherit=c.inherit),void 0!==c.opacity&&(d.opacity=Math.min(1,Math.max(0,c.opacity))),!0===f?d.inherit=!1:void 0===d.inherit&&(d.inherit="from")}}else!0===e&&null===t.color&&(n.color=u.bridgeObject(r.color));!0===e&&null===t.font&&(n.font=u.bridgeObject(r.font))}}]),n}();t.default=m},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(118));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){return(0,l.default)(this,t),(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o))}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"_findBorderPositionBezier",value:function(n,t){var e,i,l,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._getViaCoordinates(),r=0,s=0,a=1,u=this.to,c=!1;for(n.id===this.from.id&&(u=this.from,c=!0);s<=a&&r<10;){var h=.5*(s+a);if(e=this.getPoint(h,o),i=Math.atan2(u.y-e.y,u.x-e.x),l=u.distanceToBorder(t,i)-Math.sqrt(Math.pow(e.x-u.x,2)+Math.pow(e.y-u.y,2)),Math.abs(l)<.2)break;l<0?!1===c?s=h:a=h:!1===c?a=h:s=h,r++}return e.t=h,e}},{key:"_getDistanceToBezierEdge",value:function(n,t,e,i,l,o,r){var s=1e9,a=void 0,u=void 0,c=void 0,h=void 0,d=void 0,p=n,f=t;for(u=1;u<10;u++)c=.1*u,h=Math.pow(1-c,2)*n+2*c*(1-c)*r.x+Math.pow(c,2)*e,d=Math.pow(1-c,2)*t+2*c*(1-c)*r.y+Math.pow(c,2)*i,u>0&&(s=(a=this._getDistanceToLine(p,f,h,d,l,o))1&&void 0!==arguments[1]?arguments[1]:[],i=1e9,l=-1e9,o=1e9,r=-1e9;if(e.length>0)for(var s=0;s(t=n[e[s]]).shape.boundingBox.left&&(o=t.shape.boundingBox.left),rt.shape.boundingBox.top&&(i=t.shape.boundingBox.top),l1&&void 0!==arguments[1]?arguments[1]:[],i=1e9,l=-1e9,o=1e9,r=-1e9;if(e.length>0)for(var s=0;s(t=n[e[s]]).x&&(o=t.x),rt.y&&(i=t.y),la;)i(s,e=t[a++])&&(~o(u,e)||u.push(e));return u}},function(n,t,e){var i=e(22),l=e(41),o=e(56)("IE_PROTO"),r=Object.prototype;n.exports=Object.getPrototypeOf||function(n){return n=l(n),i(n,o)?n[o]:"function"==typeof n.constructor&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?r:null}},function(n,t,e){var i=e(50),l=e(13)("toStringTag"),o="Arguments"==i(function(){return arguments}());n.exports=function(n){var t,e,r;return void 0===n?"Undefined":null===n?"Null":"string"==typeof(e=function(n,t){try{return n[t]}catch(n){}}(t=Object(n),l))?e:o?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(n,t,e){var i=e(17),l=e(7),o=e(28);n.exports=function(n,t){var e=(l.Object||{})[n]||Object[n],r={};r[n]=t(e),i(i.S+i.F*o(function(){e(1)}),"Object",r)}},function(n,t,e){var i=e(84),l=e(58).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(n){return i(n,l)}},function(n,t,e){var i=e(42),l=e(39),o=e(25),r=e(53),s=e(22),a=e(81),u=Object.getOwnPropertyDescriptor;t.f=e(21)?u:function(n,t){if(n=o(n),t=r(t,!0),a)try{return u(n,t)}catch(n){}if(s(n,t))return l(!i.f.call(n,t),n[t])}},function(n,t,e){n.exports={default:e(162),__esModule:!0}},function(n,t,e){n.exports=function(n,t){this.x=void 0!==n?n:0,this.y=void 0!==t?t:0}},function(n,t,e){var i=e(2);function l(n,t){if(void 0===n)throw new Error("No container element defined");if(this.container=n,this.visible=!t||void 0==t.visible||t.visible,this.visible){this.frame=document.createElement("DIV"),this.frame.style.width="100%",this.frame.style.position="relative",this.container.appendChild(this.frame),this.frame.prev=document.createElement("INPUT"),this.frame.prev.type="BUTTON",this.frame.prev.value="Prev",this.frame.appendChild(this.frame.prev),this.frame.play=document.createElement("INPUT"),this.frame.play.type="BUTTON",this.frame.play.value="Play",this.frame.appendChild(this.frame.play),this.frame.next=document.createElement("INPUT"),this.frame.next.type="BUTTON",this.frame.next.value="Next",this.frame.appendChild(this.frame.next),this.frame.bar=document.createElement("INPUT"),this.frame.bar.type="BUTTON",this.frame.bar.style.position="absolute",this.frame.bar.style.border="1px solid red",this.frame.bar.style.width="100px",this.frame.bar.style.height="6px",this.frame.bar.style.borderRadius="2px",this.frame.bar.style.MozBorderRadius="2px",this.frame.bar.style.border="1px solid #7F7F7F",this.frame.bar.style.backgroundColor="#E5E5E5",this.frame.appendChild(this.frame.bar),this.frame.slide=document.createElement("INPUT"),this.frame.slide.type="BUTTON",this.frame.slide.style.margin="0px",this.frame.slide.value=" ",this.frame.slide.style.position="relative",this.frame.slide.style.left="-100px",this.frame.appendChild(this.frame.slide);var e=this;this.frame.slide.onmousedown=function(n){e._onMouseDown(n)},this.frame.prev.onclick=function(n){e.prev(n)},this.frame.play.onclick=function(n){e.togglePlay(n)},this.frame.next.onclick=function(n){e.next(n)}}this.onChangeCallback=void 0,this.values=[],this.index=void 0,this.playTimeout=void 0,this.playInterval=1e3,this.playLoop=!0}l.prototype.prev=function(){var n=this.getIndex();n>0&&this.setIndex(--n)},l.prototype.next=function(){var n=this.getIndex();n0?this.setIndex(0):this.index=void 0},l.prototype.setIndex=function(n){if(!(nthis.values.length-1&&(e=this.values.length-1),e},l.prototype.indexToLeft=function(n){var t=parseFloat(this.frame.bar.style.width)-this.frame.slide.clientWidth-10;return n/(this.values.length-1)*t+3},l.prototype._onMouseMove=function(n){var t=this.leftToIndex(this.startSlideX+(n.clientX-this.startClientX));this.setIndex(t),i.preventDefault()},l.prototype._onMouseUp=function(n){this.frame.style.cursor="auto",i.removeEventListener(document,"mousemove",this.onmousemove),i.removeEventListener(document,"mouseup",this.onmouseup),i.preventDefault()},n.exports=l},function(n,t,e){function i(n,t,e,i){this._start=0,this._end=0,this._step=1,this.prettyStep=!0,this.precision=5,this._current=0,this.setRange(n,t,e,i)}i.prototype.isNumeric=function(n){return!isNaN(parseFloat(n))&&isFinite(n)},i.prototype.setRange=function(n,t,e,i){if(!this.isNumeric(n))throw new Error("Parameter 'start' is not numeric; value: "+n);if(!this.isNumeric(t))throw new Error("Parameter 'end' is not numeric; value: "+n);if(!this.isNumeric(e))throw new Error("Parameter 'step' is not numeric; value: "+n);this._start=n||0,this._end=t||0,this.setStep(e,i)},i.prototype.setStep=function(n,t){void 0===n||n<=0||(void 0!==t&&(this.prettyStep=t),this._step=!0===this.prettyStep?i.calculatePrettyStep(n):n)},i.calculatePrettyStep=function(n){var t=function(n){return Math.log(n)/Math.LN10},e=Math.pow(10,Math.round(t(n))),i=2*Math.pow(10,Math.round(t(n/2))),l=5*Math.pow(10,Math.round(t(n/5))),o=e;return Math.abs(i-n)<=Math.abs(o-n)&&(o=i),Math.abs(l-n)<=Math.abs(o-n)&&(o=l),o<=0&&(o=1),o},i.prototype.getCurrent=function(){return parseFloat(this._current.toPrecision(this.precision))},i.prototype.getStep=function(){return this._step},i.prototype.start=function(n){void 0===n&&(n=!1),this._current=this._start-this._start%this._step,n&&this.getCurrent()this._end},n.exports=i},function(n,t,e){var i,l=(i=e(6))&&i.__esModule?i:{default:i},o=e(2),r=e(95),s=e(34),a={BAR:0,BARCOLOR:1,BARSIZE:2,DOT:3,DOTLINE:4,DOTCOLOR:5,DOTSIZE:6,GRID:7,LINE:8,SURFACE:9},u={dot:a.DOT,"dot-line":a.DOTLINE,"dot-color":a.DOTCOLOR,"dot-size":a.DOTSIZE,line:a.LINE,grid:a.GRID,surface:a.SURFACE,bar:a.BAR,"bar-color":a.BARCOLOR,"bar-size":a.BARSIZE},c=["width","height","filterLabel","legendLabel","xLabel","yLabel","zLabel","xValueLabel","yValueLabel","zValueLabel","showXAxis","showYAxis","showZAxis","showGrid","showPerspective","showShadow","keepAspectRatio","verticalRatio","dotSizeRatio","dotSizeMinFraction","dotSizeMaxFraction","showAnimationControls","animationInterval","animationPreload","animationAutoStart","axisColor","gridColor","xCenter","yCenter"],h=["xBarWidth","yBarWidth","valueMin","valueMax","xMin","xMax","xStep","yMin","yMax","yStep","zMin","zMax","zStep"],d=void 0;function p(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function f(n,t){return void 0===n||""===n?t:n+(void 0===(e=t)||""===e||"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1));var e}function _(n,t,e,i){for(var l,o=0;oo&&(n=i(n)*o),e(t)>o&&(t=i(t)*o),this.cameraOffset.x=n,this.cameraOffset.y=t,this.calculateCameraOrientation()},r.prototype.getOffset=function(){return this.cameraOffset},r.prototype.setArmLocation=function(n,t,e){this.armLocation.x=n,this.armLocation.y=t,this.armLocation.z=e,this.calculateCameraOrientation()},r.prototype.setArmRotation=function(n,t){void 0!==n&&(this.armRotation.horizontal=n),void 0!==t&&(this.armRotation.vertical=t,this.armRotation.vertical<0&&(this.armRotation.vertical=0),this.armRotation.vertical>.5*Math.PI&&(this.armRotation.vertical=.5*Math.PI)),void 0===n&&void 0===t||this.calculateCameraOrientation()},r.prototype.getArmRotation=function(){var n={};return n.horizontal=this.armRotation.horizontal,n.vertical=this.armRotation.vertical,n},r.prototype.setArmLength=function(n){void 0!==n&&(this.armLength=n,this.armLength<.71&&(this.armLength=.71),this.armLength>5&&(this.armLength=5),this.setOffset(this.cameraOffset.x,this.cameraOffset.y),this.calculateCameraOrientation())},r.prototype.getArmLength=function(){return this.armLength},r.prototype.getCameraLocation=function(){return this.cameraLocation},r.prototype.getCameraRotation=function(){return this.cameraRotation},r.prototype.calculateCameraOrientation=function(){this.cameraLocation.x=this.armLocation.x-this.armLength*Math.sin(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.y=this.armLocation.y-this.armLength*Math.cos(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.z=this.armLocation.z+this.armLength*Math.sin(this.armRotation.vertical),this.cameraRotation.x=Math.PI/2-this.armRotation.vertical,this.cameraRotation.y=0,this.cameraRotation.z=-this.armRotation.horizontal;var n=this.cameraRotation.x,t=this.cameraRotation.z,e=this.cameraOffset.x,i=this.cameraOffset.y,l=Math.sin,o=Math.cos;this.cameraLocation.x=this.cameraLocation.x+e*o(t)+i*-l(t)*o(n),this.cameraLocation.y=this.cameraLocation.y+e*l(t)+i*o(t)*o(n),this.cameraLocation.z=this.cameraLocation.z+i*l(n)},n.exports=r},function(n,t,e){var i=e(12);function l(n,t,e){this.dataGroup=n,this.column=t,this.graph=e,this.index=void 0,this.value=void 0,this.values=n.getDistinctValues(this.column),this.values.length>0&&this.selectValue(0),this.dataPoints=[],this.loaded=!1,this.onLoadCallback=void 0,e.animationPreload?(this.loaded=!1,this.loadInBackground()):this.loaded=!0}l.prototype.isLoaded=function(){return this.loaded},l.prototype.getLoadedProgress=function(){for(var n=this.values.length,t=0;this.dataPoints[t];)t++;return Math.round(t/n*100)},l.prototype.getLabel=function(){return this.graph.filterLabel},l.prototype.getColumn=function(){return this.column},l.prototype.getSelectedValue=function(){if(void 0!==this.index)return this.values[this.index]},l.prototype.getValues=function(){return this.values},l.prototype.getValue=function(n){if(n>=this.values.length)throw new Error("Index out of range");return this.values[n]},l.prototype._getDataPoints=function(n){if(void 0===n&&(n=this.index),void 0===n)return[];var t;if(this.dataPoints[n])t=this.dataPoints[n];else{var e={};e.column=this.column,e.value=this.values[n];var l=new i(this.dataGroup.getDataSet(),{filter:function(n){return n[e.column]==e.value}}).get();t=this.dataGroup._getDataPoints(l),this.dataPoints[n]=t}return t},l.prototype.setOnLoadCallback=function(n){this.onLoadCallback=n},l.prototype.selectValue=function(n){if(n>=this.values.length)throw new Error("Index out of range");this.index=n,this.value=this.values[n]},l.prototype.loadInBackground=function(n){void 0===n&&(n=0);var t=this.graph.frame;if(n0){var l=e.groupsData.getDataSet();l.get().forEach(function(n){if(n.nestedGroups){0!=n.showNested&&(n.showNested=!0);var t=[];n.nestedGroups.forEach(function(e){var i=l.get(e);i&&(i.nestedInGroup=n.id,0==n.showNested&&(i.visible=!1),t=t.concat(i))}),l.update(t,i)}})}},update:function(n,t,i){e._onUpdateGroups(t.items)},remove:function(n,t,i){e._onRemoveGroups(t.items)}},this.items={},this.groups={},this.groupIds=[],this.selection=[],this.popup=null,this.touchParams={},this.groupTouchParams={},this._create(),this.setOptions(t)}w.prototype=new h,w.types={background:g,box:f,range:m,point:_},w.prototype._create=function(){var n=document.createElement("div");n.className="vis-itemset",n["timeline-itemset"]=this,this.dom.frame=n;var t=document.createElement("div");t.className="vis-background",n.appendChild(t),this.dom.background=t;var e=document.createElement("div");e.className="vis-foreground",n.appendChild(e),this.dom.foreground=e;var i=document.createElement("div");i.className="vis-axis",this.dom.axis=i;var l=document.createElement("div");l.className="vis-labelset",this.dom.labelSet=l,this._updateUngrouped();var o=new p(b,null,this);o.show(),this.groups[b]=o,this.hammer=new r(this.body.dom.centerContainer),this.hammer.on("hammer.input",(function(n){n.isFirst&&this._onTouch(n)}).bind(this)),this.hammer.on("panstart",this._onDragStart.bind(this)),this.hammer.on("panmove",this._onDrag.bind(this)),this.hammer.on("panend",this._onDragEnd.bind(this)),this.hammer.get("pan").set({threshold:5,direction:r.DIRECTION_HORIZONTAL}),this.hammer.on("tap",this._onSelectItem.bind(this)),this.hammer.on("press",this._onMultiSelectItem.bind(this)),this.hammer.on("doubletap",this._onAddItem.bind(this)),this.groupHammer=new r(this.options.rtl?this.body.dom.rightContainer:this.body.dom.leftContainer),this.groupHammer.on("tap",this._onGroupClick.bind(this)),this.groupHammer.on("panstart",this._onGroupDragStart.bind(this)),this.groupHammer.on("panmove",this._onGroupDrag.bind(this)),this.groupHammer.on("panend",this._onGroupDragEnd.bind(this)),this.groupHammer.get("pan").set({threshold:5,direction:r.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",this._onMouseOver.bind(this)),this.body.dom.centerContainer.addEventListener("mouseout",this._onMouseOut.bind(this)),this.body.dom.centerContainer.addEventListener("mousemove",this._onMouseMove.bind(this)),this.body.dom.centerContainer.addEventListener("contextmenu",this._onDragEnd.bind(this)),this.body.dom.centerContainer.addEventListener("mousewheel",this._onMouseWheel.bind(this)),this.show()},w.prototype.setOptions=function(n){if(n){s.selectiveExtend(["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","multiselectPerGroup","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime"],this.options,n),"itemsAlwaysDraggable"in n&&("boolean"==typeof n.itemsAlwaysDraggable?(this.options.itemsAlwaysDraggable.item=n.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):"object"===(0,l.default)(n.itemsAlwaysDraggable)&&(s.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,n.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"orientation"in n&&("string"==typeof n.orientation?this.options.orientation.item="top"===n.orientation?"top":"bottom":"object"===(0,l.default)(n.orientation)&&"item"in n.orientation&&(this.options.orientation.item=n.orientation.item)),"margin"in n&&("number"==typeof n.margin?(this.options.margin.axis=n.margin,this.options.margin.item.horizontal=n.margin,this.options.margin.item.vertical=n.margin):"object"===(0,l.default)(n.margin)&&(s.selectiveExtend(["axis"],this.options.margin,n.margin),"item"in n.margin&&("number"==typeof n.margin.item?(this.options.margin.item.horizontal=n.margin.item,this.options.margin.item.vertical=n.margin.item):"object"===(0,l.default)(n.margin.item)&&s.selectiveExtend(["horizontal","vertical"],this.options.margin.item,n.margin.item)))),"editable"in n&&("boolean"==typeof n.editable?(this.options.editable.updateTime=n.editable,this.options.editable.updateGroup=n.editable,this.options.editable.add=n.editable,this.options.editable.remove=n.editable,this.options.editable.overrideItems=!1):"object"===(0,l.default)(n.editable)&&s.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,n.editable)),"groupEditable"in n&&("boolean"==typeof n.groupEditable?(this.options.groupEditable.order=n.groupEditable,this.options.groupEditable.add=n.groupEditable,this.options.groupEditable.remove=n.groupEditable):"object"===(0,l.default)(n.groupEditable)&&s.selectiveExtend(["order","add","remove"],this.options.groupEditable,n.groupEditable));var t=(function(t){var e=n[t];if(e){if(!(e instanceof Function))throw new Error("option "+t+" must be a function "+t+"(item, callback)");this.options[t]=e}}).bind(this);["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"].forEach(t),this.markDirty()}},w.prototype.markDirty=function(n){this.groupIds=[],n&&n.refreshItems&&s.forEach(this.items,function(n){n.dirty=!0,n.displayed&&n.redraw()})},w.prototype.destroy=function(){this.hide(),this.setItems(null),this.setGroups(null),this.hammer=null,this.body=null,this.conversion=null},w.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)},w.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right.appendChild(this.dom.labelSet):this.body.dom.left.appendChild(this.dom.labelSet))},w.prototype.setSelection=function(n){var t,e,i,l;for(void 0==n&&(n=[]),Array.isArray(n)||(n=[n]),t=0,e=this.selection.length;tn&&i.push(a.id):a.leftt&&i.push(a.id)}return i},w.prototype._deselect=function(n){for(var t=this.selection,e=0,i=t.length;e0){for(var g={},v=0;vl)return}if(e&&e!=this.groupTouchParams.group){var a=t.get(e.groupId),c=t.get(this.groupTouchParams.group.groupId);c&&a&&(this.options.groupOrderSwap(c,a,t),t.update(c),t.update(a));var h=t.getIds({order:this.options.groupOrder});if(!s.equalArray(h,this.groupTouchParams.originalOrder))for(var d=this.groupTouchParams.originalOrder,p=this.groupTouchParams.group.groupId,f=Math.min(d.length,h.length),_=0,m=0,g=0;_=f)break;if(h[_+m]==p)m=1;else if(d[_+g]==p)g=1;else{var v=h.indexOf(d[_+g]),y=t.get(h[_+m]),b=t.get(d[_+g]);this.options.groupOrderSwap(y,b,t),t.update(y),t.update(b);var w=h[_+m];h[_+m]=d[_+g],h[v]=w,_++}}}}},w.prototype._onGroupDragEnd=function(n){if(this.options.groupEditable.order&&this.groupTouchParams.group){n.stopPropagation();var t=this,e=t.groupTouchParams.group.groupId,i=t.groupsData.getDataSet(),l=s.extend({},i.get(e));t.options.onMoveGroup(l,function(n){if(n)n[i._fieldId]=e,i.update(n);else{var l=i.getIds({order:t.options.groupOrder});if(!s.equalArray(l,t.groupTouchParams.originalOrder))for(var o=t.groupTouchParams.originalOrder,r=Math.min(o.length,l.length),a=0;a=r)break;var u=l.indexOf(o[a]),c=i.get(l[a]),h=i.get(o[a]);t.options.groupOrderSwap(c,h,i),i.update(c),i.update(h);var d=l[a];l[a]=o[a],l[u]=d,a++}}}),t.body.emitter.emit("groupDragged",{groupId:e})}},w.prototype._onSelectItem=function(n){if(this.options.selectable)if(n.srcEvent&&(n.srcEvent.ctrlKey||n.srcEvent.metaKey)||n.srcEvent&&n.srcEvent.shiftKey)this._onMultiSelectItem(n);else{var t=this.getSelection(),e=this.itemFromTarget(n);this.setSelection(e?[e.id]:[]);var i=this.getSelection();(i.length>0||t.length>0)&&this.body.emitter.emit("select",{items:i,event:n})}},w.prototype._onMouseOver=function(n){var t=this.itemFromTarget(n);if(t&&t!==this.itemFromRelatedTarget(n)){var e=t.getTitle();if(this.options.showTooltips&&e){null==this.popup&&(this.popup=new v(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(e);var i=this.body.dom.centerContainer;this.popup.setPosition(n.clientX-s.getAbsoluteLeft(i)+i.offsetLeft,n.clientY-s.getAbsoluteTop(i)+i.offsetTop),this.popup.show()}else null!=this.popup&&this.popup.hide();this.body.emitter.emit("itemover",{item:t.id,event:n})}},w.prototype._onMouseOut=function(n){var t=this.itemFromTarget(n);t&&t!==this.itemFromRelatedTarget(n)&&(null!=this.popup&&this.popup.hide(),this.body.emitter.emit("itemout",{item:t.id,event:n}))},w.prototype._onMouseMove=function(n){if(this.itemFromTarget(n)&&this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden){var t=this.body.dom.centerContainer;this.popup.setPosition(n.clientX-s.getAbsoluteLeft(t)+t.offsetLeft,n.clientY-s.getAbsoluteTop(t)+t.offsetTop),this.popup.show()}},w.prototype._onMouseWheel=function(n){this.touchParams.itemIsDragging&&this._onDragEnd(n)},w.prototype._onUpdateItem=function(n){if(this.options.selectable&&this.options.editable.add){var t=this;if(n){var e=t.itemsData.get(n.id);this.options.onUpdate(e,function(n){n&&t.itemsData.getDataSet().update(n)})}}},w.prototype._onDropObjectOnItem=function(n){var t=this.itemFromTarget(n),e=JSON.parse(n.dataTransfer.getData("text"));this.options.onDropObjectOnItem(e,t)},w.prototype._onAddItem=function(n){if(this.options.selectable&&this.options.editable.add){var t,e,i=this,l=this.options.snap||null;this.options.rtl?e=(t=s.getAbsoluteRight(this.dom.frame))-n.center.x:(t=s.getAbsoluteLeft(this.dom.frame),e=n.center.x-t);var o,r,a=this.body.util.toTime(e),u=this.body.util.getScale(),c=this.body.util.getStep();"drop"==n.type?((r=JSON.parse(n.dataTransfer.getData("text"))).content=r.content?r.content:"new item",r.start=r.start?r.start:l?l(a,u,c):a,r.type=r.type||"box",r[this.itemsData._fieldId]=r.id||s.randomUUID(),"range"!=r.type||r.end||(o=this.body.util.toTime(e+this.props.width/5),r.end=l?l(o,u,c):o)):((r={start:l?l(a,u,c):a,content:"new item"})[this.itemsData._fieldId]=s.randomUUID(),"range"===this.options.type&&(o=this.body.util.toTime(e+this.props.width/5),r.end=l?l(o,u,c):o));var h=this.groupFromTarget(n);h&&(r.group=h.groupId),r=this._cloneItemData(r),this.options.onAdd(r,function(t){t&&(i.itemsData.getDataSet().add(t),"drop"==n.type&&i.setSelection([t.id]))})}},w.prototype._onMultiSelectItem=function(n){if(this.options.selectable){var t=this.itemFromTarget(n);if(t){var e=this.options.multiselect?this.getSelection():[];if(n.srcEvent&&n.srcEvent.shiftKey&&this.options.multiselect){var i=this.itemsData.get(t.id).group,l=void 0;this.options.multiselectPerGroup&&e.length>0&&(l=this.itemsData.get(e[0]).group),this.options.multiselectPerGroup&&void 0!=l&&l!=i||e.push(t.id);var o=w._getItemRange(this.itemsData.get(e,this.itemOptions));if(!this.options.multiselectPerGroup||l==i)for(var r in e=[],this.items)if(this.items.hasOwnProperty(r)){var s=this.items[r],a=s.data.start;!(a>=o.min&&(void 0!==s.data.end?s.data.end:a)<=o.max)||this.options.multiselectPerGroup&&l!=this.itemsData.get(s.id).group||s instanceof g||e.push(s.id)}}else{var u=e.indexOf(t.id);-1==u?e.push(t.id):e.splice(u,1)}this.setSelection(e),this.body.emitter.emit("select",{items:this.getSelection(),event:n})}}},w._getItemRange=function(n){var t=null,e=null;return n.forEach(function(n){(null==e||n.startt)&&(t=n.end):(null==t||n.start>t)&&(t=n.start)}),{min:e,max:t}},w.prototype.itemFromElement=function(n){for(var t=n;t;){if(t.hasOwnProperty("timeline-item"))return t["timeline-item"];t=t.parentNode}return null},w.prototype.itemFromTarget=function(n){return this.itemFromElement(n.target)},w.prototype.itemFromRelatedTarget=function(n){return this.itemFromElement(n.relatedTarget)},w.prototype.groupFromTarget=function(n){var t=n.center?n.center.y:n.clientY,e=this.groupIds;e.length<=0&&this.groupsData&&(e=this.groupsData.getIds({order:this.options.groupOrder}));for(var i=0;ir&&tr)return l}else if(0===i&&to&&(o=r.top+r.height)}while(s)}}i.height=o-i.top+.5*e.item.vertical},t.nostack=function(n,e,i,l){for(var o=0;oi[r].index&&t.collisionByTimes(i[l],i[r])){o=i[r];break}null!=o&&(i[l].top=o.top+o.height)}while(o)}for(var s=0;si[a].index&&(i[r].top+=i[a].height);for(var u=n[r],c=0;ct.right&&n.top-e.vertical+.001t.top:n.left-e.horizontal+.001t.left&&n.top-e.vertical+.001t.top},t.collisionByTimes=function(n,t){return n.start<=t.start&&n.end>=t.start&&n.topt.top||t.start<=n.start&&t.end>=n.start&&t.topn.top}},function(n,t,e){var i=e(38);function l(n,t,e){if(this.props={dot:{width:0,height:0},line:{width:0,height:0}},this.options=e,n&&void 0==n.start)throw new Error('Property "start" missing in item '+n);i.call(this,n,t,e)}(l.prototype=new i(null,null,null)).isVisible=function(n){var t=this.options.align,e=this.width*n.getMillisecondsPerPixel();return"right"==t?this.data.start.getTime()>n.start&&this.data.start.getTime()-en.start&&this.data.start.getTime()n.start&&this.data.start.getTime()-e/2n.start&&this.data.startn.start},r.prototype._createDomElement=function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)},r.prototype._appendDomElement=function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var n=this.parent.dom.background;if(!n)throw new Error("Cannot redraw item: parent has no background container element");n.appendChild(this.dom.box)}this.displayed=!0},r.prototype._updateDirtyDomComponents=function(){this.dirty&&(this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box),this.dom.box.className=this.baseClassName+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":""))},r.prototype._getDomComponentsSizes=function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.content).overflow,{content:{width:this.dom.content.offsetWidth}}},r.prototype._updateDomComponentsSizes=function(n){this.props.content.width=n.content.width,this.height=0,this.dirty=!1},r.prototype._repaintDomAdditionals=function(){},r.prototype.redraw=function(n){var t,e,i=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),(function(){this.dirty&&(t=this._getDomComponentsSizes.bind(this)())}).bind(this),(function(){this.dirty&&this._updateDomComponentsSizes.bind(this)(t)}).bind(this),this._repaintDomAdditionals.bind(this)];return n?i:(i.forEach(function(n){e=n()}),e)},r.prototype.show=o.prototype.show,r.prototype.hide=o.prototype.hide,r.prototype.repositionX=o.prototype.repositionX,r.prototype.repositionY=function(n){var t,e=this.options.orientation.item;if(void 0!==this.data.subgroup){var i=this.data.subgroup;this.dom.box.style.height=this.parent.subgroups[i].height+"px",this.dom.box.style.top="top"==e?this.parent.top+this.parent.subgroups[i].top+"px":this.parent.top+this.parent.height-this.parent.subgroups[i].top-this.parent.subgroups[i].height+"px",this.dom.box.style.bottom=""}else this.parent instanceof l?(t=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom="bottom"==e?"0":"",this.dom.box.style.top="top"==e?"0":""):(t=this.parent.height,this.dom.box.style.top=this.parent.top+"px",this.dom.box.style.bottom="");this.dom.box.style.height=t+"px"},n.exports=r},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=o(e(0)),l=o(e(1));function o(n){return n&&n.__esModule?n:{default:n}}var r=function(){function n(t,e){(0,i.default)(this,n),this.container=t,this.overflowMethod=e||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return(0,l.default)(n,[{key:"setPosition",value:function(n,t){this.x=parseInt(n),this.y=parseInt(t)}},{key:"setText",value:function(n){n instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(n)):this.frame.innerHTML=n}},{key:"show",value:function(n){if(void 0===n&&(n=!0),!0===n){var t=this.frame.clientHeight,e=this.frame.clientWidth,i=this.frame.parentNode.clientHeight,l=this.frame.parentNode.clientWidth,o=0,r=0;if("flip"==this.overflowMethod){var s=!1,a=!0;this.y-tl-this.padding&&(s=!0),o=s?this.x-e:this.x,r=a?this.y-t:this.y}else(r=this.y-t)+t+this.padding>i&&(r=i-t-this.padding),rl&&(o=l-e-this.padding),o0){var s={};for(this._getRelevantData(o,s,i,l),this._applySampling(o,s),t=0;t0)switch(n.options.style){case"line":u.hasOwnProperty(o[t])||(u[o[t]]=f.calcPath(s[o[t]],n)),f.draw(u[o[t]],n,this.framework);case"point":case"points":"point"!=n.options.style&&"points"!=n.options.style&&1!=n.options.drawPoints.enabled||_.draw(s[o[t]],n,this.framework)}}}return r.cleanupElements(this.svgElements),!1},m.prototype._stack=function(n,t){var e,i,l,o;e=0;for(var r=0;rn[r].x){o=t[s],l=0==s?o:t[s-1],e=s;break}}void 0===o&&(l=t[t.length-1],o=t[t.length-1]),n[r].y=0==(i=o.x-l.x)?n[r].orginalY+o.y:n[r].orginalY+(o.y-l.y)/i*(n[r].x-l.x)+l.y}},m.prototype._getRelevantData=function(n,t,e,i){var l,r,s;if(n.length>0)for(r=0;r0)for(var e=0;e0){var l,o=i.length,r=o/(this.body.util.toGlobalScreen(i[i.length-1].x)-this.body.util.toGlobalScreen(i[0].x));l=Math.min(Math.ceil(.2*o),Math.max(1,Math.round(r)));for(var s=new Array(o),a=0;a0){for(o=0;o0&&(l=this.groups[n[o]],!0===r.stack&&"bar"===r.style?"left"===r.yAxisOrientation?s=s.concat(i):a=a.concat(i):e[n[o]]=l.getYRange(i,n[o]));p.getStackedYRange(s,e,n,"__barStackLeft","left"),p.getStackedYRange(a,e,n,"__barStackRight","right")}},m.prototype._updateYAxis=function(n,t){var e,i,l=!1,o=!1,r=!1,s=1e9,a=1e9,u=-1e9,c=-1e9;if(n.length>0){for(var h=0;he?e:s,u=ue?e:a,c=c=0&&n._redrawLabel(i-2,t.val,e,"vis-y-axis vis-major",n.props.majorCharHeight),!0===n.master&&(l?n._redrawLine(i,e,"vis-grid vis-horizontal vis-major",n.options.majorLinesOffset,n.props.majorLineWidth):n._redrawLine(i,e,"vis-grid vis-horizontal vis-minor",n.options.minorLinesOffset,n.props.minorLineWidth))});var s=0;void 0!==this.options[e].title&&void 0!==this.options[e].title.text&&(s=this.props.titleCharHeight);var u=!0===this.options.icons?Math.max(this.options.iconWidth,s)+this.options.labelOffsetX+15:s+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-u&&!0===this.options.visible?(this.width=this.maxLabelSize+u,this.options.width=this.width+"px",r.cleanupElements(this.DOMelements.lines),r.cleanupElements(this.DOMelements.labels),this.redraw(),t=!0):this.maxLabelSizethis.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+u),this.options.width=this.width+"px",r.cleanupElements(this.DOMelements.lines),r.cleanupElements(this.DOMelements.labels),this.redraw(),t=!0):(r.cleanupElements(this.DOMelements.lines),r.cleanupElements(this.DOMelements.labels),t=!1),t},u.prototype.convertValue=function(n){return this.scale.convertValue(n)},u.prototype.screenToValue=function(n){return this.scale.screenToValue(n)},u.prototype._redrawLabel=function(n,t,e,i,l){var o=r.getDOMElement("div",this.DOMelements.labels,this.dom.frame);o.className=i,o.innerHTML=t,"left"===e?(o.style.left="-"+this.options.labelOffsetX+"px",o.style.textAlign="right"):(o.style.right="-"+this.options.labelOffsetX+"px",o.style.textAlign="left"),o.style.top=n-.5*l+this.options.labelOffsetY+"px",t+="";var s=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=l,this.majorCharHeight=o,this._start=n,this._end=t,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=r,this.autoScaleStart=e,this.autoScaleEnd=i,this.formattingFunction=s,e||i){var a=this,u=function(n){var t=n-n%(a.magnitudefactor*a.minorSteps[a.minorStepIdx]);return n%(a.magnitudefactor*a.minorSteps[a.minorStepIdx])>a.magnitudefactor*a.minorSteps[a.minorStepIdx]*.5?t+a.magnitudefactor*a.minorSteps[a.minorStepIdx]:t};e&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=u(this._start)),i&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=u(this._end)),this.determineScale()}}i.prototype.setCharHeight=function(n){this.majorCharHeight=n},i.prototype.setHeight=function(n){this.containerHeight=n},i.prototype.determineScale=function(){var n=this._end-this._start;this.scale=this.containerHeight/n;var t=this.majorCharHeight/this.scale,e=n>0?Math.round(Math.log(n)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,e);var i=0;e<0&&(i=e);for(var l=!1,o=i;Math.abs(o)<=Math.abs(e);o++){this.magnitudefactor=Math.pow(10,o);for(var r=0;r=t){l=!0,this.minorStepIdx=r;break}if(!0===l)break}},i.prototype.is_major=function(n){return n%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])==0},i.prototype.getStep=function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]},i.prototype.getFirstMajor=function(){var n=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(n-this._start%n)%n)},i.prototype.formatValue=function(n){var t=n.toPrecision(5);return"function"==typeof this.formattingFunction&&(t=this.formattingFunction(n)),"number"==typeof t?""+t:"string"==typeof t?t:n.toPrecision(5)},i.prototype.getLines=function(){for(var n=[],t=this.getStep(),e=this._start+(t-this._start%t)%t;this._end-e>1e-5;e+=t)e!=this._start&&n.push({major:this.is_major(e),y:this.convertValue(e),val:this.formatValue(e)});return n},i.prototype.followScale=function(n){var t=this.minorStepIdx,e=this._start,i=this._end,l=this,o=function(){l.magnitudefactor*=2},r=function(){l.magnitudefactor/=2};n.minorStepIdx<=1&&this.minorStepIdx<=1||n.minorStepIdx>1&&this.minorStepIdx>1||(n.minorStepIdxi+1e-5)r(),u=!1;else{if(!this.autoScaleStart&&this._start=0)){r(),u=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&ht.x?1:-1})):this.itemsData=[]},u.prototype.getItems=function(){return this.itemsData},u.prototype.setZeroPosition=function(n){this.zeroPosition=n},u.prototype.setOptions=function(n){void 0!==n&&(o.selectiveDeepExtend(["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"],this.options,n),"function"==typeof n.drawPoints&&(n.drawPoints={onRender:n.drawPoints}),o.mergeOptions(this.options,n,"interpolation"),o.mergeOptions(this.options,n,"drawPoints"),o.mergeOptions(this.options,n,"shaded"),n.interpolation&&"object"==(0,l.default)(n.interpolation)&&n.interpolation.parametrization&&("uniform"==n.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==n.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)))},u.prototype.update=function(n){this.group=n,this.content=n.content||"graph",this.className=n.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=void 0===n.visible||n.visible,this.style=n.style,this.setOptions(n.options)},u.prototype.getLegend=function(n,t,e,i,l){switch(void 0!=e&&null!=e||(e={svg:document.createElementNS("http://www.w3.org/2000/svg","svg"),svgElements:{},options:this.options,groups:[this]}),void 0!=i&&null!=i||(i=0),void 0!=l&&null!=l||(l=.5*t),this.options.style){case"line":s.drawIcon(this,i,l,n,t,e);break;case"points":case"point":a.drawIcon(this,i,l,n,t,e);break;case"bar":r.drawIcon(this,i,l,n,t,e)}return{icon:e.svg,label:this.content,orientation:this.options.yAxisOrientation}},u.prototype.getYRange=function(n){for(var t=n[0].y,e=n[0].y,i=0;in[i].y?n[i].y:t,e=e0&&(e=Math.min(e,Math.abs(t[i-1].screen_x-t[i].screen_x))),0===e&&(void 0===n[t[i].screen_x]&&(n[t[i].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),n[t[i].screen_x].amount+=1)},o._getSafeDrawData=function(n,t,e){var i,l;return n0?(i=n0){n.sort(function(n,t){return n.screen_x===t.screen_x?n.groupIdt[o].screen_y?t[o].screen_y:i,l=ln[r].accumulatedNegative?n[r].accumulatedNegative:i)>n[r].accumulatedPositive?n[r].accumulatedPositive:i,l=(l=l0)return 1==t.options.interpolation.enabled?l._catmullRom(n,t):l._linear(n)},l.drawIcon=function(n,t,e,l,o,r){var s,a,u=.5*o,c=i.getSVGElement("rect",r.svgElements,r.svg);c.setAttributeNS(null,"x",t),c.setAttributeNS(null,"y",e-u),c.setAttributeNS(null,"width",l),c.setAttributeNS(null,"height",2*u),c.setAttributeNS(null,"class","vis-outline"),(s=i.getSVGElement("path",r.svgElements,r.svg)).setAttributeNS(null,"class",n.className),void 0!==n.style&&s.setAttributeNS(null,"style",n.style),s.setAttributeNS(null,"d","M"+t+","+e+" L"+(t+l)+","+e),1==n.options.shaded.enabled&&((a=i.getSVGElement("path",r.svgElements,r.svg)).setAttributeNS(null,"d","top"==n.options.shaded.orientation?"M"+t+", "+(e-u)+"L"+t+","+e+" L"+(t+l)+","+e+" L"+(t+l)+","+(e-u):"M"+t+","+e+" L"+t+","+(e+u)+" L"+(t+l)+","+(e+u)+"L"+(t+l)+","+e),a.setAttributeNS(null,"class",n.className+" vis-icon-fill"),void 0!==n.options.shaded.style&&""!==n.options.shaded.style&&a.setAttributeNS(null,"style",n.options.shaded.style)),1==n.options.drawPoints.enabled&&i.drawPoint(t+.5*l,e,{style:n.options.drawPoints.style,styles:n.options.drawPoints.styles,size:n.options.drawPoints.size,className:n.className},r.svgElements,r.svg)},l.drawShading=function(n,t,e,l){if(1==t.options.shaded.enabled){var o,r,s=Number(l.svg.style.height.replace("px","")),a=i.getSVGElement("path",l.svgElements,l.svg),u="L";1==t.options.interpolation.enabled&&(u="C"),r="top"==t.options.shaded.orientation?0:"bottom"==t.options.shaded.orientation?s:Math.min(Math.max(0,t.zeroPosition),s),o="group"==t.options.shaded.orientation&&null!=e&&void 0!=e?"M"+n[0][0]+","+n[0][1]+" "+this.serializePath(n,u,!1)+" L"+e[e.length-1][0]+","+e[e.length-1][1]+" "+this.serializePath(e,u,!0)+e[0][0]+","+e[0][1]+" Z":"M"+n[0][0]+","+n[0][1]+" "+this.serializePath(n,u,!1)+" V"+r+" H"+n[0][0]+" Z",a.setAttributeNS(null,"class",t.className+" vis-fill"),void 0!==t.options.shaded.style&&a.setAttributeNS(null,"style",t.options.shaded.style),a.setAttributeNS(null,"d",o)}},l.draw=function(n,t,e){if(null!=n&&void 0!=n){var l=i.getSVGElement("path",e.svgElements,e.svg);l.setAttributeNS(null,"class",t.className),void 0!==t.style&&l.setAttributeNS(null,"style",t.style);var o="L";1==t.options.interpolation.enabled&&(o="C"),l.setAttributeNS(null,"d","M"+n[0][0]+","+n[0][1]+" "+this.serializePath(n,o,!1))}},l.serializePath=function(n,t,e){if(n.length<2)return"";var i,l=t;if(e)for(i=n.length-2;i>0;i--)l+=n[i][0]+","+n[i][1]+" ";else for(i=1;i0&&(f=1/f),(_=3*m*(m+g))>0&&(_=1/_),a={screen_x:(v*l.screen_x+p*o.screen_x-y*r.screen_x)*_,screen_y:(v*l.screen_y+p*o.screen_y-y*r.screen_y)*_},0==(s={screen_x:(-y*i.screen_x+d*l.screen_x+b*o.screen_x)*f,screen_y:(-y*i.screen_y+d*l.screen_y+b*o.screen_y)*f}).screen_x&&0==s.screen_y&&(s=l),0==a.screen_x&&0==a.screen_y&&(a=o),C.push([s.screen_x,s.screen_y]),C.push([a.screen_x,a.screen_y]),C.push([o.screen_x,o.screen_y]);return C},l._linear=function(n){for(var t=[],e=0;e");this.dom.textArea.innerHTML=o,this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},a.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var n=(0,l.default)(this.groups);n.sort(function(n,t){return n":!0,"--":!0},u="",c=0,h="",d="",p=s.NULL;function f(){h=u.charAt(++c)}function _(){return u.charAt(c+1)}var m=/[a-zA-Z_0-9.:#]/;function g(n){return m.test(n)}function v(n,t){if(n||(n={}),t)for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function y(n,t,e){for(var i=t.split("."),l=n;i.length;){var o=i.shift();i.length?(l[o]||(l[o]={}),l=l[o]):l[o]=e}}function b(n,t){for(var e,i,l=null,o=[n],r=n;r.parent;)o.push(r.parent),r=r.parent;if(r.nodes)for(e=0,i=r.nodes.length;e=0;e--){var s=o[e];s.nodes||(s.nodes=[]),-1===s.nodes.indexOf(l)&&s.nodes.push(l)}t.attr&&(l.attr=v(l.attr,t.attr))}function w(n,t){if(n.edges||(n.edges=[]),n.edges.push(t),n.edge){var e=v({},n.edge);t.attr=v(e,t.attr)}}function C(n,t,e,i,l){var o={from:t,to:e,type:i};return n.edge&&(o.attr=v({},n.edge)),o.attr=v(o.attr||{},l),o}function x(){for(p=s.NULL,d="";" "===h||"\t"===h||"\n"===h||"\r"===h;)f();do{var n=!1;if("#"===h){for(var t=c-1;" "===u.charAt(t)||"\t"===u.charAt(t);)t--;if("\n"===u.charAt(t)||""===u.charAt(t)){for(;""!=h&&"\n"!=h;)f();n=!0}}if("/"===h&&"/"===_()){for(;""!=h&&"\n"!=h;)f();n=!0}if("/"===h&&"*"===_()){for(;""!=h;){if("*"===h&&"/"===_()){f(),f();break}f()}n=!0}for(;" "===h||"\t"===h||"\n"===h||"\r"===h;)f()}while(n);if(""!==h){var e=h+_();if(a[e])return p=s.DELIMITER,d=e,f(),void f();if(a[h])return p=s.DELIMITER,d=h,void f();if(g(h)||"-"===h){for(d+=h,f();g(h);)d+=h,f();return"false"===d?d=!1:"true"===d?d=!0:isNaN(Number(d))||(d=Number(d)),void(p=s.IDENTIFIER)}if('"'===h){for(f();""!=h&&('"'!=h||'"'===h&&'"'===_());)'"'===h?(d+=h,f()):"\\"===h&&"n"===_()?(d+="\n",f()):d+=h,f();if('"'!=h)throw z('End of string " expected');return f(),void(p=s.IDENTIFIER)}for(p=s.UNKNOWN;""!=h;)d+=h,f();throw new SyntaxError('Syntax error in part "'+D(d,30)+'"')}p=s.DELIMITER}function S(n){for(;""!==d&&"}"!=d;)O(n),";"===d&&x()}function O(n){var t=M(n);if(t)k(n,t);else if(!function(n){return"node"===d?(x(),n.node=T(),"node"):"edge"===d?(x(),n.edge=T(),"edge"):"graph"===d?(x(),n.graph=T(),"graph"):null}(n)){if(p!=s.IDENTIFIER)throw z("Identifier expected");var e=d;if(x(),"="===d){if(x(),p!=s.IDENTIFIER)throw z("Identifier expected");n[e]=d,x()}else!function(n,t){var e={id:t},i=T();i&&(e.attr=i),b(n,e),k(n,t)}(n,e)}}function M(n){var t=null;if("subgraph"===d&&((t={}).type="subgraph",x(),p===s.IDENTIFIER&&(t.id=d,x())),"{"===d){if(x(),t||(t={}),t.parent=n,t.node=n.node,t.edge=n.edge,t.graph=n.graph,S(t),"}"!=d)throw z("Angle bracket } expected");x(),delete t.node,delete t.edge,delete t.graph,delete t.parent,n.subgraphs||(n.subgraphs=[]),n.subgraphs.push(t)}return t}function k(n,t){for(;"->"===d||"--"===d;){var e,i=d;x();var l=M(n);if(l)e=l;else{if(p!=s.IDENTIFIER)throw z("Identifier or subgraph expected");b(n,{id:e=d}),x()}w(n,C(n,t,e,i,T())),t=e}}function T(){for(var n=null,t={dashed:!0,solid:!1,dotted:[1,5]};"["===d;){for(x(),n={};""!==d&&"]"!=d;){if(p!=s.IDENTIFIER)throw z("Attribute name expected");var e=d;if(x(),"="!=d)throw z("Equal sign = expected");if(x(),p!=s.IDENTIFIER)throw z("Attribute value expected");var i=d;"style"===e&&(i=t[i]),y(n,e,i),x(),","==d&&x()}if("]"!=d)throw z("Bracket ] expected");x()}return n}function z(n){return new SyntaxError(n+', got "'+D(d,30)+'" (char '+c+")")}function D(n,t){return n.length<=t?n:n.substr(0,27)+"..."}function P(n,t,e){for(var i=t.split("."),l=i.pop(),o=n,r=0;r2&&void 0!==arguments[2]&&arguments[2];(0,o.default)(this,n),this.body=t,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(e),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=i}return(0,r.default)(n,[{key:"setOptions",value:function(n){if(this.elementOptions=n,this.initFontOptions(n.font),u.isValidLabel(n.label)?this.labelDirty=!0:n.label="",void 0!==n.font&&null!==n.font)if("string"==typeof n.font)this.baseSize=this.fontOptions.size;else if("object"===(0,l.default)(n.font)){var t=n.font.size;void 0!==t&&(this.baseSize=t)}}},{key:"initFontOptions",value:function(t){var e=this;a.forEach(h,function(n){e.fontOptions[n]={}}),n.parseFontString(this.fontOptions,t)?this.fontOptions.vadjust=0:a.forEach(t,function(n,t){void 0!==n&&null!==n&&"object"!==("undefined"==typeof n?"undefined":(0,l.default)(n))&&(e.fontOptions[t]=n)})}},{key:"constrain",value:function(n){var t={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},e=a.topMost(n,"widthConstraint");if("number"==typeof e)t.maxWdt=Number(e),t.minWdt=Number(e);else if("object"===("undefined"==typeof e?"undefined":(0,l.default)(e))){var i=a.topMost(n,["widthConstraint","maximum"]);"number"==typeof i&&(t.maxWdt=Number(i));var o=a.topMost(n,["widthConstraint","minimum"]);"number"==typeof o&&(t.minWdt=Number(o))}var r=a.topMost(n,"heightConstraint");if("number"==typeof r)t.minHgt=Number(r);else if("object"===("undefined"==typeof r?"undefined":(0,l.default)(r))){var s=a.topMost(n,["heightConstraint","minimum"]);"number"==typeof s&&(t.minHgt=Number(s));var u=a.topMost(n,["heightConstraint","valign"]);"string"==typeof u&&("top"!==u&&"bottom"!==u||(t.valign=u))}return t}},{key:"update",value:function(n,t){this.setOptions(n,!0),this.propagateFonts(t),a.deepExtend(this.fontOptions,this.constrain(t)),this.fontOptions.chooser=u.choosify("label",t)}},{key:"adjustSizes",value:function(n){var t=n?n.right+n.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=t,this.fontOptions.minWdt-=t),this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=n?n.top+n.bottom:0)}},{key:"addFontOptionsToPile",value:function(n,t){for(var e=0;e5&&void 0!==arguments[5]?arguments[5]:"middle";if(void 0!==this.elementOptions.label){var r=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&r=this.elementOptions.scaling.label.maxVisible&&(r=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(n,i,l,t,e,o),this._drawBackground(n),this._drawText(n,t,this.size.yLine,o,r))}}},{key:"_drawBackground",value:function(n){if(void 0!==this.fontOptions.background&&"none"!==this.fontOptions.background){n.fillStyle=this.fontOptions.background;var t=this.getSize();n.fillRect(t.left,t.top,t.width,t.height)}}},{key:"_drawText",value:function(n,t,e){var l=arguments[4],o=this._setAlignment(n,t,e,arguments.length>3&&void 0!==arguments[3]?arguments[3]:"middle"),r=(0,i.default)(o,2);t=r[0],e=r[1],n.textAlign="left",t-=this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&("top"===this.fontOptions.valign&&(e-=(this.size.height-this.size.labelHeight)/2),"bottom"===this.fontOptions.valign&&(e+=(this.size.height-this.size.labelHeight)/2));for(var s=0;s0&&(n.lineWidth=h.strokeWidth,n.strokeStyle=_,n.lineJoin="round"),n.fillStyle=f,h.strokeWidth>0&&n.strokeText(h.text,t+u,e+h.vadjust),n.fillText(h.text,t+u,e+h.vadjust),u+=h.width}e+=a.height}}}},{key:"_setAlignment",value:function(n,t,e,i){return this.isEdgeLabel&&"horizontal"!==this.fontOptions.align&&!1===this.pointToSelf?(t=0,e=0,"top"===this.fontOptions.align?(n.textBaseline="alphabetic",e-=4):"bottom"===this.fontOptions.align?(n.textBaseline="hanging",e+=4):n.textBaseline="middle"):n.textBaseline=i,[t,e]}},{key:"_getColor",value:function(n,t,e){var i=n||"#000000",l=e||"#ffffff";if(t<=this.elementOptions.scaling.label.drawThreshold){var o=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-t)));i=a.overrideOpacity(i,o),l=a.overrideOpacity(l,o)}return[i,l]}},{key:"getTextSize",value:function(n){return this._processLabel(n,arguments.length>1&&void 0!==arguments[1]&&arguments[1],arguments.length>2&&void 0!==arguments[2]&&arguments[2]),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var n=this.size.left,t=this.size.top-1;if(this.isEdgeLabel){var e=.5*-this.size.width;switch(this.fontOptions.align){case"middle":n=e,t=.5*-this.size.height;break;case"top":n=e,t=-(this.size.height+2);break;case"bottom":n=e,t=2}}return{left:n,top:t,width:this.size.width,height:this.size.height}}},{key:"calculateLabelSize",value:function(n,t,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";this._processLabel(n,t,e),this.size.left=i-.5*this.size.width,this.size.top=l-.5*this.size.height,this.size.yLine=l+.5*(1-this.lineCount)*this.fontOptions.size,"hanging"===o&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(n,t,e,i){var l=function(n,t,e){return"normal"===t?"mod"===e?"":n[e]:void 0!==n[t][e]?n[t][e]:n[e]},o={color:l(this.fontOptions,i,"color"),size:l(this.fontOptions,i,"size"),face:l(this.fontOptions,i,"face"),mod:l(this.fontOptions,i,"mod"),vadjust:l(this.fontOptions,i,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(t||e)&&("normal"===i&&!0===this.fontOptions.chooser&&this.elementOptions.labelHighlightBold?o.mod="bold":"function"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(o,this.elementOptions.id,t,e));var r="";return void 0!==o.mod&&""!==o.mod&&(r+=o.mod+" "),n.font=(r+=o.size+"px "+o.face).replace(/"/g,""),o.font=n.font,o.height=o.size,o}},{key:"differentState",value:function(n,t){return n!==this.selectedState||t!==this.hoverState}},{key:"_processLabelText",value:function(n,t,e,i){return new c(n,this,t,e).process(i)}},{key:"_processLabel",value:function(n,t,e){if(!1!==this.labelDirty||this.differentState(t,e)){var i=this._processLabelText(n,t,e,this.elementOptions.label);this.fontOptions.minWdt>0&&i.width0&&i.heighti.shape.height?(t=i.x+.5*i.shape.width,e=i.y-l):(t=i.x+l,e=i.y-.5*i.shape.height),[t,e,l]}},{key:"_pointOnCircle",value:function(n,t,e,i){var l=2*i*Math.PI;return{x:n+e*Math.cos(l),y:t-e*Math.sin(l)}}},{key:"_findBorderPositionCircle",value:function(n,t,e){for(var i=e.x,l=e.y,o=e.low,r=e.high,s=e.direction,a=0,u=this.options.selfReferenceSize,c=void 0,h=void 0,d=void 0,p=.5*(o+r);o<=r&&a<10&&(c=this._pointOnCircle(i,l,u,p=.5*(o+r)),h=Math.atan2(n.y-c.y,n.x-c.x),d=n.distanceToBorder(t,h)-Math.sqrt(Math.pow(c.x-n.x,2)+Math.pow(c.y-n.y,2)),!(Math.abs(d)<.05));)d>0?s>0?o=p:r=p:s>0?r=p:o=p,a++;return c.t=p,c}},{key:"getLineWidth",value:function(n,t){return!0===n?Math.max(this.selectionWidth,.3/this.body.view.scale):!0===t?Math.max(this.hoverWidth,.3/this.body.view.scale):Math.max(this.options.width,.3/this.body.view.scale)}},{key:"getColor",value:function(n,t,e,i){if(!1!==t.inheritsColor){if("both"===t.inheritsColor&&this.from.id!==this.to.id){var l=n.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),o=void 0,r=void 0;return o=this.from.options.color.highlight.border,r=this.to.options.color.highlight.border,!1===this.from.selected&&!1===this.to.selected?(o=s.overrideOpacity(this.from.options.color.border,t.opacity),r=s.overrideOpacity(this.to.options.color.border,t.opacity)):!0===this.from.selected&&!1===this.to.selected?r=this.to.options.color.border:!1===this.from.selected&&!0===this.to.selected&&(o=this.from.options.color.border),l.addColorStop(0,o),l.addColorStop(1,r),l}return s.overrideOpacity("to"===t.inheritsColor?this.to.options.color.border:this.from.options.color.border,t.opacity)}return s.overrideOpacity(t.color,t.opacity)}},{key:"_circle",value:function(n,t,e,i,l){this.enableShadow(n,t),n.beginPath(),n.arc(e,i,l,0,2*Math.PI,!1),n.stroke(),this.disableShadow(n,t)}},{key:"getDistanceToEdge",value:function(n,t,e,l,o,r,s,a){var u=0;if(this.from!=this.to)u=this._getDistanceToEdge(n,t,e,l,o,r,s);else{var c=this._getCircleData(void 0),h=(0,i.default)(c,3),d=h[2],p=h[0]-o,f=h[1]-r;u=Math.abs(Math.sqrt(p*p+f*f)-d)}return u}},{key:"_getDistanceToLine",value:function(n,t,e,i,l,o){var r=e-n,s=i-t,a=((l-n)*r+(o-t)*s)/(r*r+s*s);a>1?a=1:a<0&&(a=0);var u=n+a*r-l,c=t+a*s-o;return Math.sqrt(u*u+c*c)}},{key:"getArrowData",value:function(n,t,e,l,o,r){var s=void 0,a=void 0,u=void 0,c=void 0,h=void 0,d=void 0,p=void 0,f=r.width;if("from"===t?(u=this.from,c=this.to,h=.1,d=r.fromArrowScale,p=r.fromArrowType):"to"===t?(u=this.to,c=this.from,h=-.1,d=r.toArrowScale,p=r.toArrowType):(u=this.to,c=this.from,d=r.middleArrowScale,p=r.middleArrowType),u!=c)if("middle"!==t)if(!0===this.options.smooth.enabled){a=this.findBorderPosition(u,n,{via:e});var _=this.getPoint(Math.max(0,Math.min(1,a.t+h)),e);s=Math.atan2(a.y-_.y,a.x-_.x)}else s=Math.atan2(u.y-c.y,u.x-c.x),a=this.findBorderPosition(u,n);else s=Math.atan2(u.y-c.y,u.x-c.x),a=this.getPoint(.5,e);else{var m=this._getCircleData(n),g=(0,i.default)(m,3),v=g[0],y=g[1],b=g[2];"from"===t?s=-2*(a=this.findBorderPosition(this.from,n,{x:v,y:y,low:.25,high:.6,direction:-1})).t*Math.PI+1.5*Math.PI+.1*Math.PI:"to"===t?s=-2*(a=this.findBorderPosition(this.from,n,{x:v,y:y,low:.6,high:1,direction:1})).t*Math.PI+1.5*Math.PI-1.1*Math.PI:(a=this._pointOnCircle(v,y,b,.175),s=3.9269908169872414)}"middle"===t&&d<0&&(f*=-1);var w=15*d+3*f;return{point:a,core:{x:a.x-.9*w*Math.cos(s),y:a.y-.9*w*Math.sin(s)},angle:s,length:w,type:p}}},{key:"drawArrowHead",value:function(n,t,e,i,l){n.strokeStyle=this.getColor(n,t,e,i),n.fillStyle=n.strokeStyle,n.lineWidth=t.width,a.draw(n,l),this.enableShadow(n,t),n.fill(),this.disableShadow(n,t)}},{key:"enableShadow",value:function(n,t){!0===t.shadow&&(n.shadowColor=t.shadowColor,n.shadowBlur=t.shadowSize,n.shadowOffsetX=t.shadowX,n.shadowOffsetY=t.shadowY)}},{key:"disableShadow",value:function(n,t){!0===t.shadow&&(n.shadowColor="rgba(0,0,0,0)",n.shadowBlur=0,n.shadowOffsetX=0,n.shadowOffsetY=0)}}]),n}();t.default=u},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=a(e(3)),l=a(e(4)),o=a(e(5)),r=a(e(0)),s=a(e(1));function a(n){return n&&n.__esModule?n:{default:n}}var u=function(){function n(){(0,r.default)(this,n)}return(0,s.default)(n,null,[{key:"transform",value:function(n,t){n instanceof Array||(n=[n]);for(var e=t.point.x,i=t.point.y,l=t.angle,o=t.length,r=0;r0){var n=void 0,t=this.body.nodes,e=this.physicsBody.physicsNodeIndices,i=e.length,l=this._formBarnesHutTree(t,e);this.barnesHutTree=l;for(var o=0;o0&&this._getForceContributions(l.root,n)}}},{key:"_getForceContributions",value:function(n,t){this._getForceContribution(n.children.NW,t),this._getForceContribution(n.children.NE,t),this._getForceContribution(n.children.SW,t),this._getForceContribution(n.children.SE,t)}},{key:"_getForceContribution",value:function(n,t){var e,i,l;n.childrenCount>0&&(e=n.centerOfMass.x-t.x,i=n.centerOfMass.y-t.y,(l=Math.sqrt(e*e+i*i))*n.calcSize>this.thetaInversed?this._calculateForces(l,e,i,t,n):4===n.childrenCount?this._getForceContributions(n,t):n.children.data.id!=t.id&&this._calculateForces(l,e,i,t,n))}},{key:"_calculateForces",value:function(n,t,e,i,l){0===n&&(t=n=.1),this.overlapAvoidanceFactor<1&&i.shape.radius&&(n=Math.max(.1+this.overlapAvoidanceFactor*i.shape.radius,n-i.shape.radius));var o=this.options.gravitationalConstant*l.mass*i.options.mass/Math.pow(n,3),r=e*o;this.physicsBody.forces[i.id].x+=t*o,this.physicsBody.forces[i.id].y+=r}},{key:"_formBarnesHutTree",value:function(n,t){for(var e=void 0,i=t.length,l=n[t[0]].x,o=n[t[0]].y,r=n[t[0]].x,s=n[t[0]].y,a=1;a0&&(cr&&(r=c),hs&&(s=h))}var d=Math.abs(r-l)-Math.abs(s-o);d>0?(o-=.5*d,s+=.5*d):(l+=.5*d,r-=.5*d);var p=Math.max(1e-5,Math.abs(r-l)),f=.5*p,_=.5*(l+r),m=.5*(o+s),g={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:_-f,maxX:_+f,minY:m-f,maxY:m+f},size:p,calcSize:1/p,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(g.root);for(var v=0;v0&&this._placeInTree(g.root,e);return g}},{key:"_updateBranchMass",value:function(n,t){var e=n.centerOfMass,i=n.mass+t.options.mass,l=1/i;e.x=e.x*n.mass+t.x*t.options.mass,e.x*=l,e.y=e.y*n.mass+t.y*t.options.mass,e.y*=l,n.mass=i;var o=Math.max(Math.max(t.height,t.radius),t.width);n.maxWidth=n.maxWidtht.x?i.maxY>t.y?"NW":"SW":i.maxY>t.y?"NE":"SE")}},{key:"_placeInRegion",value:function(n,t,e){var i=n.children[e];switch(i.childrenCount){case 0:i.children.data=t,i.childrenCount=1,this._updateBranchMass(i,t);break;case 1:i.children.data.x===t.x&&i.children.data.y===t.y?(t.x+=this.seededRandom(),t.y+=this.seededRandom()):(this._splitBranch(i),this._placeInTree(i,t));break;case 4:this._placeInTree(i,t)}}},{key:"_splitBranch",value:function(n){var t=null;1===n.childrenCount&&(t=n.children.data,n.mass=0,n.centerOfMass.x=0,n.centerOfMass.y=0),n.childrenCount=4,n.children.data=null,this._insertRegion(n,"NW"),this._insertRegion(n,"NE"),this._insertRegion(n,"SW"),this._insertRegion(n,"SE"),null!=t&&this._placeInTree(n,t)}},{key:"_insertRegion",value:function(n,t){var e=void 0,i=void 0,l=void 0,o=void 0,r=.5*n.size;switch(t){case"NW":e=n.range.minX,i=n.range.minX+r,l=n.range.minY,o=n.range.minY+r;break;case"NE":e=n.range.minX+r,i=n.range.maxX,l=n.range.minY,o=n.range.minY+r;break;case"SW":e=n.range.minX,i=n.range.minX+r,l=n.range.minY+r,o=n.range.maxY;break;case"SE":e=n.range.minX+r,i=n.range.maxX,l=n.range.minY+r,o=n.range.maxY}n.children[t]={centerOfMass:{x:0,y:0},mass:0,range:{minX:e,maxX:i,minY:l,maxY:o},size:.5*n.size,calcSize:2*n.calcSize,children:{data:null},maxWidth:0,level:n.level+1,childrenCount:0}}},{key:"_debug",value:function(n,t){void 0!==this.barnesHutTree&&(n.lineWidth=1,this._drawBranch(this.barnesHutTree.root,n,t))}},{key:"_drawBranch",value:function(n,t,e){void 0===e&&(e="#FF0000"),4===n.childrenCount&&(this._drawBranch(n.children.NW,t),this._drawBranch(n.children.NE,t),this._drawBranch(n.children.SE,t),this._drawBranch(n.children.SW,t)),t.strokeStyle=e,t.beginPath(),t.moveTo(n.range.minX,n.range.minY),t.lineTo(n.range.maxX,n.range.minY),t.stroke(),t.beginPath(),t.moveTo(n.range.maxX,n.range.minY),t.lineTo(n.range.maxX,n.range.maxY),t.stroke(),t.beginPath(),t.moveTo(n.range.maxX,n.range.maxY),t.lineTo(n.range.minX,n.range.maxY),t.stroke(),t.beginPath(),t.moveTo(n.range.minX,n.range.maxY),t.lineTo(n.range.minX,n.range.minY),t.stroke()}}]),n}();t.default=r},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=o(e(0)),l=o(e(1));function o(n){return n&&n.__esModule?n:{default:n}}var r=function(){function n(t,e,l){(0,i.default)(this,n),this.body=t,this.physicsBody=e,this.setOptions(l)}return(0,l.default)(n,[{key:"setOptions",value:function(n){this.options=n}},{key:"solve",value:function(){for(var n=void 0,t=void 0,e=void 0,i=void 0,l=this.body.nodes,o=this.physicsBody.physicsNodeIndices,r=this.physicsBody.forces,s=0;s=n.length?(this._t=void 0,l(1)):l(0,"keys"==t?e:"values"==t?n[e]:[e,n[e]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(n,t){n.exports=function(){}},function(n,t){n.exports=function(n,t){return{value:t,done:!!n}}},function(n,t){n.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},function(n,t,e){var i=e(54),l=e(39),o=e(59),r={};e(26)(r,e(13)("iterator"),function(){return this}),n.exports=function(n,t,e){n.prototype=i(r,{next:l(1,e)}),o(n,t+" Iterator")}},function(n,t,e){var i=e(20),l=e(27),o=e(33);n.exports=e(21)?Object.defineProperties:function(n,t){l(n);for(var e,r=o(t),s=r.length,a=0;s>a;)i.f(n,e=r[a++],t[e]);return n}},function(n,t,e){var i=e(25),l=e(132),o=e(133);n.exports=function(n){return function(t,e,r){var s,a=i(t),u=l(a.length),c=o(r,u);if(n&&e!=e){for(;u>c;)if((s=a[c++])!=s)return!0}else for(;u>c;c++)if((n||c in a)&&a[c]===e)return n||c||0;return!n&&-1}}},function(n,t,e){var i=e(55),l=Math.min;n.exports=function(n){return n>0?l(i(n),9007199254740991):0}},function(n,t,e){var i=e(55),l=Math.max,o=Math.min;n.exports=function(n,t){return(n=i(n))<0?l(n+t,0):o(n,t)}},function(n,t,e){var i=e(18).document;n.exports=i&&i.documentElement},function(n,t,e){var i=e(55),l=e(51);n.exports=function(n){return function(t,e){var o,r,s=String(l(t)),a=i(e),u=s.length;return a<0||a>=u?n?"":void 0:(o=s.charCodeAt(a))<55296||o>56319||a+1===u||(r=s.charCodeAt(a+1))<56320||r>57343?n?s.charAt(a):o:n?s.slice(a,a+2):r-56320+(o-55296<<10)+65536}}},function(n,t,e){var i=e(27),l=e(137);n.exports=e(7).getIterator=function(n){var t=l(n);if("function"!=typeof t)throw TypeError(n+" is not iterable!");return i(t.call(n))}},function(n,t,e){var i=e(86),l=e(13)("iterator"),o=e(31);n.exports=e(7).getIteratorMethod=function(n){if(void 0!=n)return n[l]||n["@@iterator"]||o[i(n)]}},function(n,t,e){e(139);var i=e(7).Object;n.exports=function(n,t){return i.create(n,t)}},function(n,t,e){var i=e(17);i(i.S,"Object",{create:e(54)})},function(n,t,e){e(141),n.exports=e(7).Object.keys},function(n,t,e){var i=e(41),l=e(33);e(87)("keys",function(){return function(n){return l(i(n))}})},function(n,t,e){n.exports={default:e(143),__esModule:!0}},function(n,t,e){e(60),e(49),n.exports=e(61).f("iterator")},function(n,t,e){n.exports={default:e(145),__esModule:!0}},function(n,t,e){e(146),e(151),e(152),e(153),n.exports=e(7).Symbol},function(n,t,e){var i=e(18),l=e(22),o=e(21),r=e(17),s=e(83),a=e(147).KEY,u=e(28),c=e(57),h=e(59),d=e(40),p=e(13),f=e(61),_=e(62),m=e(148),g=e(149),v=e(27),y=e(25),b=e(53),w=e(39),C=e(54),x=e(150),S=e(89),O=e(20),M=e(33),k=S.f,T=O.f,z=x.f,D=i.Symbol,P=i.JSON,I=P&&P.stringify,L=p("_hidden"),E=p("toPrimitive"),A={}.propertyIsEnumerable,F=c("symbol-registry"),N=c("symbols"),j=c("op-symbols"),Y=Object.prototype,H="function"==typeof D,R=i.QObject,V=!R||!R.prototype||!R.prototype.findChild,B=o&&u(function(){return 7!=C(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(n,t,e){var i=k(Y,t);i&&delete Y[t],T(n,t,e),i&&n!==Y&&T(Y,t,i)}:T,W=function(n){var t=N[n]=C(D.prototype);return t._k=n,t},U=H&&"symbol"==typeof D.iterator?function(n){return"symbol"==typeof n}:function(n){return n instanceof D},q=function(n,t,e){return n===Y&&q(j,t,e),v(n),t=b(t,!0),v(e),l(N,t)?(e.enumerable?(l(n,L)&&n[L][t]&&(n[L][t]=!1),e=C(e,{enumerable:w(0,!1)})):(l(n,L)||T(n,L,w(1,{})),n[L][t]=!0),B(n,t,e)):T(n,t,e)},G=function(n,t){v(n);for(var e,i=m(t=y(t)),l=0,o=i.length;o>l;)q(n,e=i[l++],t[e]);return n},$=function(n){var t=A.call(this,n=b(n,!0));return!(this===Y&&l(N,n)&&!l(j,n))&&(!(t||!l(this,n)||!l(N,n)||l(this,L)&&this[L][n])||t)},X=function(n,t){if(n=y(n),t=b(t,!0),n!==Y||!l(N,t)||l(j,t)){var e=k(n,t);return!e||!l(N,t)||l(n,L)&&n[L][t]||(e.enumerable=!0),e}},J=function(n){for(var t,e=z(y(n)),i=[],o=0;e.length>o;)l(N,t=e[o++])||t==L||t==a||i.push(t);return i},K=function(n){for(var t,e=n===Y,i=z(e?j:y(n)),o=[],r=0;i.length>r;)!l(N,t=i[r++])||e&&!l(Y,t)||o.push(N[t]);return o};H||(s((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var n=d(arguments.length>0?arguments[0]:void 0),t=function(e){this===Y&&t.call(j,e),l(this,L)&&l(this[L],n)&&(this[L][n]=!1),B(this,n,w(1,e))};return o&&V&&B(Y,n,{configurable:!0,set:t}),W(n)}).prototype,"toString",function(){return this._k}),S.f=X,O.f=q,e(88).f=x.f=J,e(42).f=$,e(63).f=K,o&&!e(52)&&s(Y,"propertyIsEnumerable",$,!0),f.f=function(n){return W(p(n))}),r(r.G+r.W+r.F*!H,{Symbol:D});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Q=0;Z.length>Q;)p(Z[Q++]);for(var nn=M(p.store),tn=0;nn.length>tn;)_(nn[tn++]);r(r.S+r.F*!H,"Symbol",{for:function(n){return l(F,n+="")?F[n]:F[n]=D(n)},keyFor:function(n){if(!U(n))throw TypeError(n+" is not a symbol!");for(var t in F)if(F[t]===n)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),r(r.S+r.F*!H,"Object",{create:function(n,t){return void 0===t?C(n):G(C(n),t)},defineProperty:q,defineProperties:G,getOwnPropertyDescriptor:X,getOwnPropertyNames:J,getOwnPropertySymbols:K}),P&&r(r.S+r.F*(!H||u(function(){var n=D();return"[null]"!=I([n])||"{}"!=I({a:n})||"{}"!=I(Object(n))})),"JSON",{stringify:function(n){if(void 0!==n&&!U(n)){for(var t,e,i=[n],l=1;arguments.length>l;)i.push(arguments[l++]);return"function"==typeof(t=i[1])&&(e=t),!e&&g(t)||(t=function(n,t){if(e&&(t=e.call(this,n,t)),!U(t))return t}),i[1]=t,I.apply(P,i)}}}),D.prototype[E]||e(26)(D.prototype,E,D.prototype.valueOf),h(D,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},function(n,t,e){var i=e(40)("meta"),l=e(32),o=e(22),r=e(20).f,s=0,a=Object.isExtensible||function(){return!0},u=!e(28)(function(){return a(Object.preventExtensions({}))}),c=function(n){r(n,i,{value:{i:"O"+ ++s,w:{}}})},h=n.exports={KEY:i,NEED:!1,fastKey:function(n,t){if(!l(n))return"symbol"==typeof n?n:("string"==typeof n?"S":"P")+n;if(!o(n,i)){if(!a(n))return"F";if(!t)return"E";c(n)}return n[i].i},getWeak:function(n,t){if(!o(n,i)){if(!a(n))return!0;if(!t)return!1;c(n)}return n[i].w},onFreeze:function(n){return u&&h.NEED&&a(n)&&!o(n,i)&&c(n),n}}},function(n,t,e){var i=e(33),l=e(63),o=e(42);n.exports=function(n){var t=i(n),e=l.f;if(e)for(var r,s=e(n),a=o.f,u=0;s.length>u;)a.call(n,r=s[u++])&&t.push(r);return t}},function(n,t,e){var i=e(50);n.exports=Array.isArray||function(n){return"Array"==i(n)}},function(n,t,e){var i=e(25),l=e(88).f,o={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(n){return r&&"[object Window]"==o.call(n)?function(n){try{return l(n)}catch(n){return r.slice()}}(n):l(i(n))}},function(n,t){},function(n,t,e){e(62)("asyncIterator")},function(n,t,e){e(62)("observable")},function(n,t,e){(function(n){n.exports=function(){var t,e;function i(){return t.apply(null,arguments)}function l(n){return n instanceof Array||"[object Array]"===Object.prototype.toString.call(n)}function o(n){return null!=n&&"[object Object]"===Object.prototype.toString.call(n)}function r(n){return void 0===n}function s(n){return"number"==typeof n||"[object Number]"===Object.prototype.toString.call(n)}function a(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function u(n,t){var e,i=[];for(e=0;e>>0,i=0;i0)for(e=0;e=0?e?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var Y=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},V={};function B(n,t,e,i){var l=i;"string"==typeof i&&(l=function(){return this[i]()}),n&&(V[n]=l),t&&(V[t[0]]=function(){return j(l.apply(this,arguments),t[1],t[2])}),e&&(V[e]=function(){return this.localeData().ordinal(l.apply(this,arguments),n)})}function W(n,t){return n.isValid()?(t=U(t,n.localeData()),R[t]=R[t]||function(n){var t,e,i,l=n.match(Y);for(t=0,e=l.length;t=0&&H.test(n);)n=n.replace(H,i),H.lastIndex=0,e-=1;return n}var q=/\d/,G=/\d\d/,$=/\d{3}/,X=/\d{4}/,J=/[+-]?\d{6}/,K=/\d\d?/,Z=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,nn=/\d{1,3}/,tn=/\d{1,4}/,en=/[+-]?\d{1,6}/,ln=/\d+/,on=/[+-]?\d+/,rn=/Z|[+-]\d\d:?\d\d/gi,sn=/Z|[+-]\d\d(?::?\d\d)?/gi,an=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,un={};function cn(n,t,e){un[n]=z(t)?t:function(n,i){return n&&e?e:t}}function hn(n,t){return c(un,n)?un[n](t._strict,t._locale):new RegExp(dn(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,e,i,l){return t||e||i||l})))}function dn(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pn={};function fn(n,t){var e,i=t;for("string"==typeof n&&(n=[n]),s(t)&&(i=function(n,e){e[t]=C(n)}),e=0;e68?1900:2e3)};var Tn,zn=Dn("FullYear",!0);function Dn(n,t){return function(e){return null!=e?(In(this,n,e),i.updateOffset(this,t),this):Pn(this,n)}}function Pn(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function In(n,t,e){n.isValid()&&!isNaN(e)&&("FullYear"===t&&kn(n.year())?n._d["set"+(n._isUTC?"UTC":"")+t](e,n.month(),Ln(e,n.month())):n._d["set"+(n._isUTC?"UTC":"")+t](e))}function Ln(n,t){if(isNaN(n)||isNaN(t))return NaN;var e=(t%12+12)%12;return n+=(t-e)/12,1===e?kn(n)?29:28:31-e%7%2}Tn=Array.prototype.indexOf?Array.prototype.indexOf:function(n){var t;for(t=0;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n),t}function Bn(n,t,e){var i=7+t-e;return-(7+Vn(n,0,i).getUTCDay()-t)%7+i-1}function Wn(n,t,e,i,l){var o,r,s=1+7*(t-1)+(7+e-i)%7+Bn(n,i,l);return s<=0?r=Mn(o=n-1)+s:s>Mn(n)?(o=n+1,r=s-Mn(n)):(o=n,r=s),{year:o,dayOfYear:r}}function Un(n,t,e){var i,l,o=Bn(n.year(),t,e),r=Math.floor((n.dayOfYear()-o-1)/7)+1;return r<1?i=r+qn(l=n.year()-1,t,e):r>qn(n.year(),t,e)?(i=r-qn(n.year(),t,e),l=n.year()+1):(l=n.year(),i=r),{week:i,year:l}}function qn(n,t,e){var i=Bn(n,t,e),l=Bn(n+1,t,e);return(Mn(n)-i+l)/7}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),N("week",5),N("isoWeek",5),cn("w",K),cn("ww",K,G),cn("W",K),cn("WW",K,G),_n(["w","ww","W","WW"],function(n,t,e,i){t[i.substr(0,1)]=C(n)}),B("d",0,"do","day"),B("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)}),B("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)}),B("dddd",0,0,function(n){return this.localeData().weekdays(this,n)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),cn("d",K),cn("e",K),cn("E",K),cn("dd",function(n,t){return t.weekdaysMinRegex(n)}),cn("ddd",function(n,t){return t.weekdaysShortRegex(n)}),cn("dddd",function(n,t){return t.weekdaysRegex(n)}),_n(["dd","ddd","dddd"],function(n,t,e,i){var l=e._locale.weekdaysParse(n,i,e._strict);null!=l?t.d=l:p(e).invalidWeekday=n}),_n(["d","e","E"],function(n,t,e,i){t[i]=C(n)});var Gn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$n="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Jn=an,Kn=an,Zn=an;function Qn(){function n(n,t){return t.length-n.length}var t,e,i,l,o,r=[],s=[],a=[],u=[];for(t=0;t<7;t++)e=d([2e3,1]).day(t),i=this.weekdaysMin(e,""),l=this.weekdaysShort(e,""),o=this.weekdays(e,""),r.push(i),s.push(l),a.push(o),u.push(i),u.push(l),u.push(o);for(r.sort(n),s.sort(n),a.sort(n),u.sort(n),t=0;t<7;t++)s[t]=dn(s[t]),a[t]=dn(a[t]),u[t]=dn(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function nt(){return this.hours()%12||12}function tt(n,t){B(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(n,t){return t._meridiemParse}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,nt),B("k",["kk",2],0,function(){return this.hours()||24}),B("hmm",0,0,function(){return""+nt.apply(this)+j(this.minutes(),2)}),B("hmmss",0,0,function(){return""+nt.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)}),tt("a",!0),tt("A",!1),L("hour","h"),N("hour",13),cn("a",et),cn("A",et),cn("H",K),cn("h",K),cn("k",K),cn("HH",K,G),cn("hh",K,G),cn("kk",K,G),cn("hmm",Z),cn("hmmss",Q),cn("Hmm",Z),cn("Hmmss",Q),fn(["H","HH"],bn),fn(["k","kk"],function(n,t,e){var i=C(n);t[bn]=24===i?0:i}),fn(["a","A"],function(n,t,e){e._isPm=e._locale.isPM(n),e._meridiem=n}),fn(["h","hh"],function(n,t,e){t[bn]=C(n),p(e).bigHour=!0}),fn("hmm",function(n,t,e){var i=n.length-2;t[bn]=C(n.substr(0,i)),t[wn]=C(n.substr(i)),p(e).bigHour=!0}),fn("hmmss",function(n,t,e){var i=n.length-4,l=n.length-2;t[bn]=C(n.substr(0,i)),t[wn]=C(n.substr(i,2)),t[Cn]=C(n.substr(l)),p(e).bigHour=!0}),fn("Hmm",function(n,t,e){var i=n.length-2;t[bn]=C(n.substr(0,i)),t[wn]=C(n.substr(i))}),fn("Hmmss",function(n,t,e){var i=n.length-4,l=n.length-2;t[bn]=C(n.substr(0,i)),t[wn]=C(n.substr(i,2)),t[Cn]=C(n.substr(l))});var it,lt=Dn("Hours",!0),ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:An,monthsShort:Fn,week:{dow:0,doy:6},weekdays:Gn,weekdaysMin:Xn,weekdaysShort:$n,meridiemParse:/[ap]\.?m?\.?/i},rt={},st={};function at(n){return n?n.toLowerCase().replace("_","-"):n}function ut(t){var e=null;if(!rt[t]&&"undefined"!=typeof n&&n&&n.exports)try{e=it._abbr,function(){var n=new Error('Cannot find module "./locale"');throw n.code="MODULE_NOT_FOUND",n}(),ct(e)}catch(n){}return rt[t]}function ct(n,t){var e;return n&&(e=r(t)?dt(n):ht(n,t))&&(it=e),it._abbr}function ht(n,t){if(null!==t){var e=ot;if(t.abbr=n,null!=rt[n])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),e=rt[n]._config;else if(null!=t.parentLocale){if(null==rt[t.parentLocale])return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:n,config:t}),null;e=rt[t.parentLocale]._config}return rt[n]=new P(D(e,t)),st[n]&&st[n].forEach(function(n){ht(n.name,n.config)}),ct(n),rt[n]}return delete rt[n],null}function dt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return it;if(!l(n)){if(t=ut(n))return t;n=[n]}return function(n){for(var t,e,i,l,o=0;o0;){if(i=ut(l.slice(0,t).join("-")))return i;if(e&&e.length>=t&&x(l,e,!0)>=t-1)break;t--}o++}return null}(n)}function pt(n){var t,e=n._a;return e&&-2===p(n).overflow&&(t=e[vn]<0||e[vn]>11?vn:e[yn]<1||e[yn]>Ln(e[gn],e[vn])?yn:e[bn]<0||e[bn]>24||24===e[bn]&&(0!==e[wn]||0!==e[Cn]||0!==e[xn])?bn:e[wn]<0||e[wn]>59?wn:e[Cn]<0||e[Cn]>59?Cn:e[xn]<0||e[xn]>999?xn:-1,p(n)._overflowDayOfYear&&(tyn)&&(t=yn),p(n)._overflowWeeks&&-1===t&&(t=Sn),p(n)._overflowWeekday&&-1===t&&(t=On),p(n).overflow=t),n}function ft(n,t,e){return null!=n?n:null!=t?t:e}function _t(n){var t,e,l,o,r=[];if(!n._d){for(l=function(n){var t=new Date(i.now());return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(n),n._w&&null==n._a[yn]&&null==n._a[vn]&&function(n){var t,e,i,l,o,r,s,a;if(null!=(t=n._w).GG||null!=t.W||null!=t.E)o=1,r=4,e=ft(t.GG,n._a[gn],Un(zt(),1,4).year),i=ft(t.W,1),((l=ft(t.E,1))<1||l>7)&&(a=!0);else{o=n._locale._week.dow,r=n._locale._week.doy;var u=Un(zt(),o,r);e=ft(t.gg,n._a[gn],u.year),i=ft(t.w,u.week),null!=t.d?((l=t.d)<0||l>6)&&(a=!0):null!=t.e?(l=t.e+o,(t.e<0||t.e>6)&&(a=!0)):l=o}i<1||i>qn(e,o,r)?p(n)._overflowWeeks=!0:null!=a?p(n)._overflowWeekday=!0:(s=Wn(e,i,l,o,r),n._a[gn]=s.year,n._dayOfYear=s.dayOfYear)}(n),null!=n._dayOfYear&&(o=ft(n._a[gn],l[gn]),(n._dayOfYear>Mn(o)||0===n._dayOfYear)&&(p(n)._overflowDayOfYear=!0),e=Vn(o,0,n._dayOfYear),n._a[vn]=e.getUTCMonth(),n._a[yn]=e.getUTCDate()),t=0;t<3&&null==n._a[t];++t)n._a[t]=r[t]=l[t];for(;t<7;t++)n._a[t]=r[t]=null==n._a[t]?2===t?1:0:n._a[t];24===n._a[bn]&&0===n._a[wn]&&0===n._a[Cn]&&0===n._a[xn]&&(n._nextDay=!0,n._a[bn]=0),n._d=(n._useUTC?Vn:function(n,t,e,i,l,o,r){var s=new Date(n,t,e,i,l,o,r);return n<100&&n>=0&&isFinite(s.getFullYear())&&s.setFullYear(n),s}).apply(null,r),null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[bn]=24),n._w&&"undefined"!=typeof n._w.d&&n._w.d!==n._d.getDay()&&(p(n).weekdayMismatch=!0)}}var mt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((\-?\d+)/i;function Ct(n){var t,e,i,l,o,r,s=n._i,a=mt.exec(s)||gt.exec(s);if(a){for(p(n).iso=!0,t=0,e=yt.length;t0&&p(n).unusedInput.push(r),s=s.slice(s.indexOf(e)+e.length),u+=e.length),V[o]?(e?p(n).empty=!1:p(n).unusedTokens.push(o),mn(o,e,n)):n._strict&&!e&&p(n).unusedTokens.push(o);p(n).charsLeftOver=a-u,s.length>0&&p(n).unusedInput.push(s),n._a[bn]<=12&&!0===p(n).bigHour&&n._a[bn]>0&&(p(n).bigHour=void 0),p(n).parsedDateParts=n._a.slice(0),p(n).meridiem=n._meridiem,n._a[bn]=(c=n._locale,h=n._a[bn],null==(d=n._meridiem)?h:null!=c.meridiemHour?c.meridiemHour(h,d):null!=c.isPM?((f=c.isPM(d))&&h<12&&(h+=12),f||12!==h||(h=0),h):h),_t(n),pt(n)}else Ot(n);else Ct(n);var c,h,d,f}function kt(n){var t=n._i,e=n._f;return n._locale=n._locale||dt(n._l),null===t||void 0===e&&""===t?_({nullInput:!0}):("string"==typeof t&&(n._i=t=n._locale.preparse(t)),b(t)?new y(pt(t)):(a(t)?n._d=t:l(e)?function(n){var t,e,i,l,o;if(0===n._f.length)return p(n).invalidFormat=!0,void(n._d=new Date(NaN));for(l=0;lthis?this:n:_()});function It(n,t){var e,i;if(1===t.length&&l(t[0])&&(t=t[0]),!t.length)return zt();for(e=t[0],i=1;i(o=qn(n,i,l))&&(t=o),(function(n,t,e,i,l){var o=Wn(n,t,e,i,l),r=Vn(o.year,0,o.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}).call(this,n,t,e,i,l))}B(0,["gg",2],0,function(){return this.weekYear()%100}),B(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ee("gggg","weekYear"),ee("ggggg","weekYear"),ee("GGGG","isoWeekYear"),ee("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),cn("G",on),cn("g",on),cn("GG",K,G),cn("gg",K,G),cn("GGGG",tn,X),cn("gggg",tn,X),cn("GGGGG",en,J),cn("ggggg",en,J),_n(["gggg","ggggg","GGGG","GGGGG"],function(n,t,e,i){t[i.substr(0,2)]=C(n)}),_n(["gg","GG"],function(n,t,e,l){t[l]=i.parseTwoDigitYear(n)}),B("Q",0,"Qo","quarter"),L("quarter","Q"),N("quarter",7),cn("Q",q),fn("Q",function(n,t){t[vn]=3*(C(n)-1)}),B("D",["DD",2],"Do","date"),L("date","D"),N("date",9),cn("D",K),cn("DD",K,G),cn("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),fn(["D","DD"],yn),fn("Do",function(n,t){t[yn]=C(n.match(K)[0])});var le=Dn("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),N("dayOfYear",4),cn("DDD",nn),cn("DDDD",$),fn(["DDD","DDDD"],function(n,t,e){e._dayOfYear=C(n)}),B("m",["mm",2],0,"minute"),L("minute","m"),N("minute",14),cn("m",K),cn("mm",K,G),fn(["m","mm"],wn);var oe=Dn("Minutes",!1);B("s",["ss",2],0,"second"),L("second","s"),N("second",15),cn("s",K),cn("ss",K,G),fn(["s","ss"],Cn);var re,se=Dn("Seconds",!1);for(B("S",0,0,function(){return~~(this.millisecond()/100)}),B(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,function(){return 10*this.millisecond()}),B(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),B(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),B(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),B(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),B(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),N("millisecond",16),cn("S",nn,q),cn("SS",nn,G),cn("SSS",nn,$),re="SSSS";re.length<=9;re+="S")cn(re,ln);function ae(n,t){t[xn]=C(1e3*("0."+n))}for(re="S";re.length<=9;re+="S")fn(re,ae);var ue=Dn("Milliseconds",!1);B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var ce=y.prototype;function he(n){return n}ce.add=Jt,ce.calendar=function(n,t){var e=n||zt(),l=Ht(e,this).startOf("day"),o=i.calendarFormat(this,l)||"sameElse",r=t&&(z(t[o])?t[o].call(this,e):t[o]);return this.format(r||this.localeData().calendar(o,this,zt(e)))},ce.clone=function(){return new y(this)},ce.diff=function(n,t,e){var i,l,o;if(!this.isValid())return NaN;if(!(i=Ht(n,this)).isValid())return NaN;switch(l=6e4*(i.utcOffset()-this.utcOffset()),t=E(t)){case"year":o=Zt(this,i)/12;break;case"month":o=Zt(this,i);break;case"quarter":o=Zt(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-l)/864e5;break;case"week":o=(this-i-l)/6048e5;break;default:o=this-i}return e?o:w(o)},ce.endOf=function(n){return void 0===(n=E(n))||"millisecond"===n?this:("date"===n&&(n="day"),this.startOf(n).add(1,"isoWeek"===n?"week":n).subtract(1,"ms"))},ce.format=function(n){n||(n=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=W(this,n);return this.localeData().postformat(t)},ce.from=function(n,t){return this.isValid()&&(b(n)&&n.isValid()||zt(n).isValid())?Ut({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ce.fromNow=function(n){return this.from(zt(),n)},ce.to=function(n,t){return this.isValid()&&(b(n)&&n.isValid()||zt(n).isValid())?Ut({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ce.toNow=function(n){return this.to(zt(),n)},ce.get=function(n){return z(this[n=E(n)])?this[n]():this},ce.invalidAt=function(){return p(this).overflow},ce.isAfter=function(n,t){var e=b(n)?n:zt(n);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=E(r(t)?"millisecond":t))?this.valueOf()>e.valueOf():e.valueOf()9999?W(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):z(Date.prototype.toISOString)?this.toDate().toISOString():W(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},ce.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",t="";this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var e="["+n+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(e+i+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')},ce.toJSON=function(){return this.isValid()?this.toISOString():null},ce.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ce.unix=function(){return Math.floor(this.valueOf()/1e3)},ce.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ce.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ce.year=zn,ce.isLeapYear=function(){return kn(this.year())},ce.weekYear=function(n){return ie.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ce.isoWeekYear=function(n){return ie.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)},ce.quarter=ce.quarters=function(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)},ce.month=jn,ce.daysInMonth=function(){return Ln(this.year(),this.month())},ce.week=ce.weeks=function(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")},ce.isoWeek=ce.isoWeeks=function(n){var t=Un(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")},ce.weeksInYear=function(){var n=this.localeData()._week;return qn(this.year(),n.dow,n.doy)},ce.isoWeeksInYear=function(){return qn(this.year(),1,4)},ce.date=le,ce.day=ce.days=function(n){if(!this.isValid())return null!=n?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(n=function(n,t){return"string"!=typeof n?n:isNaN(n)?"number"==typeof(n=t.weekdaysParse(n))?n:null:parseInt(n,10)}(n,this.localeData()),this.add(n-t,"d")):t},ce.weekday=function(n){if(!this.isValid())return null!=n?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")},ce.isoWeekday=function(n){if(!this.isValid())return null!=n?this:NaN;if(null!=n){var t=function(n,t){return"string"==typeof n?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},ce.dayOfYear=function(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?t:this.add(n-t,"d")},ce.hour=ce.hours=lt,ce.minute=ce.minutes=oe,ce.second=ce.seconds=se,ce.millisecond=ce.milliseconds=ue,ce.utcOffset=function(n,t,e){var l,o=this._offset||0;if(!this.isValid())return null!=n?this:NaN;if(null!=n){if("string"==typeof n){if(null===(n=Yt(sn,n)))return this}else Math.abs(n)<16&&!e&&(n*=60);return!this._isUTC&&t&&(l=Rt(this)),this._offset=n,this._isUTC=!0,null!=l&&this.add(l,"m"),o!==n&&(!t||this._changeInProgress?Xt(this,Ut(n-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Rt(this)},ce.utc=function(n){return this.utcOffset(0,n)},ce.local=function(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(Rt(this),"m")),this},ce.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var n=Yt(rn,this._i);null!=n?this.utcOffset(n):this.utcOffset(0,!0)}return this},ce.hasAlignedHourOffset=function(n){return!!this.isValid()&&(n=n?zt(n).utcOffset():0,(this.utcOffset()-n)%60==0)},ce.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ce.isLocal=function(){return!!this.isValid()&&!this._isUTC},ce.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ce.isUtc=Vt,ce.isUTC=Vt,ce.zoneAbbr=function(){return this._isUTC?"UTC":""},ce.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ce.dates=O("dates accessor is deprecated. Use date instead.",le),ce.months=O("months accessor is deprecated. Use month instead",jn),ce.years=O("years accessor is deprecated. Use year instead",zn),ce.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(n,t){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}),ce.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var n={};if(g(n,this),(n=kt(n))._a){var t=n._isUTC?d(n._a):zt(n._a);this._isDSTShifted=this.isValid()&&x(n._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var de=P.prototype;function pe(n,t,e,i){var l=dt(),o=d().set(i,t);return l[e](o,n)}function fe(n,t,e){if(s(n)&&(t=n,n=void 0),n=n||"",null!=t)return pe(n,t,e,"month");var i,l=[];for(i=0;i<12;i++)l[i]=pe(n,i,e,"month");return l}function _e(n,t,e,i){"boolean"==typeof n?(s(t)&&(e=t,t=void 0),t=t||""):(e=t=n,n=!1,s(t)&&(e=t,t=void 0),t=t||"");var l,o=dt(),r=n?o._week.dow:0;if(null!=e)return pe(t,(e+r)%7,i,"day");var a=[];for(l=0;l<7;l++)a[l]=pe(t,(l+r)%7,i,"day");return a}de.calendar=function(n,t,e){var i=this._calendar[n]||this._calendar.sameElse;return z(i)?i.call(t,e):i},de.longDateFormat=function(n){var t=this._longDateFormat[n],e=this._longDateFormat[n.toUpperCase()];return t||!e?t:(this._longDateFormat[n]=e.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])},de.invalidDate=function(){return this._invalidDate},de.ordinal=function(n){return this._ordinal.replace("%d",n)},de.preparse=he,de.postformat=he,de.relativeTime=function(n,t,e,i){var l=this._relativeTime[e];return z(l)?l(n,t,e,i):l.replace(/%d/i,n)},de.pastFuture=function(n,t){var e=this._relativeTime[n>0?"future":"past"];return z(e)?e(t):e.replace(/%s/i,t)},de.set=function(n){var t,e;for(e in n)z(t=n[e])?this[e]=t:this["_"+e]=t;this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},de.months=function(n,t){return n?l(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||En).test(t)?"format":"standalone"][n.month()]:l(this._months)?this._months:this._months.standalone},de.monthsShort=function(n,t){return n?l(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[En.test(t)?"format":"standalone"][n.month()]:l(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},de.monthsParse=function(n,t,e){var i,l,o;if(this._monthsParseExact)return(function(n,t,e){var i,l,o,r=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=d([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return e?"MMM"===t?-1!==(l=Tn.call(this._shortMonthsParse,r))?l:null:-1!==(l=Tn.call(this._longMonthsParse,r))?l:null:"MMM"===t?-1!==(l=Tn.call(this._shortMonthsParse,r))?l:-1!==(l=Tn.call(this._longMonthsParse,r))?l:null:-1!==(l=Tn.call(this._longMonthsParse,r))?l:-1!==(l=Tn.call(this._shortMonthsParse,r))?l:null}).call(this,n,t,e);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(l=d([2e3,i]),e&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(l,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(l,"").replace(".","")+"$","i")),e||this._monthsParse[i]||(o="^"+this.months(l,"")+"|^"+this.monthsShort(l,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),e&&"MMMM"===t&&this._longMonthsParse[i].test(n))return i;if(e&&"MMM"===t&&this._shortMonthsParse[i].test(n))return i;if(!e&&this._monthsParse[i].test(n))return i}},de.monthsRegex=function(n){return this._monthsParseExact?(c(this,"_monthsRegex")||Rn.call(this),n?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Hn),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)},de.monthsShortRegex=function(n){return this._monthsParseExact?(c(this,"_monthsRegex")||Rn.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Yn),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)},de.week=function(n){return Un(n,this._week.dow,this._week.doy).week},de.firstDayOfYear=function(){return this._week.doy},de.firstDayOfWeek=function(){return this._week.dow},de.weekdays=function(n,t){return n?l(this._weekdays)?this._weekdays[n.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][n.day()]:l(this._weekdays)?this._weekdays:this._weekdays.standalone},de.weekdaysMin=function(n){return n?this._weekdaysMin[n.day()]:this._weekdaysMin},de.weekdaysShort=function(n){return n?this._weekdaysShort[n.day()]:this._weekdaysShort},de.weekdaysParse=function(n,t,e){var i,l,o;if(this._weekdaysParseExact)return(function(n,t,e){var i,l,o,r=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return e?"dddd"===t?-1!==(l=Tn.call(this._weekdaysParse,r))?l:null:"ddd"===t?-1!==(l=Tn.call(this._shortWeekdaysParse,r))?l:null:-1!==(l=Tn.call(this._minWeekdaysParse,r))?l:null:"dddd"===t?-1!==(l=Tn.call(this._weekdaysParse,r))?l:-1!==(l=Tn.call(this._shortWeekdaysParse,r))?l:-1!==(l=Tn.call(this._minWeekdaysParse,r))?l:null:"ddd"===t?-1!==(l=Tn.call(this._shortWeekdaysParse,r))?l:-1!==(l=Tn.call(this._weekdaysParse,r))?l:-1!==(l=Tn.call(this._minWeekdaysParse,r))?l:null:-1!==(l=Tn.call(this._minWeekdaysParse,r))?l:-1!==(l=Tn.call(this._weekdaysParse,r))?l:-1!==(l=Tn.call(this._shortWeekdaysParse,r))?l:null}).call(this,n,t,e);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(l=d([2e3,1]).day(i),e&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(l,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(l,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(l,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(l,"")+"|^"+this.weekdaysShort(l,"")+"|^"+this.weekdaysMin(l,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),e&&"dddd"===t&&this._fullWeekdaysParse[i].test(n))return i;if(e&&"ddd"===t&&this._shortWeekdaysParse[i].test(n))return i;if(e&&"dd"===t&&this._minWeekdaysParse[i].test(n))return i;if(!e&&this._weekdaysParse[i].test(n))return i}},de.weekdaysRegex=function(n){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Qn.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Jn),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)},de.weekdaysShortRegex=function(n){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Qn.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kn),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},de.weekdaysMinRegex=function(n){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Qn.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Zn),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},de.isPM=function(n){return"p"===(n+"").toLowerCase().charAt(0)},de.meridiem=function(n,t,e){return n>11?e?"pm":"PM":e?"am":"AM"},ct("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10;return n+(1===C(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=O("moment.lang is deprecated. Use moment.locale instead.",ct),i.langData=O("moment.langData is deprecated. Use moment.localeData instead.",dt);var me=Math.abs;function ge(n,t,e,i){var l=Ut(t,e);return n._milliseconds+=i*l._milliseconds,n._days+=i*l._days,n._months+=i*l._months,n._bubble()}function ve(n){return n<0?Math.floor(n):Math.ceil(n)}function ye(n){return 4800*n/146097}function be(n){return 146097*n/4800}function we(n){return function(){return this.as(n)}}var Ce=we("ms"),xe=we("s"),Se=we("m"),Oe=we("h"),Me=we("d"),ke=we("w"),Te=we("M"),ze=we("y");function De(n){return function(){return this.isValid()?this._data[n]:NaN}}var Pe=De("milliseconds"),Ie=De("seconds"),Le=De("minutes"),Ee=De("hours"),Ae=De("days"),Fe=De("months"),Ne=De("years"),je=Math.round,Ye={ss:44,s:45,m:45,h:22,d:26,M:11},He=Math.abs;function Re(n){return(n>0)-(n<0)||+n}function Ve(){if(!this.isValid())return this.localeData().invalidDate();var n,t,e=He(this._milliseconds)/1e3,i=He(this._days),l=He(this._months);t=w((n=w(e/60))/60),e%=60,n%=60;var o=w(l/12),r=l%=12,s=i,a=t,u=n,c=e?e.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",p=Re(this._months)!==Re(h)?"-":"",f=Re(this._days)!==Re(h)?"-":"",_=Re(this._milliseconds)!==Re(h)?"-":"";return d+"P"+(o?p+o+"Y":"")+(r?p+r+"M":"")+(s?f+s+"D":"")+(a||u||c?"T":"")+(a?_+a+"H":"")+(u?_+u+"M":"")+(c?_+c+"S":"")}var Be=Et.prototype;return Be.isValid=function(){return this._isValid},Be.abs=function(){var n=this._data;return this._milliseconds=me(this._milliseconds),this._days=me(this._days),this._months=me(this._months),n.milliseconds=me(n.milliseconds),n.seconds=me(n.seconds),n.minutes=me(n.minutes),n.hours=me(n.hours),n.months=me(n.months),n.years=me(n.years),this},Be.add=function(n,t){return ge(this,n,t,1)},Be.subtract=function(n,t){return ge(this,n,t,-1)},Be.as=function(n){if(!this.isValid())return NaN;var t,e,i=this._milliseconds;if("month"===(n=E(n))||"year"===n)return e=this._months+ye(t=this._days+i/864e5),"month"===n?e:e/12;switch(t=this._days+Math.round(be(this._months)),n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+n)}},Be.asMilliseconds=Ce,Be.asSeconds=xe,Be.asMinutes=Se,Be.asHours=Oe,Be.asDays=Me,Be.asWeeks=ke,Be.asMonths=Te,Be.asYears=ze,Be.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*C(this._months/12):NaN},Be._bubble=function(){var n,t,e,i,l,o=this._milliseconds,r=this._days,s=this._months,a=this._data;return o>=0&&r>=0&&s>=0||o<=0&&r<=0&&s<=0||(o+=864e5*ve(be(s)+r),r=0,s=0),a.milliseconds=o%1e3,n=w(o/1e3),a.seconds=n%60,t=w(n/60),a.minutes=t%60,e=w(t/60),a.hours=e%24,s+=l=w(ye(r+=w(e/24))),r-=ve(be(l)),i=w(s/12),s%=12,a.days=r,a.months=s,a.years=i,this},Be.clone=function(){return Ut(this)},Be.get=function(n){return n=E(n),this.isValid()?this[n+"s"]():NaN},Be.milliseconds=Pe,Be.seconds=Ie,Be.minutes=Le,Be.hours=Ee,Be.days=Ae,Be.weeks=function(){return w(this.days()/7)},Be.months=Fe,Be.years=Ne,Be.humanize=function(n){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),e=function(n,t,e){var i=Ut(n).abs(),l=je(i.as("s")),o=je(i.as("m")),r=je(i.as("h")),s=je(i.as("d")),a=je(i.as("M")),u=je(i.as("y")),c=l<=Ye.ss&&["s",l]||l0,c[4]=e,(function(n,t,e,i,l){return l.relativeTime(t||1,!!e,n,i)}).apply(null,c)}(this,!n,t);return n&&(e=t.pastFuture(+this,e)),t.postformat(e)},Be.toISOString=Ve,Be.toString=Ve,Be.toJSON=Ve,Be.locale=Qt,Be.localeData=te,Be.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ve),Be.lang=ne,B("X",0,0,"unix"),B("x",0,0,"valueOf"),cn("x",on),cn("X",/[+-]?\d+(\.\d{1,3})?/),fn("X",function(n,t,e){e._d=new Date(1e3*parseFloat(n,10))}),fn("x",function(n,t,e){e._d=new Date(C(n))}),i.version="2.19.1",t=zt,i.fn=ce,i.min=function(){return It("isBefore",[].slice.call(arguments,0))},i.max=function(){return It("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=d,i.unix=function(n){return zt(1e3*n)},i.months=function(n,t){return fe(n,t,"months")},i.isDate=a,i.locale=ct,i.invalid=_,i.duration=Ut,i.isMoment=b,i.weekdays=function(n,t,e){return _e(n,t,e,"weekdays")},i.parseZone=function(){return zt.apply(null,arguments).parseZone()},i.localeData=dt,i.isDuration=At,i.monthsShort=function(n,t){return fe(n,t,"monthsShort")},i.weekdaysMin=function(n,t,e){return _e(n,t,e,"weekdaysMin")},i.defineLocale=ht,i.updateLocale=function(n,t){if(null!=t){var e,i=ot;null!=rt[n]&&(i=rt[n]._config),(e=new P(t=D(i,t))).parentLocale=rt[n],rt[n]=e,ct(n)}else null!=rt[n]&&(null!=rt[n].parentLocale?rt[n]=rt[n].parentLocale:null!=rt[n]&&delete rt[n]);return rt[n]},i.locales=function(){return M(rt)},i.weekdaysShort=function(n,t,e){return _e(n,t,e,"weekdaysShort")},i.normalizeUnits=E,i.relativeTimeRounding=function(n){return void 0===n?je:"function"==typeof n&&(je=n,!0)},i.relativeTimeThreshold=function(n,t){return void 0!==Ye[n]&&(void 0===t?Ye[n]:(Ye[n]=t,"s"===n&&(Ye.ss=t-1),!0))},i.calendarFormat=function(n,t){var e=n.diff(t,"days",!0);return e<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},i.prototype=ce,i}()}).call(t,e(155)(n))},function(n,t){n.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(n,t){function e(n){throw new Error("Cannot find module '"+n+"'.")}e.keys=function(){return[]},e.resolve=e,n.exports=e,e.id=156},function(n,t,e){(function(t){var e,i="undefined"!=typeof window?window:"undefined"!=typeof t?t:null;if(i&&i.crypto&&crypto.getRandomValues){var l=new Uint8Array(16);e=function(){return crypto.getRandomValues(l),l}}if(!e){var o=new Array(16);e=function(){for(var n,t=0;t<16;t++)0==(3&t)&&(n=4294967296*Math.random()),o[t]=n>>>((3&t)<<3)&255;return o}}for(var r=[],s={},a=0;a<256;a++)r[a]=(a+256).toString(16).substr(1),s[r[a]]=a;function u(n,t){var e=t||0;return r[n[e++]]+r[n[e++]]+r[n[e++]]+r[n[e++]]+"-"+r[n[e++]]+r[n[e++]]+"-"+r[n[e++]]+r[n[e++]]+"-"+r[n[e++]]+r[n[e++]]+"-"+r[n[e++]]+r[n[e++]]+r[n[e++]]+r[n[e++]]+r[n[e++]]+r[n[e++]]}var c=e(),h=[1|c[0],c[1],c[2],c[3],c[4],c[5]],d=16383&(c[6]<<8|c[7]),p=0,f=0;function _(n,t,i){var l=t&&i||0;"string"==typeof n&&(t="binary"==n?new Array(16):null,n=null);var o=(n=n||{}).random||(n.rng||e)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var r=0;r<16;r++)t[l+r]=o[r];return t||u(o)}var m=_;m.v1=function(n,t,e){var i=t&&e||0,l=t||[],o=void 0!==(n=n||{}).clockseq?n.clockseq:d,r=void 0!==n.msecs?n.msecs:(new Date).getTime(),s=void 0!==n.nsecs?n.nsecs:f+1,a=r-p+(s-f)/1e4;if(a<0&&void 0===n.clockseq&&(o=o+1&16383),(a<0||r>p)&&void 0===n.nsecs&&(s=0),s>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=r,f=s,d=o;var c=(1e4*(268435455&(r+=122192928e5))+s)%4294967296;l[i++]=c>>>24&255,l[i++]=c>>>16&255,l[i++]=c>>>8&255,l[i++]=255&c;var _=r/4294967296*1e4&268435455;l[i++]=_>>>8&255,l[i++]=255&_,l[i++]=_>>>24&15|16,l[i++]=_>>>16&255,l[i++]=o>>>8|128,l[i++]=255&o;for(var m=n.node||h,g=0;g<6;g++)l[i+g]=m[g];return t||u(l)},m.v4=_,m.parse=function(n,t,e){var i=t&&e||0,l=0;for(t=t||[],n.toLowerCase().replace(/[0-9a-f]{2}/g,function(n){l<16&&(t[i+l++]=s[n])});l<16;)t[i+l++]=0;return t},m.unparse=u,n.exports=m}).call(t,e(158))},function(n,t){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(n){"object"==typeof window&&(e=window)}n.exports=e},function(n,t,e){t.util=e(2),t.DOMutil=e(14),t.DataSet=e(11),t.DataView=e(12),t.Queue=e(43),t.Graph3d=e(161),t.graph3d={Camera:e(95),Filter:e(96),Point2d:e(91),Point3d:e(34),Slider:e(92),StepNumber:e(93)},t.moment=e(9),t.Hammer=e(10),t.keycharm=e(35)},function(n,t,e){var i=e(7),l=i.JSON||(i.JSON={stringify:JSON.stringify});n.exports=function(n){return l.stringify.apply(l,arguments)}},function(n,t,e){var i,l=(i=e(90))&&i.__esModule?i:{default:i},o=e(44),r=e(2),s=e(34),a=e(91),u=e(92),c=e(93),h=e(94),d=e(15).default,p=e(15).printStyle,f=e(172).allOptions,_=e(173);function m(n,t,e){if(!(this instanceof m))throw new SyntaxError("Constructor must be called with the new operator");this.containerElement=n,this.dataGroup=new _,this.dataPoints=null,this.create(),h.setDefaults(m.DEFAULTS,this),this.colX=void 0,this.colY=void 0,this.colZ=void 0,this.colValue=void 0,this.setOptions(e),this.setData(t)}function g(n){return"clientX"in n?n.clientX:n.targetTouches[0]&&n.targetTouches[0].clientX||0}function v(n){return"clientY"in n?n.clientY:n.targetTouches[0]&&n.targetTouches[0].clientY||0}m.DEFAULTS={width:"400px",height:"400px",filterLabel:"time",legendLabel:"value",xLabel:"x",yLabel:"y",zLabel:"z",xValueLabel:function(n){return n},yValueLabel:function(n){return n},zValueLabel:function(n){return n},showXAxis:!0,showYAxis:!0,showZAxis:!0,showGrid:!0,showPerspective:!0,showShadow:!1,keepAspectRatio:!0,verticalRatio:.5,dotSizeRatio:.02,dotSizeMinFraction:.5,dotSizeMaxFraction:2.5,showAnimationControls:void 0,animationInterval:1e3,animationPreload:!1,animationAutoStart:void 0,axisColor:"#4D4D4D",gridColor:"#D3D3D3",xCenter:"55%",yCenter:"50%",style:(m.STYLE=h.STYLE).DOT,tooltip:!1,tooltipStyle:{content:{padding:"10px",border:"1px solid #4d4d4d",color:"#1a1a1a",background:"rgba(255,255,255,0.7)",borderRadius:"2px",boxShadow:"5px 5px 10px rgba(128,128,128,0.5)"},line:{height:"40px",width:"0",borderLeft:"1px solid #4d4d4d"},dot:{height:"0",width:"0",border:"5px solid #4d4d4d",borderRadius:"5px"}},dataColor:{fill:"#7DC1FF",stroke:"#3267D2",strokeWidth:1},cameraPosition:{horizontal:1,vertical:.5,distance:1.7},showLegend:void 0,backgroundColor:void 0,xBarWidth:void 0,yBarWidth:void 0,valueMin:void 0,valueMax:void 0,xMin:void 0,xMax:void 0,xStep:void 0,yMin:void 0,yMax:void 0,yStep:void 0,zMin:void 0,zMax:void 0,zStep:void 0},o(m.prototype),m.prototype._setScale=function(){this.scale=new s(1/this.xRange.range(),1/this.yRange.range(),1/this.zRange.range()),this.keepAspectRatio&&(this.scale.x0&&(o[i-1].pointNext=o[i]);return o},m.prototype.create=function(){for(;this.containerElement.hasChildNodes();)this.containerElement.removeChild(this.containerElement.firstChild);this.frame=document.createElement("div"),this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas);var n=document.createElement("DIV");n.style.color="red",n.style.fontWeight="bold",n.style.padding="10px",n.innerHTML="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(n),this.frame.filter=document.createElement("div"),this.frame.filter.style.position="absolute",this.frame.filter.style.bottom="0px",this.frame.filter.style.left="0px",this.frame.filter.style.width="100%",this.frame.appendChild(this.frame.filter);var t=this;r.addEventListener(this.frame.canvas,"mousedown",function(n){t._onMouseDown(n)}),r.addEventListener(this.frame.canvas,"touchstart",function(n){t._onTouchStart(n)}),r.addEventListener(this.frame.canvas,"mousewheel",function(n){t._onWheel(n)}),r.addEventListener(this.frame.canvas,"mousemove",function(n){t._onTooltip(n)}),r.addEventListener(this.frame.canvas,"click",function(n){t._onClick(n)}),this.containerElement.appendChild(this.frame)},m.prototype._setSize=function(n,t){this.frame.style.width=n,this.frame.style.height=t,this._resizeCanvas()},m.prototype._resizeCanvas=function(){this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=this.frame.canvas.clientWidth,this.frame.canvas.height=this.frame.canvas.clientHeight,this.frame.filter.style.width=this.frame.canvas.clientWidth-20+"px"},m.prototype.animationStart=function(){if(this.animationAutoStart&&this.dataGroup.dataFilter){if(!this.frame.filter||!this.frame.filter.slider)throw new Error("No animation available");this.frame.filter.slider.play()}},m.prototype.animationStop=function(){this.frame.filter&&this.frame.filter.slider&&this.frame.filter.slider.stop()},m.prototype._resizeCenter=function(){this.currentXCenter="%"===this.xCenter.charAt(this.xCenter.length-1)?parseFloat(this.xCenter)/100*this.frame.canvas.clientWidth:parseFloat(this.xCenter),this.currentYCenter="%"===this.yCenter.charAt(this.yCenter.length-1)?parseFloat(this.yCenter)/100*(this.frame.canvas.clientHeight-this.frame.filter.clientHeight):parseFloat(this.yCenter)},m.prototype.getCameraPosition=function(){var n=this.camera.getArmRotation();return n.distance=this.camera.getArmLength(),n},m.prototype._readData=function(n){this.dataPoints=this.dataGroup.initializeData(this,n,this.style),this._initializeRanges(),this._redrawFilter()},m.prototype.setData=function(n){void 0!==n&&null!==n&&(this._readData(n),this.redraw(),this.animationStart())},m.prototype.setOptions=function(n){void 0!==n&&(!0===d.validate(n,f)&&console.log("%cErrors have been found in the supplied options object.",p),this.animationStop(),h.setOptions(n,this),this.setPointDrawingMethod(),this._setSize(this.width,this.height),this.setData(this.dataGroup.getDataTable()),this.animationStart())},m.prototype.setPointDrawingMethod=function(){var n=void 0;switch(this.style){case m.STYLE.BAR:n=m.prototype._redrawBarGraphPoint;break;case m.STYLE.BARCOLOR:n=m.prototype._redrawBarColorGraphPoint;break;case m.STYLE.BARSIZE:n=m.prototype._redrawBarSizeGraphPoint;break;case m.STYLE.DOT:n=m.prototype._redrawDotGraphPoint;break;case m.STYLE.DOTLINE:n=m.prototype._redrawDotLineGraphPoint;break;case m.STYLE.DOTCOLOR:n=m.prototype._redrawDotColorGraphPoint;break;case m.STYLE.DOTSIZE:n=m.prototype._redrawDotSizeGraphPoint;break;case m.STYLE.SURFACE:n=m.prototype._redrawSurfaceGraphPoint;break;case m.STYLE.GRID:n=m.prototype._redrawGridGraphPoint;break;case m.STYLE.LINE:n=m.prototype._redrawLineGraphPoint;break;default:throw new Error("Can not determine point drawing method for graph style '"+this.style+"'")}this._pointDrawingMethod=n},m.prototype.redraw=function(){if(void 0===this.dataPoints)throw new Error("Graph data not initialized");this._resizeCanvas(),this._resizeCenter(),this._redrawSlider(),this._redrawClear(),this._redrawAxis(),this._redrawDataGraph(),this._redrawInfo(),this._redrawLegend()},m.prototype._getContext=function(){var n=this.frame.canvas.getContext("2d");return n.lineJoin="round",n.lineCap="round",n},m.prototype._redrawClear=function(){var n=this.frame.canvas;n.getContext("2d").clearRect(0,0,n.width,n.height)},m.prototype._dotSize=function(){return this.frame.clientWidth*this.dotSizeRatio},m.prototype._getLegendWidth=function(){return this.style===m.STYLE.DOTSIZE?this._dotSize()*this.dotSizeMaxFraction:this.style===m.STYLE.BARSIZE?this.xBarWidth:20},m.prototype._redrawLegend=function(){if(!0===this.showLegend&&this.style!==m.STYLE.LINE&&this.style!==m.STYLE.BARSIZE){var n=this.style===m.STYLE.BARSIZE||this.style===m.STYLE.DOTSIZE,t=this.style===m.STYLE.DOTSIZE||this.style===m.STYLE.DOTCOLOR||this.style===m.STYLE.BARCOLOR,e=Math.max(.25*this.frame.clientHeight,100),i=this.margin,l=this._getLegendWidth(),o=this.frame.clientWidth-this.margin,r=o-l,s=i+e,u=this._getContext();if(u.lineWidth=1,u.font="14px arial",!1===n){var h,d=e;for(h=0;h0?(n.textAlign="center",n.textBaseline="top",o.y+=l):Math.sin(2*i)<0?(n.textAlign="right",n.textBaseline="middle"):(n.textAlign="left",n.textBaseline="middle"),n.fillStyle=this.axisColor,n.fillText(e,o.x,o.y)},m.prototype.drawAxisLabelY=function(n,t,e,i,l){void 0===l&&(l=0);var o=this._convert3Dto2D(t);Math.cos(2*i)<0?(n.textAlign="center",n.textBaseline="top",o.y+=l):Math.sin(2*i)>0?(n.textAlign="right",n.textBaseline="middle"):(n.textAlign="left",n.textBaseline="middle"),n.fillStyle=this.axisColor,n.fillText(e,o.x,o.y)},m.prototype.drawAxisLabelZ=function(n,t,e,i){void 0===i&&(i=0);var l=this._convert3Dto2D(t);n.textAlign="right",n.textBaseline="middle",n.fillStyle=this.axisColor,n.fillText(e,l.x-i,l.y)},m.prototype._line3d=function(n,t,e,i){var l=this._convert3Dto2D(t),o=this._convert3Dto2D(e);this._line(n,l,o,i)},m.prototype._redrawAxis=function(){var n,t,e,i,l,o,r,u,h,d=this._getContext();d.font=24/this.camera.getArmLength()+"px arial";var p,f,_,m=.025/this.scale.x,g=.025/this.scale.y,v=5/this.camera.getArmLength(),y=this.camera.getArmRotation().horizontal,b=new a(Math.cos(y),Math.sin(y)),w=this.xRange,C=this.yRange,x=this.zRange;for(d.lineWidth=1,(e=new c(w.min,w.max,this.xStep,void 0===this.defaultXStep)).start(!0);!e.end();){var S=e.getCurrent();if(this.showGrid?(n=new s(S,C.min,x.min),t=new s(S,C.max,x.min),this._line3d(d,n,t,this.gridColor)):this.showXAxis&&(n=new s(S,C.min,x.min),t=new s(S,C.min+m,x.min),this._line3d(d,n,t,this.axisColor),n=new s(S,C.max,x.min),t=new s(S,C.max-m,x.min),this._line3d(d,n,t,this.axisColor)),this.showXAxis){p=new s(S,o=b.x>0?C.min:C.max,x.min);var O=" "+this.xValueLabel(S)+" ";this.drawAxisLabelX(d,p,O,y,v)}e.next()}for(d.lineWidth=1,(e=new c(C.min,C.max,this.yStep,void 0===this.defaultYStep)).start(!0);!e.end();){var M=e.getCurrent();if(this.showGrid?(n=new s(w.min,M,x.min),t=new s(w.max,M,x.min),this._line3d(d,n,t,this.gridColor)):this.showYAxis&&(n=new s(w.min,M,x.min),t=new s(w.min+g,M,x.min),this._line3d(d,n,t,this.axisColor),n=new s(w.max,M,x.min),t=new s(w.max-g,M,x.min),this._line3d(d,n,t,this.axisColor)),this.showYAxis){p=new s(l=b.y>0?w.min:w.max,M,x.min);var k=" "+this.yValueLabel(M)+" ";this.drawAxisLabelY(d,p,k,y,v)}e.next()}if(this.showZAxis){for(d.lineWidth=1,(e=new c(x.min,x.max,this.zStep,void 0===this.defaultZStep)).start(!0),l=b.x>0?w.min:w.max,o=b.y<0?C.min:C.max;!e.end();){var T=e.getCurrent(),z=new s(l,o,T),D=this._convert3Dto2D(z);t=new a(D.x-v,D.y),this._line(d,D,t,this.axisColor);var P=this.zValueLabel(T)+" ";this.drawAxisLabelZ(d,z,P,5),e.next()}d.lineWidth=1,n=new s(l,o,x.min),t=new s(l,o,x.max),this._line3d(d,n,t,this.axisColor)}this.showXAxis&&(d.lineWidth=1,f=new s(w.min,C.min,x.min),_=new s(w.max,C.min,x.min),this._line3d(d,f,_,this.axisColor),f=new s(w.min,C.max,x.min),_=new s(w.max,C.max,x.min),this._line3d(d,f,_,this.axisColor)),this.showYAxis&&(d.lineWidth=1,n=new s(w.min,C.min,x.min),t=new s(w.min,C.max,x.min),this._line3d(d,n,t,this.axisColor),n=new s(w.max,C.min,x.min),t=new s(w.max,C.max,x.min),this._line3d(d,n,t,this.axisColor));var I=this.xLabel;I.length>0&&this.showXAxis&&(h=.1/this.scale.y,i=new s(l=(w.max+3*w.min)/4,o=b.x>0?C.min-h:C.max+h,x.min),this.drawAxisLabelX(d,i,I,y));var L=this.yLabel;L.length>0&&this.showYAxis&&(u=.1/this.scale.x,i=new s(l=b.y>0?w.min-u:w.max+u,o=(C.max+3*C.min)/4,x.min),this.drawAxisLabelY(d,i,L,y));var E=this.zLabel;E.length>0&&this.showZAxis&&(r=30,i=new s(l=b.x>0?w.min:w.max,o=b.y<0?C.min:C.max,(x.max+3*x.min)/4),this.drawAxisLabelZ(d,i,E,r))},m.prototype._hsv2rgb=function(n,t,e){var i,l,o,r,s,a;switch(r=e*t,s=Math.floor(n/60),a=r*(1-Math.abs(n/60%2-1)),s){case 0:i=r,l=a,o=0;break;case 1:i=a,l=r,o=0;break;case 2:i=0,l=r,o=a;break;case 3:i=0,l=a,o=r;break;case 4:i=a,l=0,o=r;break;case 5:i=r,l=0,o=a;break;default:i=0,l=0,o=0}return"RGB("+parseInt(255*i)+","+parseInt(255*l)+","+parseInt(255*o)+")"},m.prototype._getStrokeWidth=function(n){return void 0!==n?this.showPerspective?1/-n.trans.z*this.dataColor.strokeWidth:-this.eye.z/this.camera.getArmLength()*this.dataColor.strokeWidth:this.dataColor.strokeWidth},m.prototype._redrawBar=function(n,t,e,i,l,o){var r,a=this,u=t.point,c=this.zRange.min,h=[{point:new s(u.x-e,u.y-i,u.z)},{point:new s(u.x+e,u.y-i,u.z)},{point:new s(u.x+e,u.y+i,u.z)},{point:new s(u.x-e,u.y+i,u.z)}],d=[{point:new s(u.x-e,u.y-i,c)},{point:new s(u.x+e,u.y-i,c)},{point:new s(u.x+e,u.y+i,c)},{point:new s(u.x-e,u.y+i,c)}];h.forEach(function(n){n.screen=a._convert3Dto2D(n.point)}),d.forEach(function(n){n.screen=a._convert3Dto2D(n.point)});var p=[{corners:h,center:s.avg(d[0].point,d[2].point)},{corners:[h[0],h[1],d[1],d[0]],center:s.avg(d[1].point,d[0].point)},{corners:[h[1],h[2],d[2],d[1]],center:s.avg(d[2].point,d[1].point)},{corners:[h[2],h[3],d[3],d[2]],center:s.avg(d[3].point,d[2].point)},{corners:[h[3],h[0],d[0],d[3]],center:s.avg(d[0].point,d[3].point)}];t.surfaces=p;for(var f=0;f0}if(a){var p,f=240*(1-((t.point.z+e.point.z+i.point.z+l.point.z)/4-this.zRange.min)*this.scale.z/this.verticalRatio);this.showShadow?(p=Math.min(1+h.x/d/2,1),r=o=this._hsv2rgb(f,1,p)):(o=this._hsv2rgb(f,1,p=1),r=this.axisColor)}else o="gray",r=this.axisColor;n.lineWidth=this._getStrokeWidth(t),this._polygon(n,[t,e,l,i],o,r)}},m.prototype._drawGridLine=function(n,t,e){if(void 0!==t&&void 0!==e){var i=240*(1-((t.point.z+e.point.z)/2-this.zRange.min)*this.scale.z/this.verticalRatio);n.lineWidth=2*this._getStrokeWidth(t),n.strokeStyle=this._hsv2rgb(i,1,1),this._line(n,t.screen,e.screen)}},m.prototype._redrawGridGraphPoint=function(n,t){this._drawGridLine(n,t,t.pointRight),this._drawGridLine(n,t,t.pointTop)},m.prototype._redrawLineGraphPoint=function(n,t){void 0!==t.pointNext&&(n.lineWidth=this._getStrokeWidth(t),n.strokeStyle=this.dataColor.stroke,this._line(n,t.screen,t.pointNext.screen))},m.prototype._redrawDataGraph=function(){var n,t=this._getContext();if(!(void 0===this.dataPoints||this.dataPoints.length<=0))for(this._calcTranslations(this.dataPoints),n=0;n0?1:n<0?-1:0}var r=o((i.x-e.x)*(n.y-e.y)-(i.y-e.y)*(n.x-e.x)),s=o((l.x-i.x)*(n.y-i.y)-(l.y-i.y)*(n.x-i.x)),a=o((e.x-l.x)*(n.y-l.y)-(e.y-l.y)*(n.x-l.x));return!(0!=r&&0!=s&&r!=s||0!=s&&0!=a&&s!=a||0!=r&&0!=a&&r!=a)},m.prototype._dataPointFromXY=function(n,t){var e,i=null,l=null,o=null,r=new a(n,t);if(this.style===m.STYLE.BAR||this.style===m.STYLE.BARCOLOR||this.style===m.STYLE.BARSIZE)for(e=this.dataPoints.length-1;e>=0;e--){var s=(i=this.dataPoints[e]).surfaces;if(s)for(var u=s.length-1;u>=0;u--){var c=s[u].corners,h=[c[2].screen,c[3].screen,c[0].screen];if(this._insideTriangle(r,[c[0].screen,c[1].screen,c[2].screen])||this._insideTriangle(r,h))return i}}else for(e=0;e"+this.xLabel+":"+n.point.x+""+this.yLabel+":"+n.point.y+""+this.zLabel+":"+n.point.z+"",t.style.left="0",t.style.top="0",this.frame.appendChild(t),this.frame.appendChild(e),this.frame.appendChild(i);var o=t.offsetWidth,r=t.offsetHeight,s=e.offsetHeight,a=i.offsetWidth,u=i.offsetHeight,c=n.screen.x-o/2;c=Math.min(Math.max(c,10),this.frame.clientWidth-10-o),e.style.left=n.screen.x+"px",e.style.top=n.screen.y-s+"px",t.style.left=c+"px",t.style.top=n.screen.y-s-r+"px",i.style.left=n.screen.x-a/2+"px",i.style.top=n.screen.y-u/2+"px"},m.prototype._hideTooltip=function(){if(this.tooltip)for(var n in this.tooltip.dataPoint=null,this.tooltip.dom)if(this.tooltip.dom.hasOwnProperty(n)){var t=this.tooltip.dom[n];t&&t.parentNode&&t.parentNode.removeChild(t)}},m.prototype.setCameraPosition=function(n){h.setCameraPosition(n,this),this.redraw()},m.prototype.setSize=function(n,t){this._setSize(n,t),this.redraw()},n.exports=m},function(n,t,e){e(163),n.exports=e(7).Object.assign},function(n,t,e){var i=e(17);i(i.S+i.F,"Object",{assign:e(164)})},function(n,t,e){var i=e(33),l=e(63),o=e(42),r=e(41),s=e(78),a=Object.assign;n.exports=!a||e(28)(function(){var n={},t={},e=Symbol(),i="abcdefghijklmnopqrst";return n[e]=7,i.split("").forEach(function(n){t[n]=n}),7!=a({},n)[e]||Object.keys(a({},t)).join("")!=i})?function(n,t){for(var e=r(n),a=arguments.length,u=1,c=l.f,h=o.f;a>u;)for(var d,p=s(arguments[u++]),f=c?i(p).concat(c(p)):i(p),_=f.length,m=0;_>m;)h.call(p,d=f[m++])&&(e[d]=p[d]);return e}:a},function(n,t,e){n.exports={default:e(166),__esModule:!0}},function(n,t,e){e(167),n.exports=e(7).Math.sign},function(n,t,e){var i=e(17);i(i.S,"Math",{sign:e(168)})},function(n,t){n.exports=Math.sign||function(n){return 0==(n=+n)||n!=n?n:n<0?-1:1}},function(n,t,e){n.exports={default:e(170),__esModule:!0}},function(n,t,e){e(171);var i=e(7).Object;n.exports=function(n,t,e){return i.defineProperty(n,t,e)}},function(n,t,e){var i=e(17);i(i.S+i.F*!e(21),"Object",{defineProperty:e(20).f})},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i="string",l="boolean",o="number",r={fill:{string:i},stroke:{string:i},strokeWidth:{number:o},__type__:{string:i,object:"object",undefined:"undefined"}};t.allOptions={animationAutoStart:{boolean:l,undefined:"undefined"},animationInterval:{number:o},animationPreload:{boolean:l},axisColor:{string:i},backgroundColor:r,xBarWidth:{number:o,undefined:"undefined"},yBarWidth:{number:o,undefined:"undefined"},cameraPosition:{distance:{number:o},horizontal:{number:o},vertical:{number:o},__type__:{object:"object"}},xCenter:{string:i},yCenter:{string:i},dataColor:r,dotSizeMinFraction:{number:o},dotSizeMaxFraction:{number:o},dotSizeRatio:{number:o},filterLabel:{string:i},gridColor:{string:i},onclick:{function:"function"},keepAspectRatio:{boolean:l},xLabel:{string:i},yLabel:{string:i},zLabel:{string:i},legendLabel:{string:i},xMin:{number:o,undefined:"undefined"},yMin:{number:o,undefined:"undefined"},zMin:{number:o,undefined:"undefined"},xMax:{number:o,undefined:"undefined"},yMax:{number:o,undefined:"undefined"},zMax:{number:o,undefined:"undefined"},showAnimationControls:{boolean:l,undefined:"undefined"},showGrid:{boolean:l},showLegend:{boolean:l,undefined:"undefined"},showPerspective:{boolean:l},showShadow:{boolean:l},showXAxis:{boolean:l},showYAxis:{boolean:l},showZAxis:{boolean:l},xStep:{number:o,undefined:"undefined"},yStep:{number:o,undefined:"undefined"},zStep:{number:o,undefined:"undefined"},style:{number:o,string:["bar","bar-color","bar-size","dot","dot-line","dot-color","dot-size","line","grid","surface"]},tooltip:{boolean:l,function:"function"},tooltipStyle:{content:{color:{string:i},background:{string:i},border:{string:i},borderRadius:{string:i},boxShadow:{string:i},padding:{string:i},__type__:{object:"object"}},line:{borderLeft:{string:i},height:{string:i},width:{string:i},__type__:{object:"object"}},dot:{border:{string:i},borderRadius:{string:i},height:{string:i},width:{string:i},__type__:{object:"object"}},__type__:{object:"object"}},xValueLabel:{function:"function"},yValueLabel:{function:"function"},zValueLabel:{function:"function"},valueMax:{number:o,undefined:"undefined"},valueMin:{number:o,undefined:"undefined"},verticalRatio:{number:o},height:{string:i},width:{string:i},__type__:{object:"object"}}},function(n,t,e){var i=e(11),l=e(12),o=e(174),r=e(96),s=e(94),a=e(34);function u(){this.dataTable=null}u.prototype.initializeData=function(n,t,e){if(void 0!==t){var o;if(Array.isArray(t)&&(t=new i(t)),!(t instanceof i||t instanceof l))throw new Error("Array, DataSet, or DataView expected");if(0!=(o=t.get()).length){this.style=e,this.dataSet&&this.dataSet.off("*",this._onChange),this.dataSet=t,this.dataTable=o;var s=this;this._onChange=function(){n.setData(s.dataSet)},this.dataSet.on("*",this._onChange),this.colX="x",this.colY="y",this.colZ="z";var a=n.hasBars(e);if(a&&(this.xBarWidth=void 0!==n.defaultXBarWidth?n.defaultXBarWidth:this.getSmallestDifference(o,this.colX)||1,this.yBarWidth=void 0!==n.defaultYBarWidth?n.defaultYBarWidth:this.getSmallestDifference(o,this.colY)||1),this._initializeRange(o,this.colX,n,a),this._initializeRange(o,this.colY,n,a),this._initializeRange(o,this.colZ,n,!1),o[0].hasOwnProperty("style")){this.colValue="style";var u=this.getColumnRange(o,this.colValue);this._setRangeDefaults(u,n.defaultValueMin,n.defaultValueMax),this.valueRange=u}return this.getDataTable()[0].hasOwnProperty("filter")&&void 0===this.dataFilter&&(this.dataFilter=new r(this,"filter",n),this.dataFilter.setOnLoadCallback(function(){n.redraw()})),this.dataFilter?this.dataFilter._getDataPoints():this._getDataPoints(this.getDataTable())}}},u.prototype._collectRangeSettings=function(n,t){if(-1==["x","y","z"].indexOf(n))throw new Error("Column '"+n+"' invalid");var e=n.toUpperCase();return{barWidth:this[n+"BarWidth"],min:t["default"+e+"Min"],max:t["default"+e+"Max"],step:t["default"+e+"Step"],range_label:n+"Range",step_label:n+"Step"}},u.prototype._initializeRange=function(n,t,e,i){var l=this._collectRangeSettings(t,e),o=this.getColumnRange(n,t);i&&"z"!=t&&o.expand(l.barWidth/2),this._setRangeDefaults(o,l.min,l.max),this[l.range_label]=o,this[l.step_label]=void 0!==l.step?l.step:o.range()/5},u.prototype.getDistinctValues=function(n,t){void 0===t&&(t=this.dataTable);for(var e=[],i=0;io)&&(i=o)}return i},u.prototype.getColumnRange=function(n,t){for(var e=new o,i=0;i0&&(t[e-1].pointNext=t[e]);return t},u.prototype._checkValueField=function(n){if(this.style===s.STYLE.BARCOLOR||this.style===s.STYLE.BARSIZE||this.style===s.STYLE.DOTCOLOR||this.style===s.STYLE.DOTSIZE){if(void 0===this.colValue)throw new Error("Expected data to have field 'style' for graph style '"+this.style+"'");if(void 0===n[0][this.colValue])throw new Error("Expected data to have field '"+this.colValue+"' for graph style '"+this.style+"'")}},n.exports=u},function(n,t,e){function i(){this.min=void 0,this.max=void 0}i.prototype.adjust=function(n){void 0!==n&&((void 0===this.min||this.min>n)&&(this.min=n),(void 0===this.max||this.maxe)throw new Error("Passed expansion value makes range invalid");this.min=t,this.max=e}},i.prototype.range=function(){return this.max-this.min},i.prototype.center=function(){return(this.min+this.max)/2},n.exports=i},function(n,t,e){var i,l;void 0===(l="function"==typeof(i=function(){var n=null;return function t(e,i){var l=i||{preventDefault:!1};if(e.Manager){var o=e,r=function(n,e){var i=Object.create(l);return e&&o.assign(i,e),t(new o(n,i),i)};return o.assign(r,o),r.Manager=function(n,e){var i=Object.create(l);return e&&o.assign(i,e),t(new o.Manager(n,i),i)},r}var s=Object.create(e),a=e.element;function u(n){return n.match(/[^ ]+/g)}function c(t){if("hammer.input"!==t.type){if(t.srcEvent._handled||(t.srcEvent._handled={}),t.srcEvent._handled[t.type])return;t.srcEvent._handled[t.type]=!0}var e=!1;t.stopPropagation=function(){e=!0};var i=t.srcEvent.stopPropagation.bind(t.srcEvent);"function"==typeof i&&(t.srcEvent.stopPropagation=function(){i(),t.stopPropagation()}),t.firstTarget=n;for(var l=n;l&&!e;){var o=l.hammer;if(o)for(var r,s=0;s0?s._handlers[n]=i:(e.off(n,c),delete s._handlers[n]))}),s},s.emit=function(t,i){n=i.target,e.emit(t,i)},s.destroy=function(){var n=e.element.hammer,t=n.indexOf(s);-1!==t&&n.splice(t,1),n.length||delete e.element.hammer,s._handlers={},e.destroy()},s}})?i.apply(t,[]):i)||(n.exports=l)},function(n,t,e){var i;!function(l,o,r,s){var a,u=["","webkit","Moz","MS","ms","o"],c=o.createElement("div"),h="function",d=Math.round,p=Math.abs,f=Date.now;function _(n,t,e){return setTimeout(C(n,e),t)}function m(n,t,e){return!!Array.isArray(n)&&(g(n,e[t],e),!0)}function g(n,t,e){var i;if(n)if(n.forEach)n.forEach(t,e);else if(n.length!==s)for(i=0;i\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=l.console&&(l.console.warn||l.console.log);return o&&o.call(l.console,i,e),n.apply(this,arguments)}}a="function"!=typeof Object.assign?function(n){if(n===s||null===n)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),e=1;e-1}function z(n){return n.trim().split(/\s+/g)}function D(n,t,e){if(n.indexOf&&!e)return n.indexOf(t);for(var i=0;ie[t]}):i.sort()),i}function L(n,t){for(var e,i,l=t[0].toUpperCase()+t.slice(1),o=0;o1&&!e.firstMultiple?e.firstMultiple=tn(t):1===l&&(e.firstMultiple=!1);var o=e.firstInput,r=e.firstMultiple,a=r?r.center:o.center,u=t.center=en(i);t.timeStamp=f(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=sn(a,u),t.distance=rn(a,u),function(n,t){var e=t.center,i=n.offsetDelta||{},l=n.prevDelta||{},o=n.prevInput||{};t.eventType!==H&&o.eventType!==R||(l=n.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=n.offsetDelta={x:e.x,y:e.y}),t.deltaX=l.x+(e.x-i.x),t.deltaY=l.y+(e.y-i.y)}(e,t),t.offsetDirection=on(t.deltaX,t.deltaY);var c,h,d=ln(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=d.x,t.overallVelocityY=d.y,t.overallVelocity=p(d.x)>p(d.y)?d.x:d.y,t.scale=r?(c=r.pointers,rn((h=i)[0],h[1],Z)/rn(c[0],c[1],Z)):1,t.rotation=r?function(n,t){return sn(i[1],i[0],Z)+sn(n[1],n[0],Z)}(r.pointers):0,t.maxPointers=e.prevInput?t.pointers.length>e.prevInput.maxPointers?t.pointers.length:e.prevInput.maxPointers:t.pointers.length,function(n,t){var e,i,l,o,r=n.lastInterval||t,a=t.timeStamp-r.timeStamp;if(t.eventType!=V&&(a>Y||r.velocity===s)){var u=t.deltaX-r.deltaX,c=t.deltaY-r.deltaY,h=ln(a,u,c);i=h.x,l=h.y,e=p(h.x)>p(h.y)?h.x:h.y,o=on(u,c),n.lastInterval=t}else e=r.velocity,i=r.velocityX,l=r.velocityY,o=r.direction;t.velocity=e,t.velocityX=i,t.velocityY=l,t.direction=o}(e,t);var _=n.element;k(t.srcEvent.target,_)&&(_=t.srcEvent.target),t.target=_}(n,e),n.emit("hammer.input",e),n.recognize(e),n.session.prevInput=e}function tn(n){for(var t=[],e=0;e=p(t)?n<0?W:U:t<0?q:G}function rn(n,t,e){e||(e=K);var i=t[e[0]]-n[e[0]],l=t[e[1]]-n[e[1]];return Math.sqrt(i*i+l*l)}function sn(n,t,e){return e||(e=K),180*Math.atan2(t[e[1]]-n[e[1]],t[e[0]]-n[e[0]])/Math.PI}Q.prototype={handler:function(){},init:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(A(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&M(this.element,this.evEl,this.domHandler),this.evTarget&&M(this.target,this.evTarget,this.domHandler),this.evWin&&M(A(this.element),this.evWin,this.domHandler)}};var an={mousedown:H,mousemove:2,mouseup:R},un="mousedown",cn="mousemove mouseup";function hn(){this.evEl=un,this.evWin=cn,this.pressed=!1,Q.apply(this,arguments)}w(hn,Q,{handler:function(n){var t=an[n.type];t&H&&0===n.button&&(this.pressed=!0),2&t&&1!==n.which&&(t=R),this.pressed&&(t&R&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[n],changedPointers:[n],pointerType:"mouse",srcEvent:n}))}});var dn={pointerdown:H,pointermove:2,pointerup:R,pointercancel:V,pointerout:V},pn={2:"touch",3:"pen",4:"mouse",5:"kinect"},fn="pointerdown",_n="pointermove pointerup pointercancel";function mn(){this.evEl=fn,this.evWin=_n,Q.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}l.MSPointerEvent&&!l.PointerEvent&&(fn="MSPointerDown",_n="MSPointerMove MSPointerUp MSPointerCancel"),w(mn,Q,{handler:function(n){var t=this.store,e=!1,i=n.type.toLowerCase().replace("ms",""),l=dn[i],o=pn[n.pointerType]||n.pointerType,r="touch"==o,s=D(t,n.pointerId,"pointerId");l&H&&(0===n.button||r)?s<0&&(t.push(n),s=t.length-1):l&(R|V)&&(e=!0),s<0||(t[s]=n,this.callback(this.manager,l,{pointers:t,changedPointers:[n],pointerType:o,srcEvent:n}),e&&t.splice(s,1))}});var gn={touchstart:H,touchmove:2,touchend:R,touchcancel:V},vn="touchstart",yn="touchstart touchmove touchend touchcancel";function bn(){this.evTarget=vn,this.evWin=yn,this.started=!1,Q.apply(this,arguments)}w(bn,Q,{handler:function(n){var t=gn[n.type];if(t===H&&(this.started=!0),this.started){var e=(function(n,t){var e=P(n.touches),i=P(n.changedTouches);return t&(R|V)&&(e=I(e.concat(i),"identifier",!0)),[e,i]}).call(this,n,t);t&(R|V)&&e[0].length-e[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:e[0],changedPointers:e[1],pointerType:"touch",srcEvent:n})}}});var wn={touchstart:H,touchmove:2,touchend:R,touchcancel:V},Cn="touchstart touchmove touchend touchcancel";function xn(){this.evTarget=Cn,this.targetIds={},Q.apply(this,arguments)}w(xn,Q,{handler:function(n){var t=wn[n.type],e=(function(n,t){var e=P(n.touches),i=this.targetIds;if(t&(2|H)&&1===e.length)return i[e[0].identifier]=!0,[e,e];var l,o,r=P(n.changedTouches),s=[],a=this.target;if(o=e.filter(function(n){return k(n.target,a)}),t===H)for(l=0;l-1&&i.splice(n,1)},Sn)}}w(On,Q,{handler:function(n,t,e){var i="mouse"==e.pointerType;if(!(i&&e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents)){if("touch"==e.pointerType)(function(n,t){n&H?(this.primaryTouch=t.changedPointers[0].identifier,Mn.call(this,t)):n&(R|V)&&Mn.call(this,t)}).call(this,t,e);else if(i&&(function(n){for(var t=n.srcEvent.clientX,e=n.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(n){return!!this.simultaneous[n.id]},emit:function(n){var t=this,e=this.state;function i(e){t.manager.emit(e,n)}e=En&&i(t.options.event+jn(e))},tryEmit:function(n){if(this.canEmit())return this.emit(n);this.state=32},canEmit:function(){for(var n=0;nt.threshold&&l&t.direction},attrTest:function(n){return Rn.prototype.attrTest.call(this,n)&&(this.state&In||!(this.state&In)&&this.directionTest(n))},emit:function(n){this.pX=n.deltaX,this.pY=n.deltaY;var t=Yn(n.direction);t&&(n.additionalEvent=this.options.event+t),this._super.emit.call(this,n)}}),w(Bn,Rn,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&In)},emit:function(n){1!==n.scale&&(n.additionalEvent=this.options.event+(n.scale<1?"in":"out")),this._super.emit.call(this,n)}}),w(Wn,Nn,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(n){var t=this.options,e=n.pointers.length===t.pointers,i=n.distancet.time;if(this._input=n,!i||!e||n.eventType&(R|V)&&!l)this.reset();else if(n.eventType&H)this.reset(),this._timer=_(function(){this.state=An,this.tryEmit()},t.time,this);else if(n.eventType&R)return An;return 32},reset:function(){clearTimeout(this._timer)},emit:function(n){this.state===An&&(n&&n.eventType&R?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),w(Un,Rn,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&In)}}),w(qn,Rn,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:$|X,pointers:1},getTouchAction:function(){return Vn.prototype.getTouchAction.call(this)},attrTest:function(n){var t,e=this.options.direction;return e&($|X)?t=n.overallVelocity:e&$?t=n.overallVelocityX:e&X&&(t=n.overallVelocityY),this._super.attrTest.call(this,n)&&e&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers==this.options.pointers&&p(t)>this.options.velocity&&n.eventType&R},emit:function(n){var t=Yn(n.offsetDirection);t&&this.manager.emit(this.options.event+t,n),this.manager.emit(this.options.event,n)}}),w(Gn,Nn,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(n){var t=this.options,e=n.pointers.length===t.pointers,i=n.distanceu+e?o+=a()+h-e+n.itemSet.options.margin.item.vertical:r=!1,{shouldScroll:r,scrollOffset:o=Math.min(o,i-e),itemTop:c}}(v.prototype=new a)._createConfigurator=function(){return new m(this,this.dom.container,_)},v.prototype.redraw=function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()},v.prototype.setOptions=function(n){if(!0===g.validate(n,f)&&console.log("%cErrors have been found in the supplied options object.",p),a.prototype.setOptions.call(this,n),"type"in n&&n.type!==this.options.type){this.options.type=n.type;var t=this.itemsData;if(t){var e=this.getSelection();this.setItems(null),this.setItems(t),this.setSelection(e)}}},v.prototype.setItems=function(n){var t;t=n?n instanceof o||n instanceof r?n:new o(n,{type:{start:"Date",end:"Date"}}):null,this.itemsData=t,this.itemSet&&this.itemSet.setItems(t)},v.prototype.setGroups=function(n){var t;if(n){var e=function(n){return!1!==n.visible};t=n instanceof o||n instanceof r?new r(n,{filter:e}):new o(n.filter(e))}else t=null;this.groupsData=t,this.itemSet.setGroups(t)},v.prototype.setData=function(n){n&&n.groups&&this.setGroups(n.groups),n&&n.items&&this.setItems(n.items)},v.prototype.setSelection=function(n,t){this.itemSet&&this.itemSet.setSelection(n),t&&t.focus&&this.focus(n,t)},v.prototype.getSelection=function(){return this.itemSet&&this.itemSet.getSelection()||[]},v.prototype.focus=function(n,t){if(this.itemsData&&void 0!=n){var e=Array.isArray(n)?n:[n],i=null,l=null;if(this.itemsData.getDataSet().get(e,{type:{start:"Date",end:"Date"}}).forEach(function(n){var t=n.start.valueOf(),e="end"in n?n.end.valueOf():n.start.valueOf();(null===i||tl)&&(l=e)}),null!==i&&null!==l){var o=this,r=this.itemSet.items[e[0]],s=-1*this._getScrollTop(),a=null,u=function(){var n=w(o,r);n.shouldScroll&&n.itemTop!=a.itemTop&&(o._setScrollTop(-n.scrollOffset),o._redraw())},c=(i+l)/2,h=Math.max(this.range.end-this.range.start,1.1*(l-i)),d=!t||void 0===t.animation||t.animation;d||(a={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(c-h/2,c+h/2,{animation:d},function(){u(),setTimeout(u,100)},function(n,t,e){var i=w(o,r);if(a||(a=i),a.itemTop!=i.itemTop||a.shouldScroll){a.itemTop!=i.itemTop&&i.shouldScroll&&(a=i,s=-1*o._getScrollTop());var l=a.scrollOffset;o._setScrollTop(-(e?l:s+(l-s)*n)),t||o._redraw()}})}}},v.prototype.fit=function(n,t){var e,i=!n||void 0===n.animation||n.animation,l=this.itemsData&&this.itemsData.getDataSet();1===l.length&&void 0===l.get()[0].end?(e=this.getDataRange(),this.moveTo(e.min.valueOf(),{animation:i},t)):(e=this.getItemRange(),this.range.setRange(e.min,e.max,{animation:i},t))},v.prototype.getItemRange=function(){var n=this.getDataRange(),t=null!==n.min?n.min.valueOf():null,e=null!==n.max?n.max.valueOf():null,i=null,o=null;if(null!=t&&null!=e){var r=e-t;r<=0&&(r=10);var s=r/this.props.center.width,a={},u=0;if(l.forEach(this.itemSet.items,function(n,t){n.groupShowing&&(a[t]=n.redraw(!0),u=a[t].length)}),u>0)for(var c=0;ce&&(e=r,o=n)}).bind(this)),i&&o){var h=i.getWidthLeft()+10,d=o.getWidthRight()+10,p=this.props.center.width-h-d;p>0&&(this.options.rtl?(t=y(i)-d*r/p,e=b(o)+h*r/p):(t=y(i)-h*r/p,e=b(o)+d*r/p))}}return{min:null!=t?new Date(t):null,max:null!=e?new Date(e):null}},v.prototype.getDataRange=function(){var n=null,t=null,e=this.itemsData&&this.itemsData.getDataSet();return e&&e.forEach(function(e){var i=l.convert(e.start,"Date").valueOf(),o=l.convert(void 0!=e.end?e.end:e.start,"Date").valueOf();(null===n||it)&&(t=o)}),{min:null!=n?new Date(n):null,max:null!=t?new Date(t):null}},v.prototype.getEventProperties=function(n){var t,e=n.center?n.center.x:n.clientX,i=n.center?n.center.y:n.clientY;t=this.options.rtl?l.getAbsoluteRight(this.dom.centerContainer)-e:e-l.getAbsoluteLeft(this.dom.centerContainer);var o=i-l.getAbsoluteTop(this.dom.centerContainer),r=this.itemSet.itemFromTarget(n),s=this.itemSet.groupFromTarget(n),a=h.customTimeFromTarget(n),u=this.itemSet.options.snap||null,c=this.body.util.getScale(),d=this.body.util.getStep(),p=this._toTime(t),f=u?u(p,c,d):p,_=l.getTarget(n),m=null;return null!=r?m="item":null!=a?m="custom-time":l.hasParent(_,this.timeAxis.dom.foreground)?m="axis":this.timeAxis2&&l.hasParent(_,this.timeAxis2.dom.foreground)?m="axis":l.hasParent(_,this.itemSet.dom.labelSet)?m="group-label":l.hasParent(_,this.currentTime.bar)?m="current-time":l.hasParent(_,this.dom.center)&&(m="background"),{event:n,item:r?r.id:null,group:s?s.groupId:null,what:m,pageX:n.srcEvent?n.srcEvent.pageX:n.pageX,pageY:n.srcEvent?n.srcEvent.pageY:n.pageY,x:t,y:o,time:p,snappedTime:f}},v.prototype.toggleRollingMode=function(){this.range.rolling?this.range.stopRolling():(void 0==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())},n.exports=v},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=r(e(19)),l=r(e(0)),o=r(e(1));function r(n){return n&&n.__esModule?n:{default:n}}var s=e(10),a=e(37),u=e(2),c=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;(0,l.default)(this,n),this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return(0,o.default)(n,[{key:"insertTo",value:function(n){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=n,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(n){if("function"!=typeof n)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=n}},{key:"setCloseCallback",value:function(n){if("function"!=typeof n)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=n}},{key:"_isColorString",value:function(n){if("string"==typeof n)return{black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"}[n]}},{key:"setColor",value:function(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==n){var e=void 0,l=this._isColorString(n);if(void 0!==l&&(n=l),!0===u.isString(n)){if(!0===u.isValidRGB(n)){var o=n.substr(4).substr(0,n.length-5).split(",");e={r:o[0],g:o[1],b:o[2],a:1}}else if(!0===u.isValidRGBA(n)){var r=n.substr(5).substr(0,n.length-6).split(",");e={r:r[0],g:r[1],b:r[2],a:r[3]}}else if(!0===u.isValidHex(n)){var s=u.hexToRGB(n);e={r:s.r,g:s.g,b:s.b,a:1}}}else n instanceof Object&&void 0!==n.r&&void 0!==n.g&&void 0!==n.b&&(e={r:n.r,g:n.g,b:n.b,a:void 0!==n.a?n.a:"1.0"});if(void 0===e)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+(0,i.default)(n));this._setColor(e,t)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var n=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=u.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",setTimeout(function(){void 0!==n.closeCallback&&(n.closeCallback(),n.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(n){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=u.extend({},n)),this.color=n;var t=u.RGBToHSV(n.r,n.g,n.b),e=2*Math.PI,i=this.r*t.s,l=this.centerCoordinates.x+i*Math.sin(e*t.h),o=this.centerCoordinates.y+i*Math.cos(e*t.h);this.colorPickerSelector.style.left=l-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(n)}},{key:"_setOpacity",value:function(n){this.color.a=n/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(n){var t=u.RGBToHSV(this.color.r,this.color.g,this.color.b);t.v=n/100;var e=u.HSVToRGB(t.h,t.s,t.v);e.a=this.color.a,this.color=e,this._updatePicker()}},{key:"_updatePicker",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,t=u.RGBToHSV(n.r,n.g,n.b),e=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0),e.clearRect(0,0,this.colorPickerCanvas.clientWidth,this.colorPickerCanvas.clientHeight),e.putImageData(this.hueCircle,0,0),e.fillStyle="rgba(0,0,0,"+(1-t.v)+")",e.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),e.fill(),this.brightnessRange.value=100*t.v,this.opacityRange.value=100*n.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var n=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(t)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(n){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(n){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var e=this;this.opacityRange.onchange=function(){e._setOpacity(this.value)},this.opacityRange.oninput=function(){e._setOpacity(this.value)},this.brightnessRange.onchange=function(){e._setBrightness(this.value)},this.brightnessRange.oninput=function(){e._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=this._hide.bind(this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=this._apply.bind(this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=this._save.bind(this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=this._loadLast.bind(this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var n=this;this.drag={},this.pinch={},this.hammer=new s(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),a.onTouch(this.hammer,function(t){n._moveSelector(t)}),this.hammer.on("tap",function(t){n._moveSelector(t)}),this.hammer.on("panstart",function(t){n._moveSelector(t)}),this.hammer.on("panmove",function(t){n._moveSelector(t)}),this.hammer.on("panend",function(t){n._moveSelector(t)})}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var t=this.colorPickerCanvas.clientWidth,e=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,t,e);var i=void 0,l=void 0,o=void 0,r=void 0;this.centerCoordinates={x:.5*t,y:.5*e},this.r=.49*t;var s=2*Math.PI/360,a=1/this.r,c=void 0;for(o=0;o<360;o++)for(r=0;ro?o:n,t=null==t?o:t0&&u.push(c.screenToValue(i)),!d.hidden&&this.itemsData.length>0&&u.push(d.screenToValue(i)),{event:n,what:a,pageX:n.srcEvent?n.srcEvent.pageX:n.pageX,pageY:n.srcEvent?n.srcEvent.pageY:n.pageY,x:e,y:i,time:o,value:u}},v.prototype._createConfigurator=function(){return new m(this,this.dom.container,_)},n.exports=v},function(n,t,e){t.util=e(2),t.DOMutil=e(14),t.DataSet=e(11),t.DataView=e(12),t.Queue=e(43),t.Network=e(182),t.network={Images:e(116),dotparser:e(114),gephiParser:e(115),allOptions:e(122)},t.network.convertDot=function(n){return t.network.dotparser.DOTToGraph(n)},t.network.convertGephi=function(n,e){return t.network.gephiParser.parseGephi(n,e)},t.moment=e(9),t.Hammer=e(10),t.keycharm=e(35)},function(n,t,e){e(183);var i=e(44),l=e(2),o=e(114),r=e(115),s=e(97),a=e(184),u=e(116).default,c=e(186).default,h=e(187).default,d=e(214).default,p=e(220).default,f=e(227).default,_=e(229).default,m=e(230).default,g=e(231).default,v=e(232).default,y=e(234).default,b=e(235).default,w=e(237).default,C=e(71).default,x=e(15).default,S=e(15).printStyle,O=e(122),M=O.allOptions,k=O.configureOptions,T=e(238).default;function z(n,t,e){var i=this;if(!(this instanceof z))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:a,clickToUse:!1},l.extend(this.options,this.defaultOptions),this.body={container:n,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:this.on.bind(this),off:this.off.bind(this),emit:this.emit.bind(this),once:this.once.bind(this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}}},this.bindEventListeners(),this.images=new u(function(){return i.body.emitter.emit("_requestRedraw")}),this.groups=new c,this.canvas=new m(this.body),this.selectionHandler=new y(this.body,this.canvas),this.interactionHandler=new v(this.body,this.canvas,this.selectionHandler),this.view=new g(this.body,this.canvas),this.renderer=new _(this.body,this.canvas),this.physics=new p(this.body),this.layoutEngine=new b(this.body),this.clustering=new f(this.body),this.manipulation=new w(this.body,this.canvas,this.selectionHandler),this.nodesHandler=new h(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new d(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new T(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(e),this.setData(t)}i(z.prototype),z.prototype.setOptions=function(n){var t=this;if(void 0!==n){if(!0===x.validate(n,M)&&console.log("%cErrors have been found in the supplied options object.",S),l.selectiveDeepExtend(["locale","locales","clickToUse"],this.options,n),n=this.layoutEngine.setOptions(n.layout,n),this.canvas.setOptions(n),this.groups.setOptions(n.groups),this.nodesHandler.setOptions(n.nodes),this.edgesHandler.setOptions(n.edges),this.physics.setOptions(n.physics),this.manipulation.setOptions(n.manipulation,n,this.options),this.interactionHandler.setOptions(n.interaction),this.renderer.setOptions(n.interaction),this.selectionHandler.setOptions(n.interaction),void 0!==n.groups&&this.body.emitter.emit("refreshNodes"),"configure"in n&&(this.configurator||(this.configurator=new C(this,this.body.container,k,this.canvas.pixelRatio)),this.configurator.setOptions(n.configure)),this.configurator&&!0===this.configurator.options.enabled){var e={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};l.deepExtend(e.nodes,this.nodesHandler.options),l.deepExtend(e.edges,this.edgesHandler.options),l.deepExtend(e.layout,this.layoutEngine.options),l.deepExtend(e.interaction,this.selectionHandler.options),l.deepExtend(e.interaction,this.renderer.options),l.deepExtend(e.interaction,this.interactionHandler.options),l.deepExtend(e.manipulation,this.manipulation.options),l.deepExtend(e.physics,this.physics.options),l.deepExtend(e.global,this.canvas.options),l.deepExtend(e.global,this.options),this.configurator.setModuleOptions(e)}void 0!==n.clickToUse?!0===n.clickToUse?void 0===this.activator&&(this.activator=new s(this.canvas.frame),this.activator.on("change",function(){t.body.emitter.emit("activate")})):(void 0!==this.activator&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}},z.prototype._updateVisibleIndices=function(){var n=this.body.nodes,t=this.body.edges;for(var e in this.body.nodeIndices=[],this.body.edgeIndices=[],n)n.hasOwnProperty(e)&&(this.clustering._isClusteredNode(e)||!1!==n[e].options.hidden||this.body.nodeIndices.push(n[e].id));for(var i in t)if(t.hasOwnProperty(i)){var l=t[i],o=n[l.fromId],r=n[l.toId],s=void 0!==o&&void 0!==r;!this.clustering._isClusteredEdge(i)&&!1===l.options.hidden&&s&&!1===o.options.hidden&&!1===r.options.hidden&&this.body.edgeIndices.push(l.id)}},z.prototype.bindEventListeners=function(){var n=this;this.body.emitter.on("_dataChanged",function(){n.edgesHandler._updateState(),n.body.emitter.emit("_dataUpdated")}),this.body.emitter.on("_dataUpdated",function(){n.clustering._updateState(),n._updateVisibleIndices(),n._updateValueRange(n.body.nodes),n._updateValueRange(n.body.edges),n.body.emitter.emit("startSimulation"),n.body.emitter.emit("_requestRedraw")})},z.prototype.setData=function(n){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),n&&n.dot&&(n.nodes||n.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(n&&n.options),n&&n.dot){console.log("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");var t=o.DOTToGraph(n.dot);this.setData(t)}else if(n&&n.gephi){console.log("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");var e=r.parseGephi(n.gephi);this.setData(e)}else this.nodesHandler.setData(n&&n.nodes,!0),this.edgesHandler.setData(n&&n.edges,!0),this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")},z.prototype.destroy=function(){for(var n in this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images,this.body.nodes)this.body.nodes.hasOwnProperty(n)&&delete this.body.nodes[n];for(var t in this.body.edges)this.body.edges.hasOwnProperty(t)&&delete this.body.edges[t];l.recursiveDOMDelete(this.body.container)},z.prototype._updateValueRange=function(n){var t,e=void 0,i=void 0,l=0;for(t in n)if(n.hasOwnProperty(t)){var o=n[t].getValue();void 0!==o&&(e=void 0===e?o:Math.min(o,e),i=void 0===i?o:Math.max(o,i),l+=o)}if(void 0!==e&&void 0!==i)for(t in n)n.hasOwnProperty(t)&&n[t].setValueRange(e,i,l)},z.prototype.isActive=function(){return!this.activator||this.activator.active},z.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)},z.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)},z.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)},z.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)},z.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)},z.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)},z.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)},z.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)},z.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)},z.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)},z.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)},z.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)},z.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)},z.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)},z.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)},z.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)},z.prototype.editNodeMode=function(){return console.log("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)},z.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)},z.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)},z.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)},z.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)},z.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)},z.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)},z.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)},z.prototype.getConnectedNodes=function(n){return void 0!==this.body.nodes[n]?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)},z.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)},z.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)},z.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)},z.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)},z.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)},z.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)},z.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodes.apply(this.selectionHandler,arguments)},z.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdges.apply(this.selectionHandler,arguments)},z.prototype.getNodeAt=function(){var n=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return void 0!==n&&void 0!==n.id?n.id:n},z.prototype.getEdgeAt=function(){var n=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return void 0!==n&&void 0!==n.id?n.id:n},z.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)},z.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)},z.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.redraw()},z.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)},z.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)},z.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)},z.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)},z.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)},z.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)},z.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)},z.prototype.getOptionsFromConfigurator=function(){var n={};return this.configurator&&(n=this.configurator.getOptions.apply(this.configurator)),n},n.exports=z},function(n,t,e){"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.circle=function(n,t,e){this.beginPath(),this.arc(n,t,e,0,2*Math.PI,!1),this.closePath()},CanvasRenderingContext2D.prototype.square=function(n,t,e){this.beginPath(),this.rect(n-e,t-e,2*e,2*e),this.closePath()},CanvasRenderingContext2D.prototype.triangle=function(n,t,e){this.beginPath(),t+=.275*(e*=1.15);var i=2*e,l=i/2,o=Math.sqrt(3)/6*i,r=Math.sqrt(i*i-l*l);this.moveTo(n,t-(r-o)),this.lineTo(n+l,t+o),this.lineTo(n-l,t+o),this.lineTo(n,t-(r-o)),this.closePath()},CanvasRenderingContext2D.prototype.triangleDown=function(n,t,e){this.beginPath(),t-=.275*(e*=1.15);var i=2*e,l=i/2,o=Math.sqrt(3)/6*i,r=Math.sqrt(i*i-l*l);this.moveTo(n,t+(r-o)),this.lineTo(n+l,t-o),this.lineTo(n-l,t-o),this.lineTo(n,t+(r-o)),this.closePath()},CanvasRenderingContext2D.prototype.star=function(n,t,e){this.beginPath(),t+=.1*(e*=.82);for(var i=0;i<10;i++){var l=i%2==0?1.3*e:.5*e;this.lineTo(n+l*Math.sin(2*i*Math.PI/10),t-l*Math.cos(2*i*Math.PI/10))}this.closePath()},CanvasRenderingContext2D.prototype.diamond=function(n,t,e){this.beginPath(),this.lineTo(n,t+e),this.lineTo(n+e,t),this.lineTo(n,t-e),this.lineTo(n-e,t),this.closePath()},CanvasRenderingContext2D.prototype.roundRect=function(n,t,e,i,l){var o=Math.PI/180;e-2*l<0&&(l=e/2),i-2*l<0&&(l=i/2),this.beginPath(),this.moveTo(n+l,t),this.lineTo(n+e-l,t),this.arc(n+e-l,t+l,l,270*o,360*o,!1),this.lineTo(n+e,t+i-l),this.arc(n+e-l,t+i-l,l,0,90*o,!1),this.lineTo(n+l,t+i),this.arc(n+l,t+i-l,l,90*o,180*o,!1),this.lineTo(n,t+l),this.arc(n+l,t+l,l,180*o,270*o,!1),this.closePath()},CanvasRenderingContext2D.prototype.ellipse_vis=function(n,t,e,i){var l=e/2*.5522848,o=i/2*.5522848,r=n+e,s=t+i,a=n+e/2,u=t+i/2;this.beginPath(),this.moveTo(n,u),this.bezierCurveTo(n,u-o,a-l,t,a,t),this.bezierCurveTo(a+l,t,r,u-o,r,u),this.bezierCurveTo(r,u+o,a+l,s,a,s),this.bezierCurveTo(a-l,s,n,u+o,n,u),this.closePath()},CanvasRenderingContext2D.prototype.database=function(n,t,e,i){var l=i*(1/3),o=e/2*.5522848,r=l/2*.5522848,s=n+e,a=t+l,u=n+e/2,c=t+l/2,h=t+(i-l/2),d=t+i;this.beginPath(),this.moveTo(s,c),this.bezierCurveTo(s,c+r,u+o,a,u,a),this.bezierCurveTo(u-o,a,n,c+r,n,c),this.bezierCurveTo(n,c-r,u-o,t,u,t),this.bezierCurveTo(u+o,t,s,c-r,s,c),this.lineTo(s,h),this.bezierCurveTo(s,h+r,u+o,d,u,d),this.bezierCurveTo(u-o,d,n,h+r,n,h),this.lineTo(n,c)},CanvasRenderingContext2D.prototype.dashedLine=function(n,t,e,i,l){this.beginPath(),this.moveTo(n,t);for(var o=l.length,r=e-n,s=i-t,a=s/r,u=Math.sqrt(r*r+s*s),c=0,h=!0,d=0,p=l[0];u>=.1;)(p=l[c++%o])>u&&(p=u),d=Math.sqrt(p*p/(1+a*a)),n+=d=r<0?-d:d,t+=a*d,!0===h?this.lineTo(n,t):this.moveTo(n,t),u-=p,h=!h},CanvasRenderingContext2D.prototype.hexagon=function(n,t,e){this.beginPath();var i=2*Math.PI/6;this.moveTo(n+e,t);for(var l=1;l<6;l++)this.lineTo(n+e*Math.cos(i*l),t+e*Math.sin(i*l));this.closePath()})},function(n,t,e){t.en={edit:"Edit",del:"Delete selected",back:"Back",addNode:"Add Node",addEdge:"Add Edge",editNode:"Edit Node",editEdge:"Edit Edge",addDescription:"Click in an empty space to place a new node.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",createEdgeError:"Cannot link edges to a cluster.",deleteClusterError:"Clusters cannot be deleted.",editClusterError:"Clusters cannot be edited."},t.en_EN=t.en,t.en_US=t.en,t.de={edit:"Editieren",del:"L\xf6sche Auswahl",back:"Zur\xfcck",addNode:"Knoten hinzuf\xfcgen",addEdge:"Kante hinzuf\xfcgen",editNode:"Knoten editieren",editEdge:"Kante editieren",addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",createEdgeError:"Es ist nicht m\xf6glich, Kanten mit Clustern zu verbinden.",deleteClusterError:"Cluster k\xf6nnen nicht gel\xf6scht werden.",editClusterError:"Cluster k\xf6nnen nicht editiert werden."},t.de_DE=t.de,t.es={edit:"Editar",del:"Eliminar selecci\xf3n",back:"\xc1tras",addNode:"A\xf1adir nodo",addEdge:"A\xf1adir arista",editNode:"Editar nodo",editEdge:"Editar arista",addDescription:"Haga clic en un lugar vac\xedo para colocar un nuevo nodo.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",createEdgeError:"No se puede conectar una arista a un grupo.",deleteClusterError:"No es posible eliminar grupos.",editClusterError:"No es posible editar grupos."},t.es_ES=t.es,t.it={edit:"Modifica",del:"Cancella la selezione",back:"Indietro",addNode:"Aggiungi un nodo",addEdge:"Aggiungi un vertice",editNode:"Modifica il nodo",editEdge:"Modifica il vertice",addDescription:"Clicca per aggiungere un nuovo nodo",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",createEdgeError:"Non si possono collegare vertici ad un cluster",deleteClusterError:"I cluster non possono essere cancellati",editClusterError:"I clusters non possono essere modificati."},t.it_IT=t.it,t.nl={edit:"Wijzigen",del:"Selectie verwijderen",back:"Terug",addNode:"Node toevoegen",addEdge:"Link toevoegen",editNode:"Node wijzigen",editEdge:"Link wijzigen",addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",createEdgeError:"Kan geen link maken naar een cluster.",deleteClusterError:"Clusters kunnen niet worden verwijderd.",editClusterError:"Clusters kunnen niet worden aangepast."},t.nl_NL=t.nl,t.nl_BE=t.nl,t["pt-br"]={edit:"Editar",del:"Remover selecionado",back:"Voltar",addNode:"Adicionar n\xf3",addEdge:"Adicionar aresta",editNode:"Editar n\xf3",editEdge:"Editar aresta",addDescription:"Clique em um espa\xe7o em branco para adicionar um novo n\xf3",edgeDescription:"Clique em um n\xf3 e arraste a aresta at\xe9 outro n\xf3 para conect\xe1-los",editEdgeDescription:"Clique nos pontos de controle e os arraste para um n\xf3 para conect\xe1-los",createEdgeError:"N\xe3o foi poss\xedvel linkar arestas a um cluster.",deleteClusterError:"Clusters n\xe3o puderam ser removidos.",editClusterError:"Clusters n\xe3o puderam ser editados."},t["pt-BR"]=t["pt-br"],t.pt_BR=t["pt-br"],t.pt_br=t["pt-br"],t.ru={edit:"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c",del:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0435",back:"\u041d\u0430\u0437\u0430\u0434",addNode:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0443\u0437\u0435\u043b",addEdge:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0431\u0440\u043e",editNode:"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0437\u0435\u043b",editEdge:"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0431\u0440\u043e",addDescription:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0443\u0437\u0435\u043b.",edgeDescription:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u043d\u0430 \u0443\u0437\u0435\u043b \u0438 \u043f\u0440\u043e\u0442\u044f\u043d\u0438\u0442\u0435 \u0440\u0435\u0431\u0440\u043e \u043a \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0443\u0437\u043b\u0443, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0438\u0445.",editEdgeDescription:"\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 \u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0438\u0445 \u0432 \u0443\u0437\u0435\u043b, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u043d\u0435\u043c\u0443.",createEdgeError:"\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0440\u0435\u0431\u0440\u0430 \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440.",deleteClusterError:"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u044b",editClusterError:"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f."},t.ru_RU=t.ru,t.cn={edit:"\u7f16\u8f91",del:"\u5220\u9664\u9009\u5b9a",back:"\u8fd4\u56de",addNode:"\u6dfb\u52a0\u8282\u70b9",addEdge:"\u6dfb\u52a0\u8fde\u63a5\u7ebf",editNode:"\u7f16\u8f91\u8282\u70b9",editEdge:"\u7f16\u8f91\u8fde\u63a5\u7ebf",addDescription:"\u5355\u51fb\u7a7a\u767d\u5904\u653e\u7f6e\u65b0\u8282\u70b9\u3002",edgeDescription:"\u5355\u51fb\u67d0\u4e2a\u8282\u70b9\u5e76\u5c06\u8be5\u8fde\u63a5\u7ebf\u62d6\u52a8\u5230\u53e6\u4e00\u4e2a\u8282\u70b9\u4ee5\u8fde\u63a5\u5b83\u4eec\u3002",editEdgeDescription:"\u5355\u51fb\u63a7\u5236\u8282\u70b9\u5e76\u5c06\u5b83\u4eec\u62d6\u5230\u8282\u70b9\u4e0a\u8fde\u63a5\u3002",createEdgeError:"\u65e0\u6cd5\u5c06\u8fde\u63a5\u7ebf\u8fde\u63a5\u5230\u7fa4\u96c6\u3002",deleteClusterError:"\u65e0\u6cd5\u5220\u9664\u7fa4\u96c6\u3002",editClusterError:"\u65e0\u6cd5\u7f16\u8f91\u7fa4\u96c6\u3002"},t.zh_CN=t.cn},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=o(e(0)),l=o(e(1));function o(n){return n&&n.__esModule?n:{default:n}}var r=function(){function n(){(0,i.default)(this,n),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return(0,l.default)(n,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var n=this.image.width,t=this.image.height;this.width=n,this.height=t;var e=Math.floor(t/2),i=Math.floor(t/4),l=Math.floor(t/8),o=Math.floor(t/16),r=Math.floor(n/2),s=Math.floor(n/4),a=Math.floor(n/8),u=Math.floor(n/16);this.canvas.width=3*s,this.canvas.height=e,this.coordinates=[[0,0,r,e],[r,0,s,i],[r,i,a,l],[5*a,i,u,o]],this._fillMipMap()}}},{key:"initialized",value:function(){return void 0!==this.coordinates}},{key:"_fillMipMap",value:function(){var n=this.canvas.getContext("2d"),t=this.coordinates[0];n.drawImage(this.image,t[0],t[1],t[2],t[3]);for(var e=1;e2){t*=.5;for(var r=0;t>2&&r=this.NUM_ITERATIONS&&(r=this.NUM_ITERATIONS-1);var s=this.coordinates[r];n.drawImage(this.canvas,s[0],s[1],s[2],s[3],e,i,l,o)}else n.drawImage(this.image,e,i,l,o)}}]),n}();t.default=r},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=o(e(0)),l=o(e(1));function o(n){return n&&n.__esModule?n:{default:n}}var r=e(2),s=function(){function n(){(0,i.default)(this,n),this.clear(),this.defaultIndex=0,this.groupsArray=[],this.groupIndex=0,this.defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},r.extend(this.options,this.defaultOptions)}return(0,l.default)(n,[{key:"setOptions",value:function(n){var t=["useDefaultGroups"];if(void 0!==n)for(var e in n)n.hasOwnProperty(e)&&-1===t.indexOf(e)&&this.add(e,n[e])}},{key:"clear",value:function(){this.groups={},this.groupsArray=[]}},{key:"get",value:function(n){var t=this.groups[n];if(void 0===t&&(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]))if(!1===this.options.useDefaultGroups&&this.groupsArray.length>0){var e=this.groupIndex%this.groupsArray.length;this.groupIndex++,(t={}).color=this.groups[this.groupsArray[e]],this.groups[n]=t}else{var i=this.defaultIndex%this.defaultGroups.length;this.defaultIndex++,(t={}).color=this.defaultGroups[i],this.groups[n]=t}return t}},{key:"add",value:function(n,t){return this.groups[n]=t,this.groupsArray.push(n),t}}]),n}();t.default=s},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=o(e(0)),l=o(e(1));function o(n){return n&&n.__esModule?n:{default:n}}var r=e(2),s=e(11),a=e(12),u=e(47).default,c=function(){function n(t,e,l,o){var s=this;if((0,i.default)(this,n),this.body=t,this.images=e,this.groups=l,this.layoutEngine=o,this.body.functions.createNode=this.create.bind(this),this.nodesListeners={add:function(n,t){s.add(t.items)},update:function(n,t){s.update(t.items,t.data,t.oldData)},remove:function(n,t){s.remove(t.items)}},this.defaultOptions={borderWidth:1,borderWidthSelected:2,brokenImage:void 0,color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},fixed:{x:!1,y:!1},font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:0,strokeColor:"#ffffff",align:"center",vadjust:0,multi:!1,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"monospace",vadjust:2}},group:void 0,hidden:!1,icon:{face:"FontAwesome",code:void 0,size:50,color:"#2B7CE9"},image:void 0,label:void 0,labelHighlightBold:!0,level:void 0,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:!0,scaling:{min:10,max:30,label:{enabled:!1,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(n,t,e,i){return t===n?.5:Math.max(0,1/(t-n)*(i-n))}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},shape:"ellipse",shapeProperties:{borderDashes:!1,borderRadius:6,interpolation:!0,useImageSize:!1,useBorderWithImage:!1},size:25,title:void 0,value:void 0,x:void 0,y:void 0},this.defaultOptions.mass<=0)throw"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative";this.options=r.bridgeObject(this.defaultOptions),this.bindEventListeners()}return(0,l.default)(n,[{key:"bindEventListeners",value:function(){var n=this;this.body.emitter.on("refreshNodes",this.refresh.bind(this)),this.body.emitter.on("refresh",this.refresh.bind(this)),this.body.emitter.on("destroy",function(){r.forEach(n.nodesListeners,function(t,e){n.body.data.nodes&&n.body.data.nodes.off(e,t)}),delete n.body.functions.createNode,delete n.nodesListeners.add,delete n.nodesListeners.update,delete n.nodesListeners.remove,delete n.nodesListeners})}},{key:"setOptions",value:function(n){if(void 0!==n){if(u.parseOptions(this.options,n),void 0!==n.shape)for(var t in this.body.nodes)this.body.nodes.hasOwnProperty(t)&&this.body.nodes[t].updateShape();if(void 0!==n.font)for(var e in this.body.nodes)this.body.nodes.hasOwnProperty(e)&&(this.body.nodes[e].updateLabelModule(),this.body.nodes[e].needsRefresh());if(void 0!==n.size)for(var i in this.body.nodes)this.body.nodes.hasOwnProperty(i)&&this.body.nodes[i].needsRefresh();void 0===n.hidden&&void 0===n.physics||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=this.body.data.nodes;if(n instanceof s||n instanceof a)this.body.data.nodes=n;else if(Array.isArray(n))this.body.data.nodes=new s,this.body.data.nodes.add(n);else{if(n)throw new TypeError("Array or DataSet expected");this.body.data.nodes=new s}if(e&&r.forEach(this.nodesListeners,function(n,t){e.off(t,n)}),this.body.nodes={},this.body.data.nodes){var i=this;r.forEach(this.nodesListeners,function(n,t){i.body.data.nodes.on(t,n)});var l=this.body.data.nodes.getIds();this.add(l,!0)}!1===t&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(n){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=void 0,i=[],l=0;l1&&void 0!==arguments[1]?arguments[1]:u)(n,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var n=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];r.forEach(this.body.nodes,function(e,i){var l=n.body.data.nodes.get(i);void 0!==l&&(!0===t&&e.setOptions({x:null,y:null}),e.setOptions({fixed:!1}),e.setOptions(l))})}},{key:"getPositions",value:function(n){var t={};if(void 0!==n){if(!0===Array.isArray(n)){for(var e=0;e0)for(var r=0;r0)for(var u=0;u0&&(t.push({text:this.buffer,mod:this.modName()}),this.buffer="")},add:function(n){" "===n&&(e.spacing=!0),e.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=n&&(this.buffer+=n)}};e.position/.test(n.substr(e.position,3))?e.mono||e.ital||!//.test(n.substr(e.position,3))?!e.mono&&//.test(n.substr(e.position,6))?(e.emitBlock(),e.mono=!0,e.modStack.unshift("mono"),e.position+=5):!e.mono&&"bold"===e.mod()&&/<\/b>/.test(n.substr(e.position,4))?(e.emitBlock(),e.bold=!1,e.modStack.shift(),e.position+=3):!e.mono&&"ital"===e.mod()&&/<\/i>/.test(n.substr(e.position,4))?(e.emitBlock(),e.ital=!1,e.modStack.shift(),e.position+=3):"mono"===e.mod()&&/<\/code>/.test(n.substr(e.position,7))?(e.emitBlock(),e.mono=!1,e.modStack.shift(),e.position+=6):e.add(i):(e.emitBlock(),e.ital=!0,e.modStack.unshift("ital"),e.position+=2):(e.emitBlock(),e.bold=!0,e.modStack.unshift("bold"),e.position+=2):/&/.test(i)?/</.test(n.substr(e.position,4))?(e.add("<"),e.position+=3):/&/.test(n.substr(e.position,5))?(e.add("&"),e.position+=4):e.add("&"):e.add(i),e.position++}return e.emitBlock(),t}},{key:"splitMarkdownBlocks",value:function(n){for(var t=[],e={bold:!1,ital:!1,mono:!1,beginable:!0,spacing:!1,position:0,buffer:"",modStack:[],mod:function(){return 0===this.modStack.length?"normal":this.modStack[0]},modName:function(){return 0===this.modStack.length?"normal":"mono"===this.modStack[0]?"mono":e.bold&&e.ital?"boldital":e.bold?"bold":e.ital?"ital":void 0},emitBlock:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(t.push({text:this.buffer,mod:this.modName()}),this.buffer="")},add:function(n){" "===n&&(e.spacing=!0),e.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=n&&(this.buffer+=n)}};e.positionthis.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(n){for(var t="",e=0;e1&&void 0!==arguments[1]?arguments[1]:"normal",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(n=(n=n.replace(/^( +)/g,"$1\r")).replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r")).split("\r");i.length>0;){var l=this.getLongestFit(i);if(0===l){var o=i[0],r=this.getLongestFitWord(o);this.lines.newLine(o.slice(0,r),t),i[0]=o.slice(r)}else{var s=l;" "===i[l-1]?l--:" "===i[s]&&s++;var a=i.slice(0,l).join("");l==i.length&&e?this.lines.append(a,t):this.lines.newLine(a,t),i=i.slice(s)}}}}]),n}();t.default=a},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=r(e(90)),l=r(e(0)),o=r(e(1));function r(n){return n&&n.__esModule?n:{default:n}}var s=function(){function n(t){(0,l.default)(this,n),this.measureText=t,this.current=0,this.width=0,this.height=0,this.lines=[]}return(0,o.default)(n,[{key:"_add",value:function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";void 0===this.lines[n]&&(this.lines[n]={width:0,height:0,blocks:[]});var l=t;void 0!==t&&""!==t||(l=" ");var o=this.measureText(l,e),r=(0,i.default)({},o.values);r.text=t,r.width=o.width,r.mod=e,void 0!==t&&""!==t||(r.width=0),this.lines[n].blocks.push(r),this.lines[n].width+=r.width}},{key:"curWidth",value:function(){var n=this.lines[this.current];return void 0===n?0:n.width}},{key:"append",value:function(n){this._add(this.current,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal")}},{key:"newLine",value:function(n){this._add(this.current,n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal"),this.current++}},{key:"determineLineHeights",value:function(){for(var n=0;nn&&(n=i.width),t+=i.height}this.width=n,this.height=t}},{key:"removeEmptyBlocks",value:function(){for(var n=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:this.selected,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(t,e)){var i=this.getDimensionsFromLabel(n,t,e);this.width=i.width+this.margin.right+this.margin.left,this.height=i.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(n,t,e,i,l,o){this.resize(n,i,l),this.left=t-this.width/2,this.top=e-this.height/2,this.initContextForDraw(n,o),n.roundRect(this.left,this.top,this.width,this.height,o.borderRadius),this.performFill(n,o),this.updateBoundingBox(t,e,n,i,l),this.labelModule.draw(n,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,i,l)}},{key:"updateBoundingBox",value:function(n,t,e,i,l){this._updateBoundingBox(n,t,e,i,l),this._addBoundingBoxMargin(this.options.shapeProperties.borderRadius)}},{key:"distanceToBorder",value:function(n,t){this.resize(n);var e=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(t)),Math.abs(this.height/2/Math.sin(t)))+e}}]),t}();t.default=c},function(n,t,e){e(195),n.exports=e(7).Object.getPrototypeOf},function(n,t,e){var i=e(41),l=e(85);e(87)("getPrototypeOf",function(){return function(n){return l(i(n))}})},function(n,t,e){n.exports={default:e(197),__esModule:!0}},function(n,t,e){e(198),n.exports=e(7).Object.setPrototypeOf},function(n,t,e){var i=e(17);i(i.S,"Object",{setPrototypeOf:e(199).set})},function(n,t,e){var i=e(32),l=e(27),o=function(n,t){if(l(n),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};n.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(n,t,i){try{(i=e(80)(Function.call,e(89).f(Object.prototype,"__proto__").set,2))(n,[]),t=!(n instanceof Array)}catch(n){t=!0}return function(n,e){return o(n,e),t?n.__proto__=e:i(n,e),n}}({},!1):void 0),check:o}},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(73));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){(0,l.default)(this,t);var s=(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o));return s._setMargins(o),s}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"resize",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(t,e)){var i=this.getDimensionsFromLabel(n,t,e),l=Math.max(i.width+this.margin.right+this.margin.left,i.height+this.margin.top+this.margin.bottom);this.options.size=l/2,this.width=l,this.height=l,this.radius=this.width/2}}},{key:"draw",value:function(n,t,e,i,l,o){this.resize(n,i,l),this.left=t-this.width/2,this.top=e-this.height/2,this._drawRawCircle(n,t,e,o),this.updateBoundingBox(t,e),this.labelModule.draw(n,this.left+this.textSize.width/2+this.margin.left,e,i,l)}},{key:"updateBoundingBox",value:function(n,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=n-this.options.size,this.boundingBox.right=n+this.options.size,this.boundingBox.bottom=t+this.options.size}},{key:"distanceToBorder",value:function(n,t){return this.resize(n),.5*this.width}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(73));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o,s,a){(0,l.default)(this,t);var u=(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o));return u.setImages(s,a),u}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"resize",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var i=2*this.options.size;return this.width=i,this.height=i,void(this.radius=.5*this.width)}this.needsRefresh(t,e)&&this._resizeImage()}},{key:"draw",value:function(n,t,e,i,l,o){this.switchImages(i),this.resize(),this.left=t-this.width/2,this.top=e-this.height/2,this._drawRawCircle(n,t,e,o),n.save(),n.clip(),this._drawImageAtPosition(n,o),n.restore(),this._drawImageLabel(n,t,e,i,l),this.updateBoundingBox(t,e)}},{key:"updateBoundingBox",value:function(n,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=n-this.options.size,this.boundingBox.right=n+this.options.size,this.boundingBox.bottom=t+this.options.size,this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(n,t){return this.resize(n),.5*this.width}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(23));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){(0,l.default)(this,t);var s=(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o));return s._setMargins(o),s}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"resize",value:function(n,t,e){if(this.needsRefresh(t,e)){var i=this.getDimensionsFromLabel(n,t,e).width+this.margin.right+this.margin.left;this.width=i,this.height=i,this.radius=this.width/2}}},{key:"draw",value:function(n,t,e,i,l,o){this.resize(n,i,l),this.left=t-this.width/2,this.top=e-this.height/2,this.initContextForDraw(n,o),n.database(t-this.width/2,e-this.height/2,this.width,this.height),this.performFill(n,o),this.updateBoundingBox(t,e,n,i,l),this.labelModule.draw(n,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,i,l)}},{key:"distanceToBorder",value:function(n,t){return this._distanceToBorder(n,t)}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(24));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){return(0,l.default)(this,t),(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o))}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"draw",value:function(n,t,e,i,l,o){this._drawShape(n,"diamond",4,t,e,i,l,o)}},{key:"distanceToBorder",value:function(n,t){return this._distanceToBorder(n,t)}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(24));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){return(0,l.default)(this,t),(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o))}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"draw",value:function(n,t,e,i,l,o){this._drawShape(n,"circle",2,t,e,i,l,o)}},{key:"distanceToBorder",value:function(n,t){return this.resize(n),this.options.size}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(23));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){return(0,l.default)(this,t),(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o))}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"resize",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(t,e)){var i=this.getDimensionsFromLabel(n,t,e);this.height=2*i.height,this.width=i.width+i.height,this.radius=.5*this.width}}},{key:"draw",value:function(n,t,e,i,l,o){this.resize(n,i,l),this.left=t-.5*this.width,this.top=e-.5*this.height,this.initContextForDraw(n,o),n.ellipse_vis(this.left,this.top,this.width,this.height),this.performFill(n,o),this.updateBoundingBox(t,e,n,i,l),this.labelModule.draw(n,t,e,i,l)}},{key:"distanceToBorder",value:function(n,t){this.resize(n);var e=.5*this.width,i=.5*this.height,l=Math.sin(t)*e,o=Math.cos(t)*i;return e*i/Math.sqrt(l*l+o*o)}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(23));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){(0,l.default)(this,t);var s=(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o));return s._setMargins(o),s}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"resize",value:function(n,t,e){this.needsRefresh(t,e)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(n,t,e,i,l,o){this.resize(n,i,l),this.options.icon.size=this.options.icon.size||50,this.left=t-this.width/2,this.top=e-this.height/2,this._icon(n,t,e,i,l,o),void 0!==this.options.label&&this.labelModule.draw(n,this.left+this.iconSize.width/2+this.margin.left,e+this.height/2+5,i),this.updateBoundingBox(t,e)}},{key:"updateBoundingBox",value:function(n,t){this.boundingBox.top=t-.5*this.options.icon.size,this.boundingBox.left=n-.5*this.options.icon.size,this.boundingBox.right=n+.5*this.options.icon.size,this.boundingBox.bottom=t+.5*this.options.icon.size,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+5))}},{key:"_icon",value:function(n,t,e,i,l,o){var r=Number(this.options.icon.size);void 0!==this.options.icon.code?(n.font=(i?"bold ":"")+r+"px "+this.options.icon.face,n.fillStyle=this.options.icon.color||"black",n.textAlign="center",n.textBaseline="middle",this.enableShadow(n,o),n.fillText(this.options.icon.code,t,e),this.disableShadow(n,o)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(n,t){return this._distanceToBorder(n,t)}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(73));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o,s,a){(0,l.default)(this,t);var u=(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o));return u.setImages(s,a),u}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"resize",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var i=2*this.options.size;return this.width=i,void(this.height=i)}this.needsRefresh(t,e)&&this._resizeImage()}},{key:"draw",value:function(n,t,e,i,l,o){this.switchImages(i),this.resize(),this.left=t-this.width/2,this.top=e-this.height/2,!0===this.options.shapeProperties.useBorderWithImage&&(n.lineWidth=Math.min(this.width,(i?this.options.borderWidthSelected||2*this.options.borderWidth:this.options.borderWidth)/this.body.view.scale),n.beginPath(),n.strokeStyle=i?this.options.color.highlight.border:l?this.options.color.hover.border:this.options.color.border,n.fillStyle=i?this.options.color.highlight.background:l?this.options.color.hover.background:this.options.color.background,n.rect(this.left-.5*n.lineWidth,this.top-.5*n.lineWidth,this.width+n.lineWidth,this.height+n.lineWidth),n.fill(),this.performStroke(n,o),n.closePath()),this._drawImageAtPosition(n,o),this._drawImageLabel(n,t,e,i,l),this.updateBoundingBox(t,e)}},{key:"updateBoundingBox",value:function(n,t){this.resize(),this._updateBoundingBox(n,t),void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(n,t){return this._distanceToBorder(n,t)}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(24));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){return(0,l.default)(this,t),(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o))}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"draw",value:function(n,t,e,i,l,o){this._drawShape(n,"square",2,t,e,i,l,o)}},{key:"distanceToBorder",value:function(n,t){return this._distanceToBorder(n,t)}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(24));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){return(0,l.default)(this,t),(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o))}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"draw",value:function(n,t,e,i,l,o){this._drawShape(n,"hexagon",4,t,e,i,l,o)}},{key:"distanceToBorder",value:function(n,t){return this._distanceToBorder(n,t)}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(24));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){return(0,l.default)(this,t),(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o))}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"draw",value:function(n,t,e,i,l,o){this._drawShape(n,"star",4,t,e,i,l,o)}},{key:"distanceToBorder",value:function(n,t){return this._distanceToBorder(n,t)}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(23));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){(0,l.default)(this,t);var s=(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o));return s._setMargins(o),s}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"resize",value:function(n,t,e){this.needsRefresh(t,e)&&(this.textSize=this.labelModule.getTextSize(n,t,e),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(n,t,e,i,l,o){this.resize(n,i,l),this.left=t-this.width/2,this.top=e-this.height/2,this.enableShadow(n,o),this.labelModule.draw(n,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,i,l),this.disableShadow(n,o),this.updateBoundingBox(t,e,n,i,l)}},{key:"distanceToBorder",value:function(n,t){return this._distanceToBorder(n,t)}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(24));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){return(0,l.default)(this,t),(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o))}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"draw",value:function(n,t,e,i,l,o){this._drawShape(n,"triangle",3,t,e,i,l,o)}},{key:"distanceToBorder",value:function(n,t){return this._distanceToBorder(n,t)}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(24));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){return(0,l.default)(this,t),(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o))}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"draw",value:function(n,t,e,i,l,o){this._drawShape(n,"triangleDown",3,t,e,i,l,o)}},{key:"distanceToBorder",value:function(n,t){return this._distanceToBorder(n,t)}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=o(e(0)),l=o(e(1));function o(n){return n&&n.__esModule?n:{default:n}}var r=e(2),s=e(11),a=e(12),u=e(74).default,c=function(){function n(t,e,l){var o=this;(0,i.default)(this,n),this.body=t,this.images=e,this.groups=l,this.body.functions.createEdge=this.create.bind(this),this.edgesListeners={add:function(n,t){o.add(t.items)},update:function(n,t){o.update(t.items)},remove:function(n,t){o.remove(t.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(n,t,e,i){return t===n?.5:Math.max(0,1/(t-n)*(i-n))}},selectionWidth:1.5,selfReferenceSize:20,shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},r.deepExtend(this.options,this.defaultOptions),this.bindEventListeners()}return(0,l.default)(n,[{key:"bindEventListeners",value:function(){var n=this;this.body.emitter.on("_forceDisableDynamicCurves",function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"dynamic"===t&&(t="continuous");var i=!1;for(var l in n.body.edges)if(n.body.edges.hasOwnProperty(l)){var o=n.body.data.edges._data[l];if(void 0!==o){var r=o.smooth;void 0!==r&&!0===r.enabled&&"dynamic"===r.type&&(n.body.edges[l].setOptions(void 0===t?{smooth:!1}:{smooth:{type:t}}),i=!0)}}!0===e&&!0===i&&n.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){n.reconnectEdges()}),this.body.emitter.on("refreshEdges",this.refresh.bind(this)),this.body.emitter.on("refresh",this.refresh.bind(this)),this.body.emitter.on("destroy",function(){r.forEach(n.edgesListeners,function(t,e){n.body.data.edges&&n.body.data.edges.off(e,t)}),delete n.body.functions.createEdge,delete n.edgesListeners.add,delete n.edgesListeners.update,delete n.edgesListeners.remove,delete n.edgesListeners})}},{key:"setOptions",value:function(n){if(void 0!==n){u.parseOptions(this.options,n,!0,this.defaultOptions,!0);var t=!1;if(void 0!==n.smooth)for(var e in this.body.edges)this.body.edges.hasOwnProperty(e)&&(t=this.body.edges[e].updateEdgeType()||t);if(void 0!==n.font)for(var i in this.body.edges)this.body.edges.hasOwnProperty(i)&&this.body.edges[i].updateLabelModule();void 0===n.hidden&&void 0===n.physics&&!0!==t||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(n){var t=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.data.edges;if(n instanceof s||n instanceof a)this.body.data.edges=n;else if(Array.isArray(n))this.body.data.edges=new s,this.body.data.edges.add(n);else{if(n)throw new TypeError("Array or DataSet expected");this.body.data.edges=new s}if(i&&r.forEach(this.edgesListeners,function(n,t){i.off(t,n)}),this.body.edges={},this.body.data.edges){r.forEach(this.edgesListeners,function(n,e){t.body.data.edges.on(e,n)});var l=this.body.data.edges.getIds();this.add(l,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),!1===e&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(n){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=this.body.edges,i=this.body.data.edges,l=0;l1&&void 0!==arguments[1])||arguments[1];if(0!==n.length){var e=this.body.edges;r.forEach(n,function(n){var t=e[n];void 0!==t&&t.remove()}),t&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var n=this;r.forEach(this.body.edges,function(t,e){var i=n.body.data.edges._data[e];void 0!==i&&t.setOptions(i)})}},{key:"create",value:function(n){return new u(n,this.body,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var n,t=this.body.nodes,e=this.body.edges;for(n in t)t.hasOwnProperty(n)&&(t[n].edges=[]);for(n in e)if(e.hasOwnProperty(n)){var i=e[n];i.from=null,i.to=null,i.connect()}}},{key:"getConnectedNodes",value:function(n){var t=[];if(void 0!==this.body.edges[n]){var e=this.body.edges[n];void 0!==e.fromId&&t.push(e.fromId),void 0!==e.toId&&t.push(e.toId)}return t}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var n=this,t=[];r.forEach(this.body.edges,function(e,i){var l=n.body.nodes[e.toId],o=n.body.nodes[e.fromId];void 0!==l&&!0===l.isCluster||void 0!==o&&!0===o.isCluster||void 0!==l&&void 0!==o||t.push(i)}),this.remove(t,!1)}},{key:"_addMissingEdges",value:function(){var n=this.body.edges,t=[];this.body.data.edges.forEach(function(e,i){void 0===n[i]&&t.push(i)}),this.add(t,!0)}}]),n}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=c(e(30)),l=c(e(3)),o=c(e(0)),r=c(e(1)),s=c(e(4)),a=c(e(5)),u=c(e(216));function c(n){return n&&n.__esModule?n:{default:n}}var h=function(n){function t(n,e,i){return(0,o.default)(this,t),(0,s.default)(this,(t.__proto__||(0,l.default)(t)).call(this,n,e,i))}return(0,a.default)(t,u.default),(0,r.default)(t,[{key:"_line",value:function(n,t,e){this._bezierCurve(n,t,e[0],e[1])}},{key:"_getViaCoordinates",value:function(){var n=this.from.x-this.to.x,t=this.from.y-this.to.y,e=void 0,i=void 0,l=void 0,o=void 0,r=this.options.smooth.roundness;return(Math.abs(n)>Math.abs(t)||!0===this.options.smooth.forceDirection||"horizontal"===this.options.smooth.forceDirection)&&"vertical"!==this.options.smooth.forceDirection?(i=this.from.y,o=this.to.y,e=this.from.x-r*n,l=this.to.x+r*n):(i=this.from.y-r*t,o=this.to.y+r*t,e=this.from.x,l=this.to.x),[{x:e,y:i},{x:l,y:o}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(n,t){return this._findBorderPositionBezier(n,t)}},{key:"_getDistanceToEdge",value:function(n,t,e,l,o,r){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates(),a=(0,i.default)(s,2);return this._getDistanceToBezierEdge(n,t,e,l,o,r,a[0],a[1])}},{key:"getPoint",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),e=(0,i.default)(t,2),l=e[0],o=e[1],r=n,s=[];return s[0]=Math.pow(1-r,3),s[1]=3*r*Math.pow(1-r,2),s[2]=3*Math.pow(r,2)*(1-r),s[3]=Math.pow(r,3),{x:s[0]*this.fromPoint.x+s[1]*l.x+s[2]*o.x+s[3]*this.toPoint.x,y:s[0]*this.fromPoint.y+s[1]*l.y+s[2]*o.y+s[3]*this.toPoint.y}}}]),t}();t.default=h},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(75));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){return(0,l.default)(this,t),(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o))}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"_getDistanceToBezierEdge",value:function(n,t,e,i,l,o,r,s){var a=1e9,u=void 0,c=void 0,h=void 0,d=void 0,p=void 0,f=n,_=t,m=[0,0,0,0];for(c=1;c<10;c++)h=.1*c,m[0]=Math.pow(1-h,3),m[1]=3*h*Math.pow(1-h,2),m[2]=3*Math.pow(h,2)*(1-h),m[3]=Math.pow(h,3),d=m[0]*n+m[1]*r.x+m[2]*s.x+m[3]*e,p=m[0]*t+m[1]*r.y+m[2]*s.y+m[3]*i,c>0&&(a=(u=this._getDistanceToLine(f,_,d,p,l,o))1&&void 0!==arguments[1]?arguments[1]:this.via,e=n,l=void 0,o=void 0;if(this.from===this.to){var r=this._getCircleData(this.from),s=(0,i.default)(r,3),a=s[1],u=s[2],c=2*Math.PI*(1-e);l=s[0]+u*Math.sin(c),o=a+u-u*(1-Math.cos(c))}else l=Math.pow(1-e,2)*this.fromPoint.x+2*e*(1-e)*t.x+Math.pow(e,2)*this.toPoint.x,o=Math.pow(1-e,2)*this.fromPoint.y+2*e*(1-e)*t.y+Math.pow(e,2)*this.toPoint.y;return{x:l,y:o}}},{key:"_findBorderPosition",value:function(n,t){return this._findBorderPositionBezier(n,t,this.via)}},{key:"_getDistanceToEdge",value:function(n,t,e,i,l,o){return this._getDistanceToBezierEdge(n,t,e,i,l,o,this.via)}}]),t}();t.default=h},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(75));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){return(0,l.default)(this,t),(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o))}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"_line",value:function(n,t,e){this._bezierCurve(n,t,e)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var n=void 0,t=void 0,e=this.options.smooth.roundness,i=this.options.smooth.type,l=Math.abs(this.from.x-this.to.x),o=Math.abs(this.from.y-this.to.y);if("discrete"===i||"diagonalCross"===i){var r=void 0,s=void 0;r=s=l<=o?e*o:e*l,this.from.x>this.to.x&&(r=-r),this.from.y>=this.to.y&&(s=-s),n=this.from.x+r,t=this.from.y+s,"discrete"===i&&(l<=o?n=lthis.to.x&&(v=-v),this.from.y>=this.to.y&&(y=-y),n=this.from.x+v,t=this.from.y+y,l<=o?n=this.from.x<=this.to.x?this.to.xn?this.to.x:n:t=this.from.y>=this.to.y?this.to.y>t?this.to.y:t:this.to.y2&&void 0!==arguments[2]?arguments[2]:{}).via)}},{key:"_getDistanceToEdge",value:function(n,t,e,i,l,o){var r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(n,t,e,i,l,o,r)}},{key:"getPoint",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),e=n;return{x:Math.pow(1-e,2)*this.fromPoint.x+2*e*(1-e)*t.x+Math.pow(e,2)*this.toPoint.x,y:Math.pow(1-e,2)*this.fromPoint.y+2*e*(1-e)*t.y+Math.pow(e,2)*this.toPoint.y}}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=u(e(3)),l=u(e(0)),o=u(e(1)),r=u(e(4)),s=u(e(5)),a=u(e(118));function u(n){return n&&n.__esModule?n:{default:n}}var c=function(n){function t(n,e,o){return(0,l.default)(this,t),(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o))}return(0,s.default)(t,a.default),(0,o.default)(t,[{key:"_line",value:function(n,t){n.beginPath(),n.moveTo(this.fromPoint.x,this.fromPoint.y),n.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(n,t),n.stroke(),this.disableShadow(n,t)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(n){return{x:(1-n)*this.fromPoint.x+n*this.toPoint.x,y:(1-n)*this.fromPoint.y+n*this.toPoint.y}}},{key:"_findBorderPosition",value:function(n,t){var e=this.to,i=this.from;n.id===this.from.id&&(e=this.from,i=this.to);var l=Math.atan2(e.y-i.y,e.x-i.x),o=e.x-i.x,r=e.y-i.y,s=Math.sqrt(o*o+r*r),a=(s-n.distanceToBorder(t,l))/s,u={};return u.x=(1-a)*i.x+a*e.x,u.y=(1-a)*i.y+a*e.y,u}},{key:"_getDistanceToEdge",value:function(n,t,e,i,l,o){return this._getDistanceToLine(n,t,e,i,l,o)}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=r(e(8)),l=r(e(0)),o=r(e(1));function r(n){return n&&n.__esModule?n:{default:n}}var s=e(120).default,a=e(221).default,u=e(222).default,c=e(223).default,h=e(224).default,d=e(121).default,p=e(225).default,f=e(226).default,_=e(2),m=e(119).default,g=function(){function n(t){(0,l.default)(this,n),this.body=t,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0},_.extend(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return(0,o.default)(n,[{key:"bindEventListeners",value:function(){var n=this;this.body.emitter.on("initPhysics",function(){n.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){n.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){n.stopSimulation(),n.ready=!1}),this.body.emitter.on("disablePhysics",function(){n.physicsEnabled=!1,n.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){n.setOptions(n.options),!0===n.ready&&n.startSimulation()}),this.body.emitter.on("startSimulation",function(){!0===n.ready&&n.startSimulation()}),this.body.emitter.on("stopSimulation",function(){n.stopSimulation()}),this.body.emitter.on("destroy",function(){n.stopSimulation(!1),n.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){n.updatePhysicsData()})}},{key:"setOptions",value:function(n){void 0!==n&&(!1===n?(this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation()):!0===n?(this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation()):(this.physicsEnabled=!0,_.selectiveNotDeepExtend(["stabilization"],this.options,n),_.mergeOptions(this.options,n,"stabilization"),void 0===n.enabled&&(this.options.enabled=!0),!1===this.options.enabled&&(this.physicsEnabled=!1,this.stopSimulation()),this.timestep=this.options.timestep)),this.init()}},{key:"init",value:function(){var n;"forceAtlas2Based"===this.options.solver?(this.nodesSolver=new p(this.body,this.physicsBody,n=this.options.forceAtlas2Based),this.edgesSolver=new c(this.body,this.physicsBody,n),this.gravitySolver=new f(this.body,this.physicsBody,n)):"repulsion"===this.options.solver?(this.nodesSolver=new a(this.body,this.physicsBody,n=this.options.repulsion),this.edgesSolver=new c(this.body,this.physicsBody,n),this.gravitySolver=new d(this.body,this.physicsBody,n)):"hierarchicalRepulsion"===this.options.solver?(this.nodesSolver=new u(this.body,this.physicsBody,n=this.options.hierarchicalRepulsion),this.edgesSolver=new h(this.body,this.physicsBody,n),this.gravitySolver=new d(this.body,this.physicsBody,n)):(this.nodesSolver=new s(this.body,this.physicsBody,n=this.options.barnesHut),this.edgesSolver=new c(this.body,this.physicsBody,n),this.gravitySolver=new d(this.body,this.physicsBody,n)),this.modelOptions=n}},{key:"initPhysics",value:function(){!0===this.physicsEnabled&&!0===this.options.enabled?!0===this.options.stabilization.enabled?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){!0===this.physicsEnabled&&!0===this.options.enabled?(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),void 0===this.viewFunction&&(this.viewFunction=this.simulationStep.bind(this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))):this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stabilized=!0,!0===n&&this._emitStabilized(),void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,!0===n&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var n=Date.now();this.physicsTick(),(Date.now()-n<.4*this.simulationInterval||!0===this.runDoubleSpeed)&&!1===this.stabilized&&(this.physicsTick(),this.runDoubleSpeed=!0),!0===this.stabilized&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var n=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||!0===this.startedStabilization)&&setTimeout(function(){n.body.emitter.emit("stabilized",{iterations:t}),n.startedStabilization=!1,n.stabilizationIterations=0},0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){!0===this._evaluateStepQuality()?this.timestep=1.2*this.timestep:this.timestep/1.2.3))return!1;return!0}},{key:"moveNodes",value:function(){for(var n=this.physicsBody.physicsNodeIndices,t=0,e=0,i=0;ii&&(n=n>0?i:-i),n}},{key:"_performStep",value:function(n){var t=this.body.nodes[n],e=this.physicsBody.forces[n],i=this.physicsBody.velocities[n];return this.previousStates[n]={x:t.x,y:t.y,vx:i.x,vy:i.y},!1===t.options.fixed.x?(i.x=this.calculateComponentVelocity(i.x,e.x,t.options.mass),t.x+=i.x*this.timestep):(e.x=0,i.x=0),!1===t.options.fixed.y?(i.y=this.calculateComponentVelocity(i.y,e.y,t.options.mass),t.y+=i.y*this.timestep):(e.y=0,i.y=0),Math.sqrt(Math.pow(i.x,2)+Math.pow(i.y,2))}},{key:"_freezeNodes",value:function(){var n=this.body.nodes;for(var t in n)if(n.hasOwnProperty(t)&&n[t].x&&n[t].y){var e=n[t].options.fixed;this.freezeCache[t]={x:e.x,y:e.y},e.x=!0,e.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var n=this.body.nodes;for(var t in n)n.hasOwnProperty(t)&&void 0!==this.freezeCache[t]&&(n[t].options.fixed.x=this.freezeCache[t].x,n[t].options.fixed.y=this.freezeCache[t].y);this.freezeCache={}}},{key:"stabilize",value:function(){var n=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.stabilization.iterations;"number"!=typeof t&&(t=this.options.stabilization.iterations,console.log("The stabilize method needs a numeric amount of iterations. Switching to default: ",t)),0!==this.physicsBody.physicsNodeIndices.length?(this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=t,!0===this.options.stabilization.onlyDynamicEdges&&this._freezeNodes(),this.stabilizationIterations=0,setTimeout(function(){return n._stabilizationBatch()},0)):this.ready=!0}},{key:"_startStabilizing",value:function(){return!0!==this.startedStabilization&&(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var n=this,t=function(){return!1===n.stabilized&&n.stabilizationIterations0){var o=this.options.centralGravity*(l.edges.length+1)*l.options.mass;i[l.id].x=t*o,i[l.id].y=e*o}}}]),t}();t.default=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=s(e(8)),l=s(e(6)),o=s(e(0)),r=s(e(1));function s(n){return n&&n.__esModule?n:{default:n}}var a=e(2),u=e(76).default,c=e(228).default,h=e(74).default,d=e(47).default,p=function(){function n(t){var e=this;(0,o.default)(this,n),this.body=t,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},a.extend(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){e.clusteredNodes={},e.clusteredEdges={}})}return(0,r.default)(n,[{key:"clusterByHubsize",value:function(n,t){void 0===n?n=this._getHubSize():"object"===("undefined"==typeof n?"undefined":(0,l.default)(n))&&(t=this._checkOptions(n),n=this._getHubSize());for(var e=[],i=0;i=n&&e.push(o.id)}for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===t.joinCondition)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");t=this._checkOptions(t);var i={},l={};a.forEach(this.body.nodes,function(e,o){var r=u.cloneOptions(e);!0===t.joinCondition(r)&&(i[o]=e,a.forEach(e.edges,function(t){void 0===n.clusteredEdges[t.id]&&(l[t.id]=t)}))}),this._cluster(i,l,t,e)}},{key:"clusterByEdgeCount",value:function(n,t){var e=this,l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t=this._checkOptions(t);for(var o=[],r={},s=void 0,a=void 0,c=void 0,h=function(l){var h={},d={},_=e.body.nodeIndices[l],m=e.body.nodes[_];if(void 0===r[_]){c=0,a=[];for(var g=0;g0&&(0,i.default)(d).length>0&&!0===v)if(void 0!==(f=function(){for(var n=0;n1&&void 0!==arguments[1])||arguments[1])}},{key:"clusterBridges",value:function(n){this.clusterByEdgeCount(2,n,!(arguments.length>1&&void 0!==arguments[1])||arguments[1])}},{key:"clusterByConnection",value:function(n,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===n)throw new Error("No nodeId supplied to clusterByConnection!");if(void 0===this.body.nodes[n])throw new Error("The nodeId given to clusterByConnection does not exist!");var l=this.body.nodes[n];void 0===(t=this._checkOptions(t,l)).clusterNodeProperties.x&&(t.clusterNodeProperties.x=l.x),void 0===t.clusterNodeProperties.y&&(t.clusterNodeProperties.y=l.y),void 0===t.clusterNodeProperties.fixed&&(t.clusterNodeProperties.fixed={},t.clusterNodeProperties.fixed.x=l.options.fixed.x,t.clusterNodeProperties.fixed.y=l.options.fixed.y);var o={},r={},s=l.id,a=u.cloneOptions(l);o[s]=l;for(var c=0;c-1&&(r[g.id]=g)}this._cluster(o,r,t,e)}},{key:"_createClusterEdges",value:function(n,t,e,l){for(var o=void 0,r=void 0,s=void 0,a=void 0,u=void 0,c=void 0,h=(0,i.default)(n),d=[],p=0;p0&&void 0!==arguments[0]?arguments[0]:{};return void 0===n.clusterEdgeProperties&&(n.clusterEdgeProperties={}),void 0===n.clusterNodeProperties&&(n.clusterNodeProperties={}),n}},{key:"_cluster",value:function(n,t,e){var l=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=[];for(var r in n)n.hasOwnProperty(r)&&void 0!==this.clusteredNodes[r]&&o.push(r);for(var s=0;sl?s.x:l,o=s.yr?s.y:r;return{x:.5*(e+l),y:.5*(o+r)}}},{key:"openCluster",value:function(n,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===n)throw new Error("No clusterNodeId supplied to openCluster.");var i=this.body.nodes[n];if(void 0===i)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(!0!==i.isCluster||void 0===i.containedNodes||void 0===i.containedEdges)throw new Error("The node:"+n+" is not a valid cluster.");var l=this.findNode(n),o=l.indexOf(n)-1;if(o>=0)return this.body.nodes[l[o]]._openChildCluster(n),delete this.body.nodes[n],void(!0===e&&this.body.emitter.emit("_dataChanged"));var r=i.containedNodes,s=i.containedEdges;if(void 0!==t&&void 0!==t.releaseFunction&&"function"==typeof t.releaseFunction){var u={},c={x:i.x,y:i.y};for(var h in r)if(r.hasOwnProperty(h)){var d=this.body.nodes[h];u[h]={x:d.x,y:d.y}}var p=t.releaseFunction(c,u);for(var f in r)if(r.hasOwnProperty(f)){var _=this.body.nodes[f];void 0!==p[f]&&(_.x=void 0===p[f].x?i.x:p[f].x,_.y=void 0===p[f].y?i.y:p[f].y)}}else a.forEach(r,function(n){!1===n.options.fixed.x&&(n.x=i.x),!1===n.options.fixed.y&&(n.y=i.y)});for(var m in r)if(r.hasOwnProperty(m)){var g=this.body.nodes[m];g.vx=i.vx,g.vy=i.vy,g.setOptions({physics:!0}),delete this.clusteredNodes[m]}for(var v=[],y=0;y0&&l<100;){var o=t.pop();if(void 0!==o){var r=this.body.edges[o];if(void 0!==r){l++;var s=r.clusteringEdgeReplacingIds;if(void 0===s)i.push(o);else for(var a=0;ai&&(i=o.edges.length),n+=o.edges.length,t+=Math.pow(o.edges.length,2),e+=1}n/=e;var r=(t/=e)-Math.pow(n,2),s=Math.sqrt(r),a=Math.floor(n+2*s);return a>i&&(a=i),a}},{key:"_createClusteredEdge",value:function(n,t,e,i,l){var o=u.cloneOptions(e,"edge");a.deepExtend(o,i),o.from=n,o.to=t,o.id="clusterEdge:"+a.randomUUID(),void 0!==l&&a.deepExtend(o,l);var r=this.body.functions.createEdge(o);return r.clusteringEdgeReplacingIds=[e.id],r.connect(),this.body.edges[r.id]=r,r}},{key:"_clusterEdges",value:function(n,t,e,i){if(t instanceof h){var l={};l[t.id]=t,t=l}if(n instanceof d){var o={};o[n.id]=n,n=o}if(void 0===e||null===e)throw new Error("_clusterEdges: parameter clusterNode required");for(var r in void 0===i&&(i=e.clusterEdgeProperties),this._createClusterEdges(n,t,e,i),t)if(t.hasOwnProperty(r)&&void 0!==this.body.edges[r]){var s=this.body.edges[r];this._backupEdgeOptions(s),s.setOptions({physics:!1})}for(var a in n)n.hasOwnProperty(a)&&(this.clusteredNodes[a]={clusterId:e.id,node:this.body.nodes[a]},this.body.nodes[a].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(n){if(void 0!==n){var t=this.clusteredNodes[n];if(void 0!==t){var e=t.clusterId;if(void 0!==e)return this.body.nodes[e]}}}},{key:"_filter",value:function(n,t){var e=[];return a.forEach(n,function(n){t(n)&&e.push(n)}),e}},{key:"_updateState",value:function(){var n=this,t=void 0,e=[],l=[],o=function(t){a.forEach(n.body.nodes,function(n){!0===n.isCluster&&t(n)})};for(t in this.clusteredNodes)this.clusteredNodes.hasOwnProperty(t)&&void 0===this.body.nodes[t]&&e.push(t);o(function(n){for(var t=0;t0}t.endPointsValid()&&i||l.push(e)}),o(function(t){a.forEach(l,function(e){delete t.containedEdges[e],a.forEach(t.edges,function(i,o){i.id!==e?i.clusteringEdgeReplacingIds=n._filter(i.clusteringEdgeReplacingIds,function(n){return-1===l.indexOf(n)}):t.edges[o]=null}),t.edges=n._filter(t.edges,function(n){return null!==n})})}),a.forEach(l,function(t){delete n.clusteredEdges[t]}),a.forEach(l,function(t){delete n.body.edges[t]});var s=(0,i.default)(this.body.edges);a.forEach(s,function(t){var e=n.body.edges[t],i=n._isClusteredNode(e.fromId)||n._isClusteredNode(e.toId);if(i!==n._isClusteredEdge(e.id)){if(!i)throw new Error("remove edge from clustering not implemented!");var l=n._getClusterNodeForNode(e.fromId);void 0!==l&&n._clusterEdges(n.body.nodes[e.fromId],e,l);var o=n._getClusterNodeForNode(e.toId);void 0!==o&&n._clusterEdges(n.body.nodes[e.toId],e,o)}});for(var u=!1,c=!0,h=function(){var t=[];o(function(n){var e=(0,i.default)(n.containedNodes).length,l=!0===n.options.allowSingleNodeCluster;(l&&e<1||!l&&e<2)&&t.push(n.id)});for(var e=0;e0,u=u||c};c;)h();u&&this._updateState()}},{key:"_isClusteredNode",value:function(n){return void 0!==this.clusteredNodes[n]}},{key:"_isClusteredEdge",value:function(n){return void 0!==this.clusteredEdges[n]}}]),n}();t.default=p},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=a(e(3)),l=a(e(0)),o=a(e(1)),r=a(e(4)),s=a(e(5));function a(n){return n&&n.__esModule?n:{default:n}}var u=e(2),c=e(47).default,h=function(n){function t(n,e,o,s,a,u){(0,l.default)(this,t);var c=(0,r.default)(this,(t.__proto__||(0,i.default)(t)).call(this,n,e,o,s,a,u));return c.isCluster=!0,c.containedNodes={},c.containedEdges={},c}return(0,s.default)(t,c),(0,o.default)(t,[{key:"_openChildCluster",value:function(n){var t=this,e=this.body.nodes[n];if(void 0===this.containedNodes[n])throw new Error("node with id: "+n+" not in current cluster");if(!e.isCluster)throw new Error("node with id: "+n+" is not a cluster");delete this.containedNodes[n],u.forEach(e.edges,function(n){delete t.containedEdges[n.id]}),u.forEach(e.containedNodes,function(n,e){t.containedNodes[e]=n}),e.containedNodes={},u.forEach(e.containedEdges,function(n,e){t.containedEdges[e]=n}),e.containedEdges={},u.forEach(e.edges,function(n){u.forEach(t.edges,function(e){var i=e.clusteringEdgeReplacingIds.indexOf(n.id);-1!==i&&(u.forEach(n.clusteringEdgeReplacingIds,function(n){e.clusteringEdgeReplacingIds.push(n),t.body.edges[n].edgeReplacedById=e.id}),e.clusteringEdgeReplacingIds.splice(i,1))})}),e.edges=[]}}]),t}();t.default=h},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=o(e(0)),l=o(e(1));function o(n){return n&&n.__esModule?n:{default:n}}var r=e(2),s=function(){function n(t,e){var l;(0,i.default)(this,n),void 0!==window&&(l=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),window.requestAnimationFrame=void 0===l?function(n){n()}:l,this.body=t,this.canvas=e,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideNodesOnDrag:!1},r.extend(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return(0,l.default)(n,[{key:"bindEventListeners",value:function(){var n=this;this.body.emitter.on("dragStart",function(){n.dragging=!0}),this.body.emitter.on("dragEnd",function(){n.dragging=!1}),this.body.emitter.on("_resizeNodes",function(){n._resizeNodes()}),this.body.emitter.on("_redraw",function(){!1===n.renderingActive&&n._redraw()}),this.body.emitter.on("_blockRedraw",function(){n.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",function(){n.allowRedraw=!0,n.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",this._requestRedraw.bind(this)),this.body.emitter.on("_startRendering",function(){n.renderRequests+=1,n.renderingActive=!0,n._startRendering()}),this.body.emitter.on("_stopRendering",function(){n.renderRequests-=1,n.renderingActive=n.renderRequests>0,n.renderTimer=void 0}),this.body.emitter.on("destroy",function(){n.renderRequests=0,n.allowRedraw=!1,n.renderingActive=!1,!0===n.requiresTimeout?clearTimeout(n.renderTimer):window.cancelAnimationFrame(n.renderTimer),n.body.emitter.off()})}},{key:"setOptions",value:function(n){void 0!==n&&r.selectiveDeepExtend(["hideEdgesOnDrag","hideNodesOnDrag"],this.options,n)}},{key:"_requestNextFrame",value:function(n,t){if("undefined"!=typeof window){var e=void 0,i=window;return!0===this.requiresTimeout?e=i.setTimeout(n,t):i.requestAnimationFrame&&(e=i.requestAnimationFrame(n)),e}}},{key:"_startRendering",value:function(){!0===this.renderingActive&&void 0===this.renderTimer&&(this.renderTimer=this._requestNextFrame(this._renderStep.bind(this),this.simulationInterval))}},{key:"_renderStep",value:function(){!0===this.renderingActive&&(this.renderTimer=void 0,!0===this.requiresTimeout&&this._startRendering(),this._redraw(),!1===this.requiresTimeout&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var n=this;!0!==this.redrawRequested&&!1===this.renderingActive&&!0===this.allowRedraw&&(this.redrawRequested=!0,this._requestNextFrame(function(){n._redraw(!1)},0))}},{key:"_redraw",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!0===this.allowRedraw){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1,0!==this.canvas.frame.canvas.width&&0!==this.canvas.frame.canvas.height||this.canvas.setSize(),this.canvas.setTransform();var t=this.canvas.getContext(),e=this.canvas.frame.canvas.clientWidth,i=this.canvas.frame.canvas.clientHeight;if(t.clearRect(0,0,e,i),0===this.canvas.frame.clientWidth)return;t.save(),t.translate(this.body.view.translation.x,this.body.view.translation.y),t.scale(this.body.view.scale,this.body.view.scale),t.beginPath(),this.body.emitter.emit("beforeDrawing",t),t.closePath(),!1===n&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&this._drawEdges(t),(!1===this.dragging||!0===this.dragging&&!1===this.options.hideNodesOnDrag)&&this._drawNodes(t,n),t.beginPath(),this.body.emitter.emit("afterDrawing",t),t.closePath(),t.restore(),!0===n&&t.clearRect(0,0,e,i)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var n=this.canvas.getContext();n.save(),n.translate(this.body.view.translation.x,this.body.view.translation.y),n.scale(this.body.view.scale,this.body.view.scale);var t=this.body.nodes,e=void 0;for(var i in t)t.hasOwnProperty(i)&&((e=t[i]).resize(n),e.updateBoundingBox(n,e.selected));n.restore()}},{key:"_drawNodes",value:function(n){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=this.body.nodes,i=this.body.nodeIndices,l=void 0,o=[],r=this.canvas.DOMtoCanvas({x:-20,y:-20}),s=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+20,y:this.canvas.frame.canvas.clientHeight+20}),a={top:r.y,left:r.x,bottom:s.y,right:s.x},u=0;u0&&void 0!==arguments[0]?arguments[0]:this.pixelRatio;!0===this.initialized&&(this.cameraState.previousWidth=this.frame.canvas.width/n,this.cameraState.previousHeight=this.frame.canvas.height/n,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/n,y:.5*this.frame.canvas.height/n}))}},{key:"_setCameraState",value:function(){if(void 0!==this.cameraState.scale&&0!==this.frame.canvas.clientWidth&&0!==this.frame.canvas.clientHeight&&0!==this.pixelRatio&&this.cameraState.previousWidth>0){var n=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,t=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,e=this.cameraState.scale;1!=n&&1!=t?e=.5*this.cameraState.scale*(n+t):1!=n?e=this.cameraState.scale*n:1!=t&&(e=this.cameraState.scale*t),this.body.view.scale=e;var i=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),l={x:i.x-this.cameraState.position.x,y:i.y-this.cameraState.position.y};this.body.view.translation.x+=l.x*this.body.view.scale,this.body.view.translation.y+=l.y*this.body.view.scale}}},{key:"_prepareValue",value:function(n){if("number"==typeof n)return n+"px";if("string"==typeof n){if(-1!==n.indexOf("%")||-1!==n.indexOf("px"))return n;if(-1===n.indexOf("%"))return n+"px"}throw new Error("Could not use the value supplied for width or height:"+n)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=900,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var n=document.createElement("DIV");n.style.color="red",n.style.fontWeight="bold",n.style.padding="10px",n.innerHTML="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(n)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var n=this;void 0!==this.hammer&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new r(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:r.DIRECTION_ALL}),s.onTouch(this.hammer,function(t){n.body.eventListeners.onTouch(t)}),this.hammer.on("tap",function(t){n.body.eventListeners.onTap(t)}),this.hammer.on("doubletap",function(t){n.body.eventListeners.onDoubleTap(t)}),this.hammer.on("press",function(t){n.body.eventListeners.onHold(t)}),this.hammer.on("panstart",function(t){n.body.eventListeners.onDragStart(t)}),this.hammer.on("panmove",function(t){n.body.eventListeners.onDrag(t)}),this.hammer.on("panend",function(t){n.body.eventListeners.onDragEnd(t)}),this.hammer.on("pinch",function(t){n.body.eventListeners.onPinch(t)}),this.frame.canvas.addEventListener("mousewheel",function(t){n.body.eventListeners.onMouseWheel(t)}),this.frame.canvas.addEventListener("DOMMouseScroll",function(t){n.body.eventListeners.onMouseWheel(t)}),this.frame.canvas.addEventListener("mousemove",function(t){n.body.eventListeners.onMouseMove(t)}),this.frame.canvas.addEventListener("contextmenu",function(t){n.body.eventListeners.onContext(t)}),this.hammerFrame=new r(this.frame),s.onRelease(this.hammerFrame,function(t){n.body.eventListeners.onRelease(t)})}},{key:"setSize",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.width,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.height;n=this._prepareValue(n),t=this._prepareValue(t);var e=!1,i=this.frame.canvas.width,l=this.frame.canvas.height,o=this.pixelRatio;if(this._setPixelRatio(),n!=this.options.width||t!=this.options.height||this.frame.style.width!=n||this.frame.style.height!=t)this._getCameraState(o),this.frame.style.width=n,this.frame.style.height=t,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=n,this.options.height=t,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},e=!0;else{var r=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),s=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);this.frame.canvas.width===r&&this.frame.canvas.height===s||this._getCameraState(o),this.frame.canvas.width!==r&&(this.frame.canvas.width=r,e=!0),this.frame.canvas.height!==s&&(this.frame.canvas.height=s,e=!0)}return!0===e&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(i/this.pixelRatio),oldHeight:Math.round(l/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,e}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var n=this.getContext();if(void 0===n)throw new Error("Could not get canvax context");var t=1;return"undefined"!=typeof window&&(t=window.devicePixelRatio||1),t/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var n=this.getContext();if(void 0===n)throw new Error("Could not get canvax context");n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(n){return(n-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(n){return n*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(n){return(n-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(n){return n*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(n){return{x:this._XconvertCanvasToDOM(n.x),y:this._YconvertCanvasToDOM(n.y)}}},{key:"DOMtoCanvas",value:function(n){return{x:this._XconvertDOMtoCanvas(n.x),y:this._YconvertDOMtoCanvas(n.y)}}}]),n}();t.default=u},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=o(e(0)),l=o(e(1));function o(n){return n&&n.__esModule?n:{default:n}}var r=e(2),s=e(76).default,a=function(){function n(t,e){var l=this;(0,i.default)(this,n),this.body=t,this.canvas=e,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",this.fit.bind(this)),this.body.emitter.on("animationFinished",function(){l.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",this.releaseNode.bind(this))}return(0,l.default)(n,[{key:"setOptions",value:function(){this.options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},{key:"fit",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{nodes:[]},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=void 0,i=void 0;if(void 0!==n.nodes&&0!==n.nodes.length||(n.nodes=this.body.nodeIndices),!0===t){var l=0;for(var o in this.body.nodes)this.body.nodes.hasOwnProperty(o)&&!0===this.body.nodes[o].predefinedPosition&&(l+=1);if(l>.5*this.body.nodeIndices.length)return void this.fit(n,!1);e=s.getRange(this.body.nodes,n.nodes),i=12.662/(this.body.nodeIndices.length+7.4147)+.0964822,i*=Math.min(this.canvas.frame.canvas.clientWidth/600,this.canvas.frame.canvas.clientHeight/600)}else{this.body.emitter.emit("_resizeNodes"),e=s.getRange(this.body.nodes,n.nodes);var r=1.1*Math.abs(e.maxX-e.minX),a=1.1*Math.abs(e.maxY-e.minY),u=this.canvas.frame.canvas.clientWidth/r,c=this.canvas.frame.canvas.clientHeight/a;i=u<=c?u:c}i>1?i=1:0===i&&(i=1);var h=s.findCenter(e);this.moveTo({position:h,scale:i,animation:n.animation})}},{key:"focus",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};void 0!==this.body.nodes[n]?(t.position={x:this.body.nodes[n].x,y:this.body.nodes[n].y},t.lockedOnNode=n,this.moveTo(t)):console.log("Node: "+n+" cannot be found.")}},{key:"moveTo",value:function(n){void 0!==n?(void 0===n.offset&&(n.offset={x:0,y:0}),void 0===n.offset.x&&(n.offset.x=0),void 0===n.offset.y&&(n.offset.y=0),void 0===n.scale&&(n.scale=this.body.view.scale),void 0===n.position&&(n.position=this.getViewPosition()),void 0===n.animation&&(n.animation={duration:0}),!1===n.animation&&(n.animation={duration:0}),!0===n.animation&&(n.animation={}),void 0===n.animation.duration&&(n.animation.duration=1e3),void 0===n.animation.easingFunction&&(n.animation.easingFunction="easeInOutQuad"),this.animateView(n)):n={}}},{key:"animateView",value:function(n){if(void 0!==n){this.animationEasingFunction=n.animation.easingFunction,this.releaseNode(),!0===n.locked&&(this.lockedOnNodeId=n.lockedOnNode,this.lockedOnNodeOffset=n.offset),0!=this.easingTime&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=n.scale,this.body.view.scale=this.targetScale;var t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight});this.targetTranslation={x:this.sourceTranslation.x+(t.x-n.position.x)*this.targetScale+n.offset.x,y:this.sourceTranslation.y+(t.y-n.position.y)*this.targetScale+n.offset.y},0===n.animation.duration?void 0!=this.lockedOnNodeId?(this.viewFunction=this._lockedRedraw.bind(this),this.body.emitter.on("initRedraw",this.viewFunction)):(this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw")):(this.animationSpeed=1/(60*n.animation.duration*.001)||1/60,this.animationEasingFunction=n.animation.easingFunction,this.viewFunction=this._transitionRedraw.bind(this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))}}},{key:"_lockedRedraw",value:function(){var n=this.body.nodes[this.lockedOnNodeId].x,t=this.body.nodes[this.lockedOnNodeId].y,e=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i=this.body.view.translation;this.body.view.translation={x:i.x+(e.x-n)*this.body.view.scale+this.lockedOnNodeOffset.x,y:i.y+(e.y-t)*this.body.view.scale+this.lockedOnNodeOffset.y}}},{key:"releaseNode",value:function(){void 0!==this.lockedOnNodeId&&void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.easingTime+=this.animationSpeed,this.easingTime=!0===n?1:this.easingTime;var t=r.easingFunctions[this.animationEasingFunction](this.easingTime);this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*t,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*t,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*t},this.easingTime>=1&&(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,void 0!=this.lockedOnNodeId&&(this.viewFunction=this._lockedRedraw.bind(this),this.body.emitter.on("initRedraw",this.viewFunction)),this.body.emitter.emit("animationFinished"))}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),n}();t.default=a},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=o(e(0)),l=o(e(1));function o(n){return n&&n.__esModule?n:{default:n}}var r=e(2),s=e(233).default,a=e(104).default,u=function(){function n(t,e,l){(0,i.default)(this,n),this.body=t,this.canvas=e,this.selectionHandler=l,this.navigationHandler=new s(t,e),this.body.eventListeners.onTap=this.onTap.bind(this),this.body.eventListeners.onTouch=this.onTouch.bind(this),this.body.eventListeners.onDoubleTap=this.onDoubleTap.bind(this),this.body.eventListeners.onHold=this.onHold.bind(this),this.body.eventListeners.onDragStart=this.onDragStart.bind(this),this.body.eventListeners.onDrag=this.onDrag.bind(this),this.body.eventListeners.onDragEnd=this.onDragEnd.bind(this),this.body.eventListeners.onMouseWheel=this.onMouseWheel.bind(this),this.body.eventListeners.onPinch=this.onPinch.bind(this),this.body.eventListeners.onMouseMove=this.onMouseMove.bind(this),this.body.eventListeners.onRelease=this.onRelease.bind(this),this.body.eventListeners.onContext=this.onContext.bind(this),this.touchTime=0,this.drag={},this.pinch={},this.popup=void 0,this.popupObj=void 0,this.popupTimer=void 0,this.body.functions.getPointer=this.getPointer.bind(this),this.options={},this.defaultOptions={dragNodes:!0,dragView:!0,hover:!1,keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02},bindToWindow:!0},navigationButtons:!1,tooltipDelay:300,zoomView:!0},r.extend(this.options,this.defaultOptions),this.bindEventListeners()}return(0,l.default)(n,[{key:"bindEventListeners",value:function(){var n=this;this.body.emitter.on("destroy",function(){clearTimeout(n.popupTimer),delete n.body.functions.getPointer})}},{key:"setOptions",value:function(n){void 0!==n&&(r.selectiveNotDeepExtend(["hideEdgesOnDrag","hideNodesOnDrag","keyboard","multiselect","selectable","selectConnectedEdges"],this.options,n),r.mergeOptions(this.options,n,"keyboard"),n.tooltip&&(r.extend(this.options.tooltip,n.tooltip),n.tooltip.color&&(this.options.tooltip.color=r.parseColor(n.tooltip.color)))),this.navigationHandler.setOptions(this.options)}},{key:"getPointer",value:function(n){return{x:n.x-r.getAbsoluteLeft(this.canvas.frame.canvas),y:n.y-r.getAbsoluteTop(this.canvas.frame.canvas)}}},{key:"onTouch",value:function(n){(new Date).valueOf()-this.touchTime>50&&(this.drag.pointer=this.getPointer(n.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=(new Date).valueOf())}},{key:"onTap",value:function(n){var t=this.getPointer(n.center);this.checkSelectionChanges(t,n,this.selectionHandler.options.multiselect&&(n.changedPointers[0].ctrlKey||n.changedPointers[0].metaKey)),this.selectionHandler._generateClickEvent("click",n,t)}},{key:"onDoubleTap",value:function(n){var t=this.getPointer(n.center);this.selectionHandler._generateClickEvent("doubleClick",n,t)}},{key:"onHold",value:function(n){var t=this.getPointer(n.center);this.checkSelectionChanges(t,n,this.selectionHandler.options.multiselect),this.selectionHandler._generateClickEvent("click",n,t),this.selectionHandler._generateClickEvent("hold",n,t)}},{key:"onRelease",value:function(n){if((new Date).valueOf()-this.touchTime>10){var t=this.getPointer(n.center);this.selectionHandler._generateClickEvent("release",n,t),this.touchTime=(new Date).valueOf()}}},{key:"onContext",value:function(n){var t=this.getPointer({x:n.clientX,y:n.clientY});this.selectionHandler._generateClickEvent("oncontext",n,t)}},{key:"checkSelectionChanges",value:function(n,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.selectionHandler.getSelection(),l=!1;l=!0===e?this.selectionHandler.selectAdditionalOnPoint(n):this.selectionHandler.selectOnPoint(n);var o=this.selectionHandler.getSelection(),r=this._determineDifference(i,o),s=this._determineDifference(o,i);r.edges.length>0&&(this.selectionHandler._generateClickEvent("deselectEdge",t,n,i),l=!0),r.nodes.length>0&&(this.selectionHandler._generateClickEvent("deselectNode",t,n,i),l=!0),s.nodes.length>0&&(this.selectionHandler._generateClickEvent("selectNode",t,n),l=!0),s.edges.length>0&&(this.selectionHandler._generateClickEvent("selectEdge",t,n),l=!0),!0===l&&this.selectionHandler._generateClickEvent("select",t,n)}},{key:"_determineDifference",value:function(n,t){var e=function(n,t){for(var e=[],i=0;i10&&(n=10);var i=void 0;void 0!==this.drag&&!0===this.drag.dragging&&(i=this.canvas.DOMtoCanvas(this.drag.pointer));var l=this.body.view.translation,o=n/e,r=(1-o)*t.x+l.x*o,s=(1-o)*t.y+l.y*o;if(this.body.view.scale=n,this.body.view.translation={x:r,y:s},void 0!=i){var a=this.canvas.canvasToDOM(i);this.drag.pointer.x=a.x,this.drag.pointer.y=a.y}this.body.emitter.emit("_requestRedraw"),this.body.emitter.emit("zoom",e0&&(this.popupObj=u[h[h.length-1]],o=!0)}if(void 0===this.popupObj&&!1===o){for(var p=this.body.edgeIndices,f=this.body.edges,_=void 0,m=[],g=0;g0&&(this.popupObj=f[m[m.length-1]],r="edge")}void 0!==this.popupObj?this.popupObj.id!==l&&(void 0===this.popup&&(this.popup=new a(this.canvas.frame)),this.popup.popupTargetType=r,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(n.x+3,n.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):void 0!==this.popup&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(n){var t=this.selectionHandler._pointerToPositionObject(n),e=!1;if("node"===this.popup.popupTargetType){if(void 0!==this.body.nodes[this.popup.popupTargetId]&&!0===(e=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(t))){var i=this.selectionHandler.getNodeAt(n);e=void 0!==i&&i.id===this.popup.popupTargetId}}else void 0===this.selectionHandler.getNodeAt(n)&&void 0!==this.body.edges[this.popup.popupTargetId]&&(e=this.body.edges[this.popup.popupTargetId].isOverlappingWith(t));!1===e&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),n}();t.default=u},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=o(e(0)),l=o(e(1));function o(n){return n&&n.__esModule?n:{default:n}}var r=e(10),s=e(37),a=e(35),u=function(){function n(t,e){var l=this;(0,i.default)(this,n),this.body=t,this.canvas=e,this.iconsCreated=!1,this.navigationHammers=[],this.boundFunctions={},this.touchTime=0,this.activated=!1,this.body.emitter.on("activate",function(){l.activated=!0,l.configureKeyboardBindings()}),this.body.emitter.on("deactivate",function(){l.activated=!1,l.configureKeyboardBindings()}),this.body.emitter.on("destroy",function(){void 0!==l.keycharm&&l.keycharm.destroy()}),this.options={}}return(0,l.default)(n,[{key:"setOptions",value:function(n){void 0!==n&&(this.options=n,this.create())}},{key:"create",value:function(){!0===this.options.navigationButtons?!1===this.iconsCreated&&this.loadNavigationElements():!0===this.iconsCreated&&this.cleanNavigation(),this.configureKeyboardBindings()}},{key:"cleanNavigation",value:function(){if(0!=this.navigationHammers.length){for(var n=0;n700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=(new Date).valueOf())}},{key:"_stopMovement",value:function(){for(var n in this.boundFunctions)this.boundFunctions.hasOwnProperty(n)&&(this.body.emitter.off("initRedraw",this.boundFunctions[n]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var n=this.body.view.scale*(1+this.options.keyboard.speed.zoom),t=this.body.view.translation,e=n/this.body.view.scale,i=(1-e)*this.canvas.canvasViewCenter.x+t.x*e,l=(1-e)*this.canvas.canvasViewCenter.y+t.y*e;this.body.view.scale=n,this.body.view.translation={x:i,y:l},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var n=this.body.view.scale/(1+this.options.keyboard.speed.zoom),t=this.body.view.translation,e=n/this.body.view.scale,i=(1-e)*this.canvas.canvasViewCenter.x+t.x*e,l=(1-e)*this.canvas.canvasViewCenter.y+t.y*e;this.body.view.scale=n,this.body.view.translation={x:i,y:l},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var n=this;void 0!==this.keycharm&&this.keycharm.destroy(),!0===this.options.keyboard.enabled&&(this.keycharm=a(!0===this.options.keyboard.bindToWindow?{container:window,preventDefault:!0}:{container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),!0===this.activated&&(this.keycharm.bind("up",function(){n.bindToRedraw("_moveUp")},"keydown"),this.keycharm.bind("down",function(){n.bindToRedraw("_moveDown")},"keydown"),this.keycharm.bind("left",function(){n.bindToRedraw("_moveLeft")},"keydown"),this.keycharm.bind("right",function(){n.bindToRedraw("_moveRight")},"keydown"),this.keycharm.bind("=",function(){n.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("num+",function(){n.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("num-",function(){n.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("-",function(){n.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("[",function(){n.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("]",function(){n.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("pageup",function(){n.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("pagedown",function(){n.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("up",function(){n.unbindFromRedraw("_moveUp")},"keyup"),this.keycharm.bind("down",function(){n.unbindFromRedraw("_moveDown")},"keyup"),this.keycharm.bind("left",function(){n.unbindFromRedraw("_moveLeft")},"keyup"),this.keycharm.bind("right",function(){n.unbindFromRedraw("_moveRight")},"keyup"),this.keycharm.bind("=",function(){n.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("num+",function(){n.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("num-",function(){n.unbindFromRedraw("_zoomOut")},"keyup"),this.keycharm.bind("-",function(){n.unbindFromRedraw("_zoomOut")},"keyup"),this.keycharm.bind("[",function(){n.unbindFromRedraw("_zoomOut")},"keyup"),this.keycharm.bind("]",function(){n.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("pageup",function(){n.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("pagedown",function(){n.unbindFromRedraw("_zoomOut")},"keyup")))}}]),n}();t.default=u},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=o(e(0)),l=o(e(1));function o(n){return n&&n.__esModule?n:{default:n}}var r=e(47).default,s=e(74).default,a=e(2),u=function(){function n(t,e){var l=this;(0,i.default)(this,n),this.body=t,this.canvas=e,this.selectionObj={nodes:[],edges:[]},this.hoverObj={nodes:{},edges:{}},this.options={},this.defaultOptions={multiselect:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0},a.extend(this.options,this.defaultOptions),this.body.emitter.on("_dataChanged",function(){l.updateSelection()})}return(0,l.default)(n,[{key:"setOptions",value:function(n){void 0!==n&&a.selectiveDeepExtend(["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"],this.options,n)}},{key:"selectOnPoint",value:function(n){var t=!1;if(!0===this.options.selectable){var e=this.getNodeAt(n)||this.getEdgeAt(n);this.unselectAll(),void 0!==e&&(t=this.selectObject(e)),this.body.emitter.emit("_requestRedraw")}return t}},{key:"selectAdditionalOnPoint",value:function(n){var t=!1;if(!0===this.options.selectable){var e=this.getNodeAt(n)||this.getEdgeAt(n);void 0!==e&&(t=!0,!0===e.isSelected()?this.deselectObject(e):this.selectObject(e),this.body.emitter.emit("_requestRedraw"))}return t}},{key:"_initBaseEvent",value:function(n,t){var e={};return e.pointer={DOM:{x:t.x,y:t.y},canvas:this.canvas.DOMtoCanvas(t)},e.event=n,e}},{key:"_generateClickEvent",value:function(n,t,e,i){var l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this._initBaseEvent(t,e);if(!0===l)o.nodes=[],o.edges=[];else{var r=this.getSelection();o.nodes=r.nodes,o.edges=r.edges}void 0!==i&&(o.previousSelection=i),"click"==n&&(o.items=this.getClickedItems(e)),this.body.emitter.emit(n,o)}},{key:"selectObject",value:function(n){return void 0!==n&&(n instanceof r&&!0===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.selectConnectedEdges)&&this._selectConnectedEdges(n),n.select(),this._addToSelection(n),!0)}},{key:"deselectObject",value:function(n){!0===n.isSelected()&&(n.selected=!1,this._removeFromSelection(n))}},{key:"_getAllNodesOverlappingWith",value:function(n){for(var t=[],e=this.body.nodes,i=0;i1&&void 0!==arguments[1])||arguments[1],e=this._pointerToPositionObject(n),i=this._getAllNodesOverlappingWith(e);return i.length>0?!0===t?this.body.nodes[i[i.length-1]]:i[i.length-1]:void 0}},{key:"_getEdgesOverlappingWith",value:function(n,t){for(var e=this.body.edges,i=0;i1&&void 0!==arguments[1])||arguments[1],e=this.canvas.DOMtoCanvas(n),i=10,l=null,o=this.body.edges,r=0;r1)return!0;return!1}},{key:"_selectConnectedEdges",value:function(n){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{},e=void 0,i=void 0;if(!n||!n.nodes&&!n.edges)throw"Selection must be an object with nodes and/or edges properties";if((t.unselectAll||void 0===t.unselectAll)&&this.unselectAll(),n.nodes)for(e=0;e1&&void 0!==arguments[1])||arguments[1];if(!n||void 0===n.length)throw"Selection must be an array with ids";this.setSelection({nodes:n},{highlightEdges:t})}},{key:"selectEdges",value:function(n){if(!n||void 0===n.length)throw"Selection must be an array with ids";this.setSelection({edges:n})}},{key:"updateSelection",value:function(){for(var n in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(n)&&(this.body.nodes.hasOwnProperty(n)||delete this.selectionObj.nodes[n]);for(var t in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(t)&&(this.body.edges.hasOwnProperty(t)||delete this.selectionObj.edges[t])}},{key:"getClickedItems",value:function(n){for(var t=this.canvas.DOMtoCanvas(n),e=[],i=this.body.nodeIndices,l=this.body.nodes,o=i.length-1;o>=0;o--){var r=l[i[o]].getItemsOnPoint(t);e.push.apply(e,r)}for(var s=this.body.edgeIndices,a=this.body.edges,u=s.length-1;u>=0;u--){var c=a[s[u]].getItemsOnPoint(t);e.push.apply(e,c)}return e}}]),n}();t.default=u},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=a(e(30)),l=a(e(6)),o=a(e(8)),r=a(e(0)),s=a(e(1));function a(n){return n&&n.__esModule?n:{default:n}}var u=e(2),c=e(76).default,h=e(236),d=h.HorizontalStrategy,p=h.VerticalStrategy,f=function(){function n(){(0,r.default)(this,n),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return(0,s.default)(n,[{key:"addRelation",value:function(n,t){void 0===this.childrenReference[n]&&(this.childrenReference[n]=[]),this.childrenReference[n].push(t),void 0===this.parentReference[t]&&(this.parentReference[t]=[]),this.parentReference[t].push(n)}},{key:"checkIfTree",value:function(){for(var n in this.parentReference)if(this.parentReference[n].length>1)return void(this.isTree=!1);this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(n,t){void 0!==t&&void 0===this.trees[n.id]&&(this.trees[n.id]=t,this.treeIndex=Math.max(t,this.treeIndex))}},{key:"ensureLevel",value:function(n){void 0===this.levels[n]&&(this.levels[n]=0)}},{key:"getMaxLevel",value:function(n){var t=this,e={};return function n(i){if(void 0!==e[i])return e[i];var l=t.levels[i];if(t.childrenReference[i]){var o=t.childrenReference[i];if(o.length>0)for(var r=0;r0&&(e.levelSeparation*=-1):e.levelSeparation<0&&(e.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(t);if(!0===i)return this.body.emitter.emit("refresh"),u.deepExtend(t,this.optionsBackup)}return t}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(n){if(!0===this.options.hierarchical.enabled){var t=this.optionsBackup.physics;void 0===n.physics||!0===n.physics?(n.physics={enabled:void 0===t.enabled||t.enabled,solver:"hierarchicalRepulsion"},t.enabled=void 0===t.enabled||t.enabled,t.solver=t.solver||"barnesHut"):"object"===(0,l.default)(n.physics)?(t.enabled=void 0===n.physics.enabled||n.physics.enabled,t.solver=n.physics.solver||"barnesHut",n.physics.solver="hierarchicalRepulsion"):!1!==n.physics&&(t.solver="barnesHut",n.physics={solver:"hierarchicalRepulsion"});var e=this.direction.curveType();if(void 0===n.edges)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},n.edges={smooth:!1};else if(void 0===n.edges.smooth)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},n.edges.smooth=!1;else if("boolean"==typeof n.edges.smooth)this.optionsBackup.edges={smooth:n.edges.smooth},n.edges.smooth={enabled:n.edges.smooth,type:e};else{var i=n.edges.smooth;void 0!==i.type&&"dynamic"!==i.type&&(e=i.type),this.optionsBackup.edges={smooth:void 0===i.enabled||i.enabled,type:void 0===i.type?"dynamic":i.type,roundness:void 0===i.roundness?.5:i.roundness,forceDirection:void 0!==i.forceDirection&&i.forceDirection},n.edges.smooth={enabled:void 0===i.enabled||i.enabled,type:e,roundness:void 0===i.roundness?.5:i.roundness,forceDirection:void 0!==i.forceDirection&&i.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",e)}return n}},{key:"seededRandom",value:function(){var n=1e4*Math.sin(this.randomSeed++);return n-Math.floor(n)}},{key:"positionInitially",value:function(n){if(!0!==this.options.hierarchical.enabled){this.randomSeed=this.initialRandomSeed;for(var t=n.length+50,e=0;e150){for(var o=n.length;n.length>150&&i<=10;){var r=n.length;if((i+=1)%3==0?this.body.modules.clustering.clusterBridges(l):this.body.modules.clustering.clusterOutliers(l),r==n.length&&i%3!=0)return this._declusterAll(),this.body.emitter.emit("_layoutFailed"),void console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.")}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*o)})}i>10&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(n,this.body.edgeIndices,!0),this._shiftToCenter();for(var s=0;s0){var n=void 0,t=void 0,e=!1,i=!1;for(t in this.lastNodeOnLevel={},this.hierarchical=new f,this.body.nodes)this.body.nodes.hasOwnProperty(t)&&(void 0!==(n=this.body.nodes[t]).options.level?(e=!0,this.hierarchical.levels[t]=n.options.level):i=!0);if(!0===i&&!0===e)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(!0===i){var l=this.options.hierarchical.sortMethod;"hubsize"===l?this._determineLevelsByHubsize():"directed"===l?this._determineLevelsDirected():"custom"===l&&this._determineLevelsCustomCallback()}for(var o in this.body.nodes)this.body.nodes.hasOwnProperty(o)&&this.hierarchical.ensureLevel(o);var r=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(r),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var n=this,t=!1,e={},l=function(t,e){var i=n.hierarchical.trees;for(var l in i)i.hasOwnProperty(l)&&i[l]===t&&n.direction.shift(l,e)},o=function t(e,i){if(!i[e.id]&&(i[e.id]=!0,n.hierarchical.childrenReference[e.id])){var l=n.hierarchical.childrenReference[e.id];if(l.length>0)for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:1e9,l=1e9,o=1e9,r=1e9,s=-1e9;for(var a in t)if(t.hasOwnProperty(a)){var u=n.body.nodes[a],c=n.hierarchical.levels[u.id],h=n.direction.getPosition(u),d=n._getSpaceAroundNode(u,t),p=(0,i.default)(d,2),f=p[1];l=Math.min(p[0],l),o=Math.min(f,o),c<=e&&(r=Math.min(h,r),s=Math.max(h,s))}return[r,s,l,o]},s=function(t,e,i){for(var l=n.hierarchical,o=0;o1)for(var s=0;s2&&void 0!==arguments[2]&&arguments[2],s=n.direction.getPosition(e),a=n.direction.getPosition(i),u=Math.abs(a-s),c=n.options.hierarchical.nodeSpacing;if(u>c){var h={},d={};o(e,h),o(i,d);var p=function(t,e){var i=n.hierarchical.getMaxLevel(t.id),l=n.hierarchical.getMaxLevel(e.id);return Math.min(i,l)}(e,i),f=r(h,p),_=r(d,p),m=f[1],g=_[0],v=_[2];if(Math.abs(m-g)>c){var y=m-g+c;y<-v+c&&(y=-v+c),y<0&&(n._shiftBlock(i.id,y),t=!0,!0===l&&n._centerParent(i))}}},u=function(l,s){for(var a=s.id,u=s.edges,c=n.hierarchical.levels[s.id],h=n.options.hierarchical.levelSeparation*n.options.hierarchical.levelSeparation,d={},p=[],f=0;f0?d=Math.min(h,u[3]-n.options.hierarchical.nodeSpacing):h<0&&(d=-Math.min(-h,c-n.options.hierarchical.nodeSpacing)),0!=d&&(n._shiftBlock(s.id,d),t=!0)}(b),function(e){var l=n.direction.getPosition(s),o=n._getSpaceAroundNode(s),r=(0,i.default)(o,2),a=r[0],u=e-l,c=l;u>0?c=Math.min(l+(r[1]-n.options.hierarchical.nodeSpacing),e):u<0&&(c=Math.max(l-(a-n.options.hierarchical.nodeSpacing),e)),c!==l&&(n.direction.setPosition(s,c),t=!0)}(b=y(l,u))};!0===this.options.hierarchical.blockShifting&&(function(e){var i=n.hierarchical.getLevels();i=i.reverse();for(var l=0;l<5&&(t=!1,s(a,i,!0),!0===t);l++);}(),function(){for(var t in n.body.nodes)n.body.nodes.hasOwnProperty(t)&&n._centerParent(n.body.nodes[t])}()),!0===this.options.hierarchical.edgeMinimization&&function(e){var i=n.hierarchical.getLevels();i=i.reverse();for(var l=0;l<20;l++){t=!1;for(var o=0;o0&&Math.abs(p)0&&(a=this.direction.getPosition(e[l-1])+s),this.direction.setPosition(r,a,t),this._validatePositionAndContinue(r,t,a),i++}}}}},{key:"_placeBranchNodes",value:function(n,t){var e=this.hierarchical.childrenReference[n];if(void 0!==e){for(var i=[],l=0;lt&&void 0===this.positionedNodes[r.id]))return;var a,u=this.options.hierarchical.nodeSpacing;a=0===o?this.direction.getPosition(this.body.nodes[n]):this.direction.getPosition(i[o-1])+u,this.direction.setPosition(r,a,s),this._validatePositionAndContinue(r,s,a)}var c=this._getCenterPosition(i);this.direction.setPosition(this.body.nodes[n],c,t)}}},{key:"_validatePositionAndContinue",value:function(n,t,e){if(this.hierarchical.isTree){if(void 0!==this.lastNodeOnLevel[t]){var i=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[t]]);if(e-in.hierarchical.levels[t.id]&&n.hierarchical.addRelation(t.id,e.id)}),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var n=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=arguments[1],i={},l=function e(l,o){if(void 0===i[l.id]){n.hierarchical.setTreeIndex(l,o),i[l.id]=!0;for(var r=void 0,s=n._getActiveEdges(l),a=0;a2&&void 0!==arguments[2]?arguments[2]:void 0),this.abstract()}},{key:"getTreeSize",value:function(n){return this.fake_use(n),this.abstract()}},{key:"sort",value:function(n){this.fake_use(n),this.abstract()}},{key:"fix",value:function(n,t){this.fake_use(n,t),this.abstract()}},{key:"shift",value:function(n,t){this.fake_use(n,t),this.abstract()}}]),n}(),c=function(n){function t(n){(0,r.default)(this,t);var e=(0,l.default)(this,(t.__proto__||(0,i.default)(t)).call(this));return e.layout=n,e}return(0,o.default)(t,u),(0,s.default)(t,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(n){return n.x}},{key:"setPosition",value:function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==e&&this.layout.hierarchical.addToOrdering(n,e),n.x=t}},{key:"getTreeSize",value:function(n){var t=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,n);return{min:t.min_x,max:t.max_x}}},{key:"sort",value:function(n){n.sort(function(n,t){return void 0===n.x||void 0===t.x?0:n.x-t.x})}},{key:"fix",value:function(n,t){n.y=this.layout.options.hierarchical.levelSeparation*t,n.options.fixed.y=!0}},{key:"shift",value:function(n,t){this.layout.body.nodes[n].x+=t}}]),t}(),h=function(n){function t(n){(0,r.default)(this,t);var e=(0,l.default)(this,(t.__proto__||(0,i.default)(t)).call(this));return e.layout=n,e}return(0,o.default)(t,u),(0,s.default)(t,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(n){return n.y}},{key:"setPosition",value:function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==e&&this.layout.hierarchical.addToOrdering(n,e),n.y=t}},{key:"getTreeSize",value:function(n){var t=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,n);return{min:t.min_y,max:t.max_y}}},{key:"sort",value:function(n){n.sort(function(n,t){return void 0===n.y||void 0===t.y?0:n.y-t.y})}},{key:"fix",value:function(n,t){n.x=this.layout.options.hierarchical.levelSeparation*t,n.options.fixed.x=!0}},{key:"shift",value:function(n,t){this.layout.body.nodes[n].y+=t}}]),t}();t.HorizontalStrategy=h,t.VerticalStrategy=c},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=a(e(8)),l=a(e(19)),o=a(e(6)),r=a(e(0)),s=a(e(1));function a(n){return n&&n.__esModule?n:{default:n}}var u=e(2),c=e(10),h=e(37),d=function(){function n(t,e,i){var l=this;(0,r.default)(this,n),this.body=t,this.canvas=e,this.selectionHandler=i,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this.manipulationHammers=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},u.extend(this.options,this.defaultOptions),this.body.emitter.on("destroy",function(){l._clean()}),this.body.emitter.on("_dataChanged",this._restore.bind(this)),this.body.emitter.on("_resetData",this._restore.bind(this))}return(0,s.default)(n,[{key:"_restore",value:function(){!1!==this.inMode&&(!0===this.options.initiallyActive?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(n,t,e){void 0!==t&&(this.options.locale=void 0!==t.locale?t.locale:e.locale,this.options.locales=void 0!==t.locales?t.locales:e.locales),void 0!==n&&("boolean"==typeof n?this.options.enabled=n:(this.options.enabled=!0,u.deepExtend(this.options,n)),!0===this.options.initiallyActive&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){!0===this.editMode?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),!0===this.guiEnabled&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),!0===this.guiEnabled&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},!0===this.guiEnabled){this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var n=this.selectionHandler._getSelectedNodeCount(),t=this.selectionHandler._getSelectedEdgeCount(),e=n+t,i=this.options.locales[this.options.locale],l=!1;!1!==this.options.addNode&&(this._createAddNodeButton(i),l=!0),!1!==this.options.addEdge&&(!0===l?this._createSeperator(1):l=!0,this._createAddEdgeButton(i)),1===n&&"function"==typeof this.options.editNode?(!0===l?this._createSeperator(2):l=!0,this._createEditNodeButton(i)):1===t&&0===n&&!1!==this.options.editEdge&&(!0===l?this._createSeperator(3):l=!0,this._createEditEdgeButton(i)),0!==e&&(n>0&&!1!==this.options.deleteNode?(!0===l&&this._createSeperator(4),this._createDeleteButton(i)):0===n&&!1!==this.options.deleteEdge&&(!0===l&&this._createSeperator(4),this._createDeleteButton(i))),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this)),this._temporaryBindEvent("select",this.showManipulatorToolbar.bind(this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addNode",!0===this.guiEnabled){var n=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(n),this._createSeperator(),this._createDescription(n.addDescription||this.options.locales.en.addDescription),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}this._temporaryBindEvent("click",this._performAddNode.bind(this))}},{key:"editNode",value:function(){var n=this;!0!==this.editMode&&this.enableEditMode(),this._clean();var t=this.selectionHandler._getSelectedNode();if(void 0!==t){if(this.inMode="editNode","function"!=typeof this.options.editNode)throw new Error("No function has been configured to handle the editing of nodes.");if(!0!==t.isCluster){var e=u.deepExtend({},t.options,!1);if(e.x=t.x,e.y=t.y,2!==this.options.editNode.length)throw new Error("The function for edit does not support two arguments (data, callback)");this.options.editNode(e,function(t){null!==t&&void 0!==t&&"editNode"===n.inMode&&n.body.data.nodes.getDataSet().update(t),n.showManipulatorToolbar()})}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError)}else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addEdge",!0===this.guiEnabled){var n=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(n),this._createSeperator(),this._createDescription(n.edgeDescription||this.options.locales.en.edgeDescription),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}this._temporaryBindUI("onTouch",this._handleConnect.bind(this)),this._temporaryBindUI("onDragEnd",this._finishConnect.bind(this)),this._temporaryBindUI("onDrag",this._dragControlNode.bind(this)),this._temporaryBindUI("onRelease",this._finishConnect.bind(this)),this._temporaryBindUI("onDragStart",this._dragStartEdge.bind(this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="editEdge","object"!==(0,o.default)(this.options.editEdge)||"function"!=typeof this.options.editEdge.editWithoutDrag||(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0],void 0===this.edgeBeingEditedId)){if(!0===this.guiEnabled){var n=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(n),this._createSeperator(),this._createDescription(n.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0],void 0!==this.edgeBeingEditedId){var t=this.body.edges[this.edgeBeingEditedId],e=this._getNewTargetNode(t.from.x,t.from.y),i=this._getNewTargetNode(t.to.x,t.to.y);this.temporaryIds.nodes.push(e.id),this.temporaryIds.nodes.push(i.id),this.body.nodes[e.id]=e,this.body.nodeIndices.push(e.id),this.body.nodes[i.id]=i,this.body.nodeIndices.push(i.id),this._temporaryBindUI("onTouch",this._controlNodeTouch.bind(this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",this._controlNodeDragStart.bind(this)),this._temporaryBindUI("onDrag",this._controlNodeDrag.bind(this)),this._temporaryBindUI("onDragEnd",this._controlNodeDragEnd.bind(this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(n){var l=t.edgeType.findBorderPositions(n);!1===e.selected&&(e.x=l.from.x,e.y=l.from.y),!1===i.selected&&(i.x=l.to.x,i.y=l.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}else{var l=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(l.from,l.to)}}},{key:"deleteSelected",value:function(){var n=this;!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="delete";var t=this.selectionHandler.getSelectedNodes(),e=this.selectionHandler.getSelectedEdges(),i=void 0;if(t.length>0){for(var l=0;l0&&"function"==typeof this.options.deleteEdge&&(i=this.options.deleteEdge);if("function"==typeof i){var o={nodes:t,edges:e};if(2!==i.length)throw new Error("The function for delete does not support two arguments (data, callback)");i(o,function(t){null!==t&&void 0!==t&&"delete"===n.inMode?(n.body.data.edges.getDataSet().remove(t.edges),n.body.data.nodes.getDataSet().remove(t.nodes),n.body.emitter.emit("startSimulation"),n.showManipulatorToolbar()):(n.body.emitter.emit("startSimulation"),n.showManipulatorToolbar())})}else this.body.data.edges.getDataSet().remove(e),this.body.data.nodes.getDataSet().remove(t),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){!0===this.options.enabled?(this.guiEnabled=!0,this._createWrappers(),!1===this.editMode?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){void 0===this.manipulationDiv&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.manipulationDiv.style.display=!0===this.editMode?"block":"none",this.canvas.frame.appendChild(this.manipulationDiv)),void 0===this.editModeDiv&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editModeDiv.style.display=!0===this.editMode?"none":"block",this.canvas.frame.appendChild(this.editModeDiv)),void 0===this.closeDiv&&(this.closeDiv=document.createElement("div"),this.closeDiv.className="vis-close",this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv))}},{key:"_getNewTargetNode",value:function(n,t){var e=u.deepExtend({},this.options.controlNodeStyle);e.id="targetNode"+u.randomUUID(),e.hidden=!1,e.physics=!1,e.x=n,e.y=t;var i=this.body.functions.createNode(e);return i.shape.boundingBox={left:n,right:n,top:t,bottom:t},i}},{key:"_createEditButton",value:function(){this._clean(),this.manipulationDOM={},u.recursiveDOMDelete(this.editModeDiv);var n=this._createButton("editMode","vis-button vis-edit vis-edit-mode",this.options.locales[this.options.locale].edit||this.options.locales.en.edit);this.editModeDiv.appendChild(n),this._bindHammerToDiv(n,this.toggleEditMode.bind(this))}},{key:"_clean",value:function(){this.inMode=!1,!0===this.guiEnabled&&(u.recursiveDOMDelete(this.editModeDiv),u.recursiveDOMDelete(this.manipulationDiv),this._cleanManipulatorHammers()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanManipulatorHammers",value:function(){if(0!=this.manipulationHammers.length){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+n]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+n].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+n])}},{key:"_createAddNodeButton",value:function(n){var t=this._createButton("addNode","vis-button vis-add",n.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.addNodeMode.bind(this))}},{key:"_createAddEdgeButton",value:function(n){var t=this._createButton("addEdge","vis-button vis-connect",n.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.addEdgeMode.bind(this))}},{key:"_createEditNodeButton",value:function(n){var t=this._createButton("editNode","vis-button vis-edit",n.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.editNode.bind(this))}},{key:"_createEditEdgeButton",value:function(n){var t=this._createButton("editEdge","vis-button vis-edit",n.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.editEdgeMode.bind(this))}},{key:"_createDeleteButton",value:function(n){var t=this._createButton("delete",this.options.rtl?"vis-button vis-delete-rtl":"vis-button vis-delete",n.del||this.options.locales.en.del);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.deleteSelected.bind(this))}},{key:"_createBackButton",value:function(n){var t=this._createButton("back","vis-button vis-back",n.back||this.options.locales.en.back);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.showManipulatorToolbar.bind(this))}},{key:"_createButton",value:function(n,t,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vis-label";return this.manipulationDOM[n+"Div"]=document.createElement("div"),this.manipulationDOM[n+"Div"].className=t,this.manipulationDOM[n+"Label"]=document.createElement("div"),this.manipulationDOM[n+"Label"].className=i,this.manipulationDOM[n+"Label"].innerHTML=e,this.manipulationDOM[n+"Div"].appendChild(this.manipulationDOM[n+"Label"]),this.manipulationDOM[n+"Div"]}},{key:"_createDescription",value:function(n){this.manipulationDiv.appendChild(this._createButton("description","vis-button vis-none",n))}},{key:"_temporaryBindEvent",value:function(n,t){this.temporaryEventFunctions.push({event:n,boundFunction:t}),this.body.emitter.on(n,t)}},{key:"_temporaryBindUI",value:function(n,t){if(void 0===this.body.eventListeners[n])throw new Error("This UI function does not exist. Typo? You tried: "+n+" possible are: "+(0,l.default)((0,i.default)(this.body.eventListeners)));this.temporaryUIFunctions[n]=this.body.eventListeners[n],this.body.eventListeners[n]=t}},{key:"_unbindTemporaryUIs",value:function(){for(var n in this.temporaryUIFunctions)this.temporaryUIFunctions.hasOwnProperty(n)&&(this.body.eventListeners[n]=this.temporaryUIFunctions[n],delete this.temporaryUIFunctions[n]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var n=0;n=0;r--)if(l[r]!==this.selectedControlNode.id){o=this.body.nodes[l[r]];break}void 0!==o&&void 0!==this.selectedControlNode?!0===o.isCluster?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.selectedControlNode.id===this.body.nodes[this.temporaryIds.nodes[0]].id?this._performEditEdge(o.id,i.to.id):this._performEditEdge(i.from.id,o.id):(i.updateEdgeType(),this.body.emitter.emit("restorePhysics")),this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(n){if((new Date).valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(n.center),this.lastTouch.translation=u.extend({},this.body.view.translation);var t=this.selectionHandler.getNodeAt(this.lastTouch);if(void 0!==t)if(!0===t.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var e=this._getNewTargetNode(t.x,t.y);this.body.nodes[e.id]=e,this.body.nodeIndices.push(e.id);var i=this.body.functions.createEdge({id:"connectionEdge"+u.randomUUID(),from:t.id,to:e.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[i.id]=i,this.body.edgeIndices.push(i.id),this.temporaryIds.nodes.push(e.id),this.temporaryIds.edges.push(i.id)}this.touchTime=(new Date).valueOf()}}},{key:"_dragControlNode",value:function(n){var t=this.body.functions.getPointer(n.center);if(void 0!==this.temporaryIds.nodes[0]){var e=this.body.nodes[this.temporaryIds.nodes[0]];e.x=this.canvas._XconvertDOMtoCanvas(t.x),e.y=this.canvas._YconvertDOMtoCanvas(t.y),this.body.emitter.emit("_redraw")}else this.body.view.translation={x:this.lastTouch.translation.x+(t.x-this.lastTouch.x),y:this.lastTouch.translation.y+(t.y-this.lastTouch.y)}}},{key:"_finishConnect",value:function(n){var t=this.body.functions.getPointer(n.center),e=this.selectionHandler._pointerToPositionObject(t),i=void 0;void 0!==this.temporaryIds.edges[0]&&(i=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var l=this.selectionHandler._getAllNodesOverlappingWith(e),o=void 0,r=l.length-1;r>=0;r--)if(-1===this.temporaryIds.nodes.indexOf(l[r])){o=this.body.nodes[l[r]];break}this._cleanupTemporaryNodesAndEdges(),void 0!==o&&(!0===o.isCluster?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):void 0!==this.body.nodes[i]&&void 0!==this.body.nodes[o.id]&&this._performAddEdge(i,o.id)),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(n){this.selectionHandler._generateClickEvent("dragStart",n,this.lastTouch,void 0,!0)}},{key:"_performAddNode",value:function(n){var t=this,e={id:u.randomUUID(),x:n.pointer.canvas.x,y:n.pointer.canvas.y,label:"new"};if("function"==typeof this.options.addNode){if(2!==this.options.addNode.length)throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");this.options.addNode(e,function(n){null!==n&&void 0!==n&&"addNode"===t.inMode&&(t.body.data.nodes.getDataSet().add(n),t.showManipulatorToolbar())})}else this.body.data.nodes.getDataSet().add(e),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(n,t){var e=this,i={from:n,to:t};if("function"==typeof this.options.addEdge){if(2!==this.options.addEdge.length)throw new Error("The function for connect does not support two arguments (data,callback)");this.options.addEdge(i,function(n){null!==n&&void 0!==n&&"addEdge"===e.inMode&&(e.body.data.edges.getDataSet().add(n),e.selectionHandler.unselectAll(),e.showManipulatorToolbar())})}else this.body.data.edges.getDataSet().add(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(n,t){var e=this,i={id:this.edgeBeingEditedId,from:n,to:t,label:this.body.data.edges._data[this.edgeBeingEditedId].label},l=this.options.editEdge;if("object"===("undefined"==typeof l?"undefined":(0,o.default)(l))&&(l=l.editWithoutDrag),"function"==typeof l){if(2!==l.length)throw new Error("The function for edit does not support two arguments (data, callback)");l(i,function(n){null===n||void 0===n||"editEdge"!==e.inMode?(e.body.edges[i.id].updateEdgeType(),e.body.emitter.emit("_redraw"),e.showManipulatorToolbar()):(e.body.data.edges.getDataSet().update(n),e.selectionHandler.unselectAll(),e.showManipulatorToolbar())})}else this.body.data.edges.getDataSet().update(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),n}();t.default=d},function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});var i=s(e(30)),l=s(e(0)),o=s(e(1)),r=s(e(239));function s(n){return n&&n.__esModule?n:{default:n}}var a=function(){function n(t,e,i){(0,l.default)(this,n),this.body=t,this.springLength=e,this.springConstant=i,this.distanceSolver=new r.default}return(0,o.default)(n,[{key:"setOptions",value:function(n){n&&(n.springLength&&(this.springLength=n.springLength),n.springConstant&&(this.springConstant=n.springConstant))}},{key:"solve",value:function(n,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=this.distanceSolver.getDistances(this.body,n,t);this._createL_matrix(l),this._createK_matrix(l),this._createE_matrix();for(var o=0,r=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),s=1e9,a=0,u=0,c=0,h=0,d=0;s>.01&&o1&&d<5;){d+=1,this._moveNode(a,u,c);var _=this._getEnergy(a),m=(0,i.default)(_,3);h=m[0],u=m[1],c=m[2]}}}},{key:"_getHighestEnergyNode",value:function(n){for(var t=this.body.nodeIndices,e=this.body.nodes,l=0,o=t[0],r=0,s=0,a=0;a=0};var i=e("BX3T")},"/bsm":function(n,t,e){!function(n){"use strict";n.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(e("PJh5"))},"/iUD":function(n,t,e){"use strict";t.a=function(n){return"function"==typeof n}},"/lY3":function(n,t,e){"use strict";var i=e("rCTf"),l=e("Ji1V");i.Observable.prototype.startWith=l.startWith},"/mhn":function(n,t,e){!function(n){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},e={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};n.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(n){return n.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(n){return e[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(n,t){return 12===n&&(n=0),"\u0930\u093e\u0924\u093f"===t?n<4?n:n+12:"\u092c\u093f\u0939\u093e\u0928"===t?n:"\u0926\u093f\u0909\u0901\u0938\u094b"===t?n>=10?n:n+12:"\u0938\u093e\u0901\u091d"===t?n+12:void 0},meridiem:function(n,t,e){return n<3?"\u0930\u093e\u0924\u093f":n<12?"\u092c\u093f\u0939\u093e\u0928":n<16?"\u0926\u093f\u0909\u0901\u0938\u094b":n<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(e("PJh5"))},"/nPl":function(n,t,e){"use strict";var i=e("ijov");t.combineAll=function(n){return function(t){return t.lift(new i.CombineLatestOperator(n))}}},"/nXB":function(n,t,e){"use strict";t.a=function(){for(var n=[],t=0;t1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof a&&(e=n.pop()),null===s&&1===n.length&&n[0]instanceof i.a?n[0]:Object(r.a)(e)(new l.a(n,s))};var i=e("YaPU"),l=e("Veqx"),o=e("1Q68"),r=e("8D5t")},"/rMs":function(n,t,e){"use strict";var i=e("rCTf"),l=e("8MUz");i.Observable.prototype.concat=l.concat},0:function(n,t,e){n.exports=e("x35b")},"00YY":function(n,t,e){"use strict";t.identity=function(n){return n}},"09LQ":function(n,t,e){"use strict";var i=e("ady2");t._finally=function(n){return i.finalize(n)(this)}},"0EZR":function(n,t,e){"use strict";var i=e("TToO").__extends,l=e("rCTf"),o=e("+3eL"),r=e("WhVc"),s=e("5c/I");function a(n){var t=n.subject;t.next(n.value),t.complete()}function u(n){n.subject.error(n.err)}t.BoundCallbackObservable=function(n){function t(t,e,i,l,o){n.call(this),this.callbackFunc=t,this.selector=e,this.args=i,this.context=l,this.scheduler=o}return i(t,n),t.create=function(n,e,i){return void 0===e&&(e=void 0),function(){for(var l=[],o=0;o1)this.connection=null;else{var e=this.connection,i=n._connection;this.connection=null,!i||e&&i!==e||i.unsubscribe()}}else this.connection=null},t}(l.a)},"0TiQ":function(n,t,e){"use strict";var i=e("rCTf"),l=e("QNuG");i.Observable.prototype.publishLast=l.publishLast},"0VSF":function(n,t,e){"use strict";var i=e("ZzDa");t.sample=function(n){return i.sample(n)(this)}},"0X8Q":function(n,t,e){!function(n){"use strict";n.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(n){return/^ch$/i.test(n)},meridiem:function(n,t,e){return n<12?e?"sa":"SA":e?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n r\u1ed3i l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}})}(e("PJh5"))},"0gHg":function(n,t,e){"use strict";var i=e("BV2O");t.publishReplay=function(n,t,e,l){return i.publishReplay(n,t,e,l)(this)}},"0jhT":function(n,t,e){"use strict";t.a=function(){return function(n){return n.lift(new o)}};var i=e("TToO"),l=e("OVmG"),o=function(){function n(){}return n.prototype.call=function(n,t){return t.subscribe(new r(n))},n}(),r=function(n){function t(t){n.call(this,t),this.hasPrev=!1}return Object(i.__extends)(t,n),t.prototype._next=function(n){this.hasPrev?this.destination.next([this.prev,n]):this.hasPrev=!0,this.prev=n},t}(l.a)},"0qMM":function(n,t,e){"use strict";var i=e("TToO").__extends,l=e("+3eL"),o=e("WhVc"),r=e("wAkD"),s=e("CURp");t.expand=function(n,t,e){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===e&&(e=void 0),t=(t||0)<1?Number.POSITIVE_INFINITY:t,function(i){return i.lift(new a(n,t,e))}};var a=function(){function n(n,t,e){this.project=n,this.concurrent=t,this.scheduler=e}return n.prototype.call=function(n,t){return t.subscribe(new u(n,this.project,this.concurrent,this.scheduler))},n}();t.ExpandOperator=a;var u=function(n){function t(t,e,i,l){n.call(this,t),this.project=e,this.concurrent=i,this.scheduler=l,this.index=0,this.active=0,this.hasCompleted=!1,i0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(r.OuterSubscriber);t.ExpandSubscriber=u},"10Gq":function(n,t,e){"use strict";var i=e("rCTf"),l=e("Cx8F");i.Observable.prototype.retryWhen=l.retryWhen},"13YQ":function(n,t,e){"use strict";var i=e("TToO").__extends,l=e("wAkD"),o=e("CURp");t.exhaustMap=function(n,t){return function(e){return e.lift(new r(n,t))}};var r=function(){function n(n,t){this.project=n,this.resultSelector=t}return n.prototype.call=function(n,t){return t.subscribe(new s(n,this.project,this.resultSelector))},n}(),s=function(n){function t(t,e,i){n.call(this,t),this.project=e,this.resultSelector=i,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return i(t,n),t.prototype._next=function(n){this.hasSubscription||this.tryNext(n)},t.prototype.tryNext=function(n){var t=this.index++,e=this.destination;try{var i=this.project(n,t);this.hasSubscription=!0,this.add(o.subscribeToResult(this,i,n,t))}catch(n){e.error(n)}},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyNext=function(n,t,e,i,l){var o=this.destination;this.resultSelector?this.trySelectResult(n,t,e,i):o.next(t)},t.prototype.trySelectResult=function(n,t,e,i){var l=this.resultSelector,o=this.destination;try{var r=l(n,t,e,i);o.next(r)}catch(n){o.error(n)}},t.prototype.notifyError=function(n){this.destination.error(n)},t.prototype.notifyComplete=function(n){this.remove(n),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(l.OuterSubscriber)},"16m9":function(n,t,e){"use strict";var i=e("rCTf"),l=e("Yuqe");i.Observable.prototype.concatMapTo=l.concatMapTo},"17on":function(n,t,e){"use strict";var i=e("TToO").__extends,l=e("EEr4"),o=e("CGGv"),r=e("mmVS"),s=e("P3oE"),a=e("fWbP");t.windowTime=function(n){var t=o.async,e=null,i=Number.POSITIVE_INFINITY;return a.isScheduler(arguments[3])&&(t=arguments[3]),a.isScheduler(arguments[2])?t=arguments[2]:s.isNumeric(arguments[2])&&(i=arguments[2]),a.isScheduler(arguments[1])?t=arguments[1]:s.isNumeric(arguments[1])&&(e=arguments[1]),function(l){return l.lift(new u(n,e,i,t))}};var u=function(){function n(n,t,e,i){this.windowTimeSpan=n,this.windowCreationInterval=t,this.maxWindowSize=e,this.scheduler=i}return n.prototype.call=function(n,t){return t.subscribe(new h(n,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},n}(),c=function(n){function t(){n.apply(this,arguments),this._numberOfNextedValues=0}return i(t,n),t.prototype.next=function(t){this._numberOfNextedValues++,n.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(l.Subject),h=function(n){function t(t,e,i,l,o){n.call(this,t),this.destination=t,this.windowTimeSpan=e,this.windowCreationInterval=i,this.maxWindowSize=l,this.scheduler=o,this.windows=[];var r=this.openWindow();if(null!==i&&i>=0){var s={windowTimeSpan:e,windowCreationInterval:i,subscriber:this,scheduler:o};this.add(o.schedule(f,e,{subscriber:this,window:r,context:null})),this.add(o.schedule(p,i,s))}else this.add(o.schedule(d,e,{subscriber:this,window:r,windowTimeSpan:e}))}return i(t,n),t.prototype._next=function(n){for(var t=this.windows,e=t.length,i=0;i=this.maxWindowSize&&this.closeWindow(l))}},t.prototype._error=function(n){for(var t=this.windows;t.length>0;)t.shift().error(n);this.destination.error(n)},t.prototype._complete=function(){for(var n=this.windows;n.length>0;){var t=n.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var n=new c;return this.windows.push(n),this.destination.next(n),n},t.prototype.closeWindow=function(n){n.complete();var t=this.windows;t.splice(t.indexOf(n),1)},t}(r.Subscriber);function d(n){var t=n.subscriber,e=n.windowTimeSpan,i=n.window;i&&t.closeWindow(i),n.window=t.openWindow(),this.schedule(n,e)}function p(n){var t=n.windowTimeSpan,e=n.subscriber,i=n.scheduler,l=n.windowCreationInterval,o=e.openWindow(),r={action:this,subscription:null};r.subscription=i.schedule(f,t,{subscriber:e,window:o,context:r}),this.add(r.subscription),this.schedule(n,l)}function f(n){var t=n.subscriber,e=n.window,i=n.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),t.closeWindow(e)}},"1APj":function(n,t,e){"use strict";var i=e("rCTf"),l=e("lgiQ");i.Observable.of=l.of},"1Axw":function(n,t,e){"use strict";var i=e("BkLI");t.delayWhen=function(n,t){return i.delayWhen(n,t)(this)}},"1Bqh":function(n,t,e){"use strict";e.d(t,"a",function(){return l});var i=e("TToO"),l=function(n){function t(t,e){n.call(this),this.subject=t,this.subscriber=e,this.closed=!1}return Object(i.__extends)(t,n),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var n=this.subject,t=n.observers;if(this.subject=null,t&&0!==t.length&&!n.isStopped&&!n.closed){var e=t.indexOf(this.subscriber);-1!==e&&t.splice(e,1)}}},t}(e("VwZZ").a)},"1Cj3":function(n,t,e){"use strict";var i=e("TToO").__extends,l=e("9Avi");t.AsapScheduler=function(n){function t(){n.apply(this,arguments)}return i(t,n),t.prototype.flush=function(n){this.active=!0,this.scheduled=void 0;var t,e=this.actions,i=-1,l=e.length;n=n||e.shift();do{if(t=n.execute(n.state,n.delay))break}while(++i1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof a&&(e=n.pop()),null===s&&1===n.length&&n[0]instanceof i.Observable?n[0]:r.mergeAll(e)(new l.ArrayObservable(n,s))}},"1NVl":function(n,t,e){"use strict";var i=e("rCTf"),l=e("83T1");i.Observable.prototype.every=l.every},"1Nls":function(n,t,e){"use strict";var i=e("rCTf"),l=e("gIFM");i.Observable.ajax=l.ajax},"1Q68":function(n,t,e){"use strict";t.a=function(n){return n&&"function"==typeof n.schedule}},"1T37":function(n,t,e){"use strict";e.d(t,"c",function(){return d}),e.d(t,"a",function(){return p}),e.d(t,"f",function(){return f}),e.d(t,"e",function(){return _}),e.d(t,"d",function(){return m}),e.d(t,"b",function(){return g});var i=e("WT6e"),l=e("XHgV"),o=e("g5jc"),r=e("YaPU"),s=e("YWe0"),a=e("hl8n"),u=e("6Qvr"),c=e("w9is"),h=e("/nXB"),d=function(){function n(n,t){this._ngZone=n,this._platform=t,this._scrolled=new o.b,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return n.prototype.register=function(n){var t=this,e=n.elementScrolled().subscribe(function(){return t._scrolled.next(n)});this.scrollContainers.set(n,e)},n.prototype.deregister=function(n){var t=this.scrollContainers.get(n);t&&(t.unsubscribe(),this.scrollContainers.delete(n))},n.prototype.scrolled=function(n){var t=this;return void 0===n&&(n=20),this._platform.isBrowser?r.a.create(function(e){t._globalSubscription||t._addGlobalListener();var i=n>0?t._scrolled.pipe(Object(u.a)(n)).subscribe(e):t._scrolled.subscribe(e);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):Object(s.a)()},n.prototype.ngOnDestroy=function(){var n=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,e){return n.deregister(e)})},n.prototype.ancestorScrolled=function(n,t){var e=this.getAncestorScrollContainers(n);return this.scrolled(t).pipe(Object(c.a)(function(n){return!n||e.indexOf(n)>-1}))},n.prototype.getAncestorScrollContainers=function(n){var t=this,e=[];return this.scrollContainers.forEach(function(i,l){t._scrollableContainsElement(l,n)&&e.push(l)}),e},n.prototype._scrollableContainsElement=function(n,t){var e=t.nativeElement,i=n.getElementRef().nativeElement;do{if(e==i)return!0}while(e=e.parentElement);return!1},n.prototype._addGlobalListener=function(){var n=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Object(a.a)(window.document,"scroll").subscribe(function(){return n._scrolled.next()})})},n.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},n}();function p(n,t,e){return n||new d(t,e)}var f=function(){function n(n,t){var e=this;this._platform=n,this._change=n.isBrowser?t.runOutsideAngular(function(){return Object(h.a)(Object(a.a)(window,"resize"),Object(a.a)(window,"orientationchange"))}):Object(s.a)(),this._invalidateCache=this.change().subscribe(function(){return e._updateViewportSize()})}return n.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},n.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n},n.prototype.getViewportRect=function(){var n=this.getViewportScrollPosition(),t=this.getViewportSize(),e=t.width,i=t.height;return{top:n.top,left:n.left,bottom:n.top+i,right:n.left+e,height:i,width:e}},n.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var n=document.documentElement.getBoundingClientRect();return{top:-n.top||document.body.scrollTop||window.scrollY||document.documentElement.scrollTop||0,left:-n.left||document.body.scrollLeft||window.scrollX||document.documentElement.scrollLeft||0}},n.prototype.change=function(n){return void 0===n&&(n=20),n>0?this._change.pipe(Object(u.a)(n)):this._change},n.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},n}();function _(n,t,e){return n||new f(t,e)}var m={provide:f,deps:[[new i.B,new i.L,f],l.a,i.A],useFactory:_},g=function(){}},"1VLl":function(n,t,e){"use strict";var i=e("rCTf"),l=e("+I/r");i.Observable.onErrorResumeNext=l.onErrorResumeNext},"1Yoh":function(n,t){n.exports=function(n){return null!=n&&null!=n.constructor&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)}},"1ZrL":function(n,t,e){"use strict";var i=e("rCTf"),l=e("lU4I");i.Observable.concat=l.concat},"1hN3":function(n,t,e){"use strict";var i=e("xx+E");t.bufferWhen=function(n){return i.bufferWhen(n)(this)}},"1k2o":function(n,t,e){"use strict";var i=e("rCTf"),l=e("33Pm");i.Observable.bindCallback=l.bindCallback},"1kxm":function(n,t,e){"use strict";t.FastMap=function(){function n(){this.values={}}return n.prototype.delete=function(n){return this.values[n]=null,!0},n.prototype.set=function(n,t){return this.values[n]=t,this},n.prototype.get=function(n){return this.values[n]},n.prototype.forEach=function(n,t){var e=this.values;for(var i in e)e.hasOwnProperty(i)&&null!==e[i]&&n.call(t,e[i],i)},n.prototype.clear=function(){this.values={}},n}()},"1r8+":function(n,t,e){"use strict";t.isArrayLike=function(n){return n&&"number"==typeof n.length}},"1wLk":function(n,t,e){"use strict";var i=e("TfWX"),l=e("6BaH");t.publishBehavior=function(n){return function(t){return l.multicast(new i.BehaviorSubject(n))(t)}}},"215F":function(n,t,e){"use strict";var i=e("TToO").__extends,l=e("mmVS");t.takeWhile=function(n){return function(t){return t.lift(new o(n))}};var o=function(){function n(n){this.predicate=n}return n.prototype.call=function(n,t){return t.subscribe(new r(n,this.predicate))},n}(),r=function(n){function t(t,e){n.call(this,t),this.predicate=e,this.index=0}return i(t,n),t.prototype._next=function(n){var t,e=this.destination;try{t=this.predicate(n,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(n,t)},t.prototype.nextOrComplete=function(n,t){var e=this.destination;Boolean(t)?e.next(n):e.complete()},t}(l.Subscriber)},"21It":function(n,t,e){"use strict";var i=e("FtD3");n.exports=function(n,t,e){var l=e.config.validateStatus;!l||l(e.status)?n(e):t(i("Request failed with status code "+e.status,e.config,null,e.request,e))}},2395:function(n,t,e){"use strict";var i=e("rCTf"),l=e("9TuE");i.Observable.prototype.isEmpty=l.isEmpty},"239S":function(n,t,e){"use strict";t.a=function(n){return function(t){return t.lift(new u(n))}};var i=e("TToO"),l=e("g5jc"),o=e("GK6M"),r=e("fKB6"),s=e("tZ2B"),a=e("PIsA"),u=function(){function n(n){this.closingSelector=n}return n.prototype.call=function(n,t){return t.subscribe(new c(n,this.closingSelector))},n}(),c=function(n){function t(t,e){n.call(this,t),this.destination=t,this.closingSelector=e,this.openWindow()}return Object(i.__extends)(t,n),t.prototype.notifyNext=function(n,t,e,i,l){this.openWindow(l)},t.prototype.notifyError=function(n,t){this._error(n)},t.prototype.notifyComplete=function(n){this.openWindow(n)},t.prototype._next=function(n){this.window.next(n)},t.prototype._error=function(n){this.window.error(n),this.destination.error(n),this.unsubscribeClosingNotification()},t.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},t.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},t.prototype.openWindow=function(n){void 0===n&&(n=null),n&&(this.remove(n),n.unsubscribe());var t=this.window;t&&t.complete();var e=this.window=new l.b;this.destination.next(e);var i=Object(o.a)(this.closingSelector)();if(i===r.a){var s=r.a.e;this.destination.error(s),this.window.error(s)}else this.add(this.closingNotification=Object(a.a)(this,i))},t}(s.a)},"2AEF":function(n,t,e){"use strict";var i=e("13YQ");t.exhaustMap=function(n,t){return i.exhaustMap(n,t)(this)}},"2ER/":function(n,t,e){"use strict";t.MapPolyfill=function(){function n(){this.size=0,this._values=[],this._keys=[]}return n.prototype.get=function(n){var t=this._keys.indexOf(n);return-1===t?void 0:this._values[t]},n.prototype.set=function(n,t){var e=this._keys.indexOf(n);return-1===e?(this._keys.push(n),this._values.push(t),this.size++):this._values[e]=t,this},n.prototype.delete=function(n){var t=this._keys.indexOf(n);return-1!==t&&(this._values.splice(t,1),this._keys.splice(t,1),this.size--,!0)},n.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},n.prototype.forEach=function(n,t){for(var e=0;e0;){var i=e.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,n.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var e=t.shift();this.destination.next(e.buffer),e.subscription.unsubscribe(),e.buffer=null,e.subscription=null}this.contexts=null,n.prototype._complete.call(this)},t.prototype.notifyNext=function(n,t,e,i,l){n?this.closeBuffer(n):this.openBuffer(t)},t.prototype.notifyComplete=function(n){this.closeBuffer(n.context)},t.prototype.openBuffer=function(n){try{var t=this.closingSelector.call(this,n);t&&this.trySubscribe(t)}catch(n){this._error(n)}},t.prototype.closeBuffer=function(n){var t=this.contexts;if(t&&n){var e=n.subscription;this.destination.next(n.buffer),t.splice(t.indexOf(n),1),this.remove(e),e.unsubscribe()}},t.prototype.trySubscribe=function(n){var t=this.contexts,e=new l.Subscription,i={buffer:[],subscription:e};t.push(i);var r=o.subscribeToResult(this,n,i);!r||r.closed?this.closeBuffer(i):(r.context=i,this.add(r),e.add(r))},t}(r.OuterSubscriber)},"319O":function(n,t,e){"use strict";t.a=function(){return Object(i.a)(1)};var i=e("8D5t")},"31jF":function(n,t,e){"use strict";t.a=function(){return function(n){return n.lift(new o)}};var i=e("TToO"),l=e("OVmG"),o=function(){function n(){}return n.prototype.call=function(n,t){return t.subscribe(new r(n))},n}(),r=function(n){function t(t){n.call(this,t)}return Object(i.__extends)(t,n),t.prototype.notifyComplete=function(n){var t=this.destination;t.next(n),t.complete()},t.prototype._next=function(n){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(l.a)},"33Pm":function(n,t,e){"use strict";var i=e("0EZR");t.bindCallback=i.BoundCallbackObservable.create},"3CJN":function(n,t,e){!function(n){"use strict";n.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(n){return/^nm$/i.test(n)},meridiem:function(n,t,e){return n<12?e?"vm":"VM":e?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}})}(e("PJh5"))},"3EIC":function(n,t,e){var i=e("xA5w"),l=e("Mdww");n.exports=function(n,t){var e=i(n),o=Number(t),r=e.getMonth()+o,s=new Date(0);s.setFullYear(e.getFullYear(),r,1),s.setHours(0,0,0,0);var a=l(s);return e.setMonth(r,Math.min(a,e.getDate())),e}},"3IRH":function(n,t){n.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},"3K28":function(n,t,e){!function(n){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),e="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],l=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;n.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,i){return n?/-MMM-/.test(i)?e[n.month()]:t[n.month()]:t},monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}})}(e("PJh5"))},"3LKG":function(n,t,e){!function(n){"use strict";n.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}})}(e("PJh5"))},"3MVc":function(n,t,e){!function(n){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},e={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},l={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},o=function(n){return function(t,e,o,r){var s=i(t),a=l[n][i(t)];return 2===s&&(a=a[e?0:1]),a.replace(/%d/i,t)}},r=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];n.defineLocale("ar",{months:r,monthsShort:r,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(n){return"\u0645"===n},meridiem:function(n,t,e){return n<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(n){return n.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(n){return e[n]}).replace(/\u060c/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(e("PJh5"))},"3a3m":function(n,t,e){"use strict";t.a=function(){return function(n){return Object(l.a)()(Object(i.a)(r)(n))}};var i=e("Jwyl"),l=e("0P3J"),o=e("g5jc");function r(){return new o.b}},"3eju":function(n,t,e){"use strict";var i=e("+Y2e");t.webSocket=i.WebSocketSubject.create},"3hfc":function(n,t,e){!function(n){"use strict";function t(n,t,e){var i,l;return"m"===e?t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===e?t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":n+" "+(i=+n,l={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[e].split("_"),i%10==1&&i%100!=11?l[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?l[1]:l[2])}n.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:t,mm:t,h:t,hh:t,d:"\u0434\u0437\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(n){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(n)},meridiem:function(n,t,e){return n<4?"\u043d\u043e\u0447\u044b":n<12?"\u0440\u0430\u043d\u0456\u0446\u044b":n<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return n%10!=2&&n%10!=3||n%100==12||n%100==13?n+"-\u044b":n+"-\u0456";case"D":return n+"-\u0433\u0430";default:return n}},week:{dow:1,doy:7}})}(e("PJh5"))},"3lw+":function(n,t,e){"use strict";e.d(t,"a",function(){return l});var i=e("Ne5x"),l=new(e("Z4xk").a)(i.a)},"48bo":function(n,t,e){"use strict";var i=e("rCTf"),l=e("Y3yw");i.Observable.prototype.race=l.race},"4Ie8":function(n,t,e){"use strict";var i=e("rCTf"),l=e("52Ty");i.Observable.prototype.publish=l.publish},"4Z4o":function(n,t,e){var i=e("3EIC");n.exports=function(n,t){var e=Number(t);return i(n,12*e)}},"4gbB":function(n,t,e){"use strict";t.a=function(n){return void 0===n&&(n=-1),function(t){return 0===n?new o.a:t.lift(new r(n<0?-1:n-1,t))}};var i=e("TToO"),l=e("OVmG"),o=e("+3/4"),r=function(){function n(n,t){this.count=n,this.source=t}return n.prototype.call=function(n,t){return t.subscribe(new s(n,this.count,this.source))},n}(),s=function(n){function t(t,e,i){n.call(this,t),this.count=e,this.source=i}return Object(i.__extends)(t,n),t.prototype.complete=function(){if(!this.isStopped){var t=this.source,e=this.count;if(0===e)return n.prototype.complete.call(this);e>-1&&(this.count=e-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(l.a)},"4zOZ":function(n,t,e){"use strict";e.d(t,"a",function(){return r});var i=e("TToO"),l=e("g5jc"),o=e("x6VL"),r=function(n){function t(t){n.call(this),this._value=t}return Object(i.__extends)(t,n),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var e=n.prototype._subscribe.call(this,t);return e&&!e.closed&&t.next(this._value),e},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},t.prototype.next=function(t){n.prototype.next.call(this,this._value=t)},t}(l.b)},"52Ty":function(n,t,e){"use strict";var i=e("i9tv");t.publish=function(n){return i.publish(n)(this)}},"5Agy":function(n,t,e){"use strict";t.a=function(n,t,e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(i.a)(n,t,e)(this)};var i=e("Qnch")},"5LW/":function(n,t,e){"use strict";var i=e("TToO").__extends,l=e("EEr4"),o=e("wAkD"),r=e("CURp");t.window=function(n){return function(t){return t.lift(new s(n))}};var s=function(){function n(n){this.windowBoundaries=n}return n.prototype.call=function(n,t){var e=new a(n),i=t.subscribe(e);return i.closed||e.add(r.subscribeToResult(e,this.windowBoundaries)),i},n}(),a=function(n){function t(t){n.call(this,t),this.window=new l.Subject,t.next(this.window)}return i(t,n),t.prototype.notifyNext=function(n,t,e,i,l){this.openWindow()},t.prototype.notifyError=function(n,t){this._error(n)},t.prototype.notifyComplete=function(n){this._complete()},t.prototype._next=function(n){this.window.next(n)},t.prototype._error=function(n){this.window.error(n),this.destination.error(n)},t.prototype._complete=function(){this.window.complete(),this.destination.complete()},t.prototype._unsubscribe=function(){this.window=null},t.prototype.openWindow=function(){var n=this.window;n&&n.complete();var t=this.destination,e=this.window=new l.Subject;t.next(e)},t}(o.OuterSubscriber)},"5M4v":function(n,t,e){"use strict";t.a=function(){for(var n=[],t=0;tthis.index},n.prototype.hasCompleted=function(){return this.array.length===this.index},n}(),_=function(n){function t(t,e,i){n.call(this,t),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return Object(i.__extends)(t,n),t.prototype[u.a]=function(){return this},t.prototype.next=function(){var n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(n,t,e,i,l){this.buffer.push(t),this.parent.checkIterators()},t.prototype.subscribe=function(n,t){return Object(a.a)(this,this.observable,this,t)},t}(s.a)},"5Omq":function(n,t,e){!function(n){"use strict";n.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(e("PJh5"))},"5SNd":function(n,t,e){!function(n){"use strict";var t={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};n.defineLocale("tg",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u041f\u0430\u0433\u043e\u04b3 \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(n,t){return 12===n&&(n=0),"\u0448\u0430\u0431"===t?n<4?n:n+12:"\u0441\u0443\u0431\u04b3"===t?n:"\u0440\u04ef\u0437"===t?n>=11?n:n+12:"\u0431\u0435\u0433\u043e\u04b3"===t?n+12:void 0},meridiem:function(n,t,e){return n<4?"\u0448\u0430\u0431":n<11?"\u0441\u0443\u0431\u04b3":n<16?"\u0440\u04ef\u0437":n<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(n){return n+(t[n]||t[n%10]||t[n>=100?100:null])},week:{dow:1,doy:7}})}(e("PJh5"))},"5VQ+":function(n,t,e){"use strict";var i=e("cGG2");n.exports=function(n,t){i.forEach(n,function(e,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(n[t]=e,delete n[i])})}},"5X6E":function(n,t,e){"use strict";t.a=function(n,t){return function(e){return e.lift(new r(n,t))}};var i=e("TToO"),l=e("tZ2B"),o=e("PIsA"),r=function(){function n(n,t){this.project=n,this.resultSelector=t}return n.prototype.call=function(n,t){return t.subscribe(new s(n,this.project,this.resultSelector))},n}(),s=function(n){function t(t,e,i){n.call(this,t),this.project=e,this.resultSelector=i,this.index=0}return Object(i.__extends)(t,n),t.prototype._next=function(n){var t,e=this.index++;try{t=this.project(n,e)}catch(n){return void this.destination.error(n)}this._innerSub(t,n,e)},t.prototype._innerSub=function(n,t,e){var i=this.innerSubscription;i&&i.unsubscribe(),this.add(this.innerSubscription=Object(o.a)(this,n,t,e))},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||n.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.remove(t),this.innerSubscription=null,this.isStopped&&n.prototype._complete.call(this)},t.prototype.notifyNext=function(n,t,e,i,l){this.resultSelector?this._tryNotifyNext(n,t,e,i):this.destination.next(t)},t.prototype._tryNotifyNext=function(n,t,e,i){var l;try{l=this.resultSelector(n,t,e,i)}catch(n){return void this.destination.error(n)}this.destination.next(l)},t}(l.a)},"5c/I":function(n,t,e){"use strict";var i=e("TToO").__extends,l=e("EEr4"),o=e("B00U");t.AsyncSubject=function(n){function t(){n.apply(this,arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}return i(t,n),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),o.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),o.Subscription.EMPTY):n.prototype._subscribe.call(this,t)},t.prototype.next=function(n){this.hasCompleted||(this.value=n,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||n.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&n.prototype.next.call(this,this.value),n.prototype.complete.call(this)},t}(l.Subject)},"5et3":function(n,t,e){"use strict";var i=e("TToO").__extends,l=e("mmVS"),o=e("8Z8y"),r=e("jBEF");t.take=function(n){return function(t){return 0===n?new r.EmptyObservable:t.lift(new s(n))}};var s=function(){function n(n){if(this.total=n,this.total<0)throw new o.ArgumentOutOfRangeError}return n.prototype.call=function(n,t){return t.subscribe(new a(n,this.total))},n}(),a=function(n){function t(t,e){n.call(this,t),this.total=e,this.count=0}return i(t,n),t.prototype._next=function(n){var t=this.total,e=++this.count;e<=t&&(this.destination.next(n),e===t&&(this.destination.complete(),this.unsubscribe()))},t}(l.Subscriber)},"5j66":function(n,t,e){!function(n){"use strict";var t={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},e={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};n.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(n){return"\u179b\u17d2\u1784\u17b6\u1785"===n},meridiem:function(n,t,e){return n<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(n){return n.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(n){return e[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},week:{dow:1,doy:4}})}(e("PJh5"))},"5nj5":function(n,t,e){"use strict";var i=e("LhE+");t._if=i.IfObservable.create},"5pRa":function(n,t,e){"use strict";var i=e("CGGv"),l=e("tyXZ");t.timestamp=function(n){return void 0===n&&(n=i.async),l.timestamp(n)(this)}},"5vPg":function(n,t,e){!function(n){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},e={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function i(n,t,e,i){var l="";if(t)switch(e){case"s":l="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":l="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":l="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":l="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":l="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":l="%d \u0924\u093e\u0938";break;case"d":l="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":l="%d \u0926\u093f\u0935\u0938";break;case"M":l="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":l="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":l="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":l="%d \u0935\u0930\u094d\u0937\u0947"}else switch(e){case"s":l="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":l="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":l="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":l="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":l="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":l="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":l="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":l="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":l="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":l="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":l="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":l="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return l.replace(/%d/i,n)}n.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(n){return n.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(n){return e[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(n,t){return 12===n&&(n=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===t?n<4?n:n+12:"\u0938\u0915\u093e\u0933\u0940"===t?n:"\u0926\u0941\u092a\u093e\u0930\u0940"===t?n>=10?n:n+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===t?n+12:void 0},meridiem:function(n,t,e){return n<4?"\u0930\u093e\u0924\u094d\u0930\u0940":n<10?"\u0938\u0915\u093e\u0933\u0940":n<17?"\u0926\u0941\u092a\u093e\u0930\u0940":n<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(e("PJh5"))},"607n":function(n,t){n.exports=function(n){return n instanceof Date}},"69uX":function(n,t,e){"use strict";var i=e("Lndg");t.distinct=function(n,t){return i.distinct(n,t)(this)}},"6BaH":function(n,t,e){"use strict";var i=e("sIYO");t.multicast=function(n,t){return function(e){var o;if(o="function"==typeof n?n:function(){return n},"function"==typeof t)return e.lift(new l(o,t));var r=Object.create(e,i.connectableObservableDescriptor);return r.source=e,r.subjectFactory=o,r}};var l=function(){function n(n,t){this.subjectFactory=n,this.selector=t}return n.prototype.call=function(n,t){var e=this.selector,i=this.subjectFactory(),l=e(i).subscribe(n);return l.add(t.subscribe(i)),l},n}();t.MulticastOperator=l},"6DZ9":function(n,t,e){"use strict";t.a=function(){for(var n=[],t=0;t=100?100:null])},week:{dow:1,doy:7}})}(e("PJh5"))},"6gFN":function(n,t,e){"use strict";var i=e("rCTf"),l=e("9oiU");i.Observable.prototype.mapTo=l.mapTo},"6hPP":function(n,t,e){"use strict";var i=e("rCTf"),l=e("t2Bb");i.Observable.prototype.sampleTime=l.sampleTime},"6s76":function(n,t,e){"use strict";var i=e("rCTf"),l=e("cJSH");i.Observable.prototype.groupBy=l.groupBy},"6sdf":function(n,t,e){"use strict";e.d(t,"b",function(){return s}),e.d(t,"a",function(){return a}),e.d(t,"c",function(){return u});var i=e("WT6e"),l=e("akf3"),o=e("g5jc"),r=e("JXyw"),s=function(){function n(){}return n.prototype.create=function(n){return"undefined"==typeof MutationObserver?null:new MutationObserver(n)},n}(),a=function(){function n(n,t,e){this._mutationObserverFactory=n,this._elementRef=t,this._ngZone=e,this._disabled=!1,this.event=new i.n,this._debouncer=new o.b}return Object.defineProperty(n.prototype,"disabled",{get:function(){return this._disabled},set:function(n){this._disabled=Object(l.a)(n)},enumerable:!0,configurable:!0}),n.prototype.ngAfterContentInit=function(){var n=this;this.debounce>0?this._ngZone.runOutsideAngular(function(){n._debouncer.pipe(Object(r.a)(n.debounce)).subscribe(function(t){return n.event.emit(t)})}):this._debouncer.subscribe(function(t){return n.event.emit(t)}),this._observer=this._ngZone.runOutsideAngular(function(){return n._mutationObserverFactory.create(function(t){n._debouncer.next(t)})}),this.disabled||this._enable()},n.prototype.ngOnChanges=function(n){n.disabled&&(n.disabled.currentValue?this._disable():this._enable())},n.prototype.ngOnDestroy=function(){this._disable(),this._debouncer.complete()},n.prototype._disable=function(){this._observer&&this._observer.disconnect()},n.prototype._enable=function(){this._observer&&this._observer.observe(this._elementRef.nativeElement,{characterData:!0,childList:!0,subtree:!0})},n}(),u=function(){}},"77/N":function(n,t,e){"use strict";var i=e("rCTf"),l=e("l19J");i.Observable.prototype.takeLast=l.takeLast},"7DMc":function(n,t,e){"use strict";e.d(t,"b",function(){return y}),e.d(t,"c",function(){return c}),e.d(t,"n",function(){return v}),e.d(t,"a",function(){return b}),e.d(t,"d",function(){return w}),e.d(t,"o",function(){return M}),e.d(t,"p",function(){return W}),e.d(t,"q",function(){return U}),e.d(t,"r",function(){return nn}),e.d(t,"s",function(){return an}),e.d(t,"t",function(){return T}),e.d(t,"h",function(){return fn}),e.d(t,"j",function(){return cn}),e.d(t,"l",function(){return mn}),e.d(t,"v",function(){return _n}),e.d(t,"f",function(){return gn}),e.d(t,"e",function(){return Z}),e.d(t,"g",function(){return J}),e.d(t,"i",function(){return K}),e.d(t,"m",function(){return d}),e.d(t,"w",function(){return f}),e.d(t,"k",function(){return bn}),e.d(t,"u",function(){return wn}),e.d(t,"x",function(){return yn}),e.d(t,"y",function(){return vn}),e.d(t,"z",function(){return k});var i=e("TToO"),l=e("WT6e"),o=e("SALZ"),r=e("i9s7"),s=e("gL+p"),a=e("OE0E"),u=function(){function n(){}return Object.defineProperty(n.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),n.prototype.reset=function(n){void 0===n&&(n=void 0),this.control&&this.control.reset(n)},n.prototype.hasError=function(n,t){return!!this.control&&this.control.hasError(n,t)},n.prototype.getError=function(n,t){return this.control?this.control.getError(n,t):null},n}(),c=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Object(i.__extends)(t,n),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(u);function h(n){return null==n||0===n.length}var d=new l.q("NgValidators"),p=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,f=function(){function n(){}return n.min=function(n){return function(t){if(h(t.value)||h(n))return null;var e=parseFloat(t.value);return!isNaN(e)&&en?{max:{max:n,actual:t.value}}:null}},n.required=function(n){return h(n.value)?{required:!0}:null},n.requiredTrue=function(n){return!0===n.value?null:{required:!0}},n.email=function(n){return p.test(n.value)?null:{email:!0}},n.minLength=function(n){return function(t){if(h(t.value))return null;var e=t.value?t.value.length:0;return en?{maxlength:{requiredLength:n,actualLength:e}}:null}},n.pattern=function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),function(n){if(h(n.value))return null;var t=n.value;return e.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):n.nullValidator;var e,i},n.nullValidator=function(n){return null},n.compose=function(n){if(!n)return null;var t=n.filter(_);return 0==t.length?null:function(n){return g(function(n,e){return t.map(function(t){return t(n)})}(n))}},n.composeAsync=function(n){if(!n)return null;var t=n.filter(_);return 0==t.length?null:function(n){var e=function(n,e){return t.map(function(t){return t(n)})}(n).map(m);return s.a.call(Object(o.a)(e),g)}},n}();function _(n){return null!=n}function m(n){var t=Object(l._16)(n)?Object(r.a)(n):n;if(!Object(l._15)(t))throw new Error("Expected validator to return Promise or Observable.");return t}function g(n){var t=n.reduce(function(n,t){return null!=t?Object(i.__assign)({},n,t):n},{});return 0===Object.keys(t).length?null:t}var v=new l.q("NgValueAccessor"),y=function(){function n(n,t){this._renderer=n,this._elementRef=t,this.onChange=function(n){},this.onTouched=function(){}}return n.prototype.writeValue=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"checked",n)},n.prototype.registerOnChange=function(n){this.onChange=n},n.prototype.registerOnTouched=function(n){this.onTouched=n},n.prototype.setDisabledState=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",n)},n}(),b=new l.q("CompositionEventMode"),w=function(){function n(n,t,e){var i;this._renderer=n,this._elementRef=t,this._compositionMode=e,this.onChange=function(n){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=Object(a.s)()?Object(a.s)().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return n.prototype.writeValue=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==n?"":n)},n.prototype.registerOnChange=function(n){this.onChange=n},n.prototype.registerOnTouched=function(n){this.onTouched=n},n.prototype.setDisabledState=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",n)},n.prototype._handleInput=function(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)},n.prototype._compositionStart=function(){this._composing=!0},n.prototype._compositionEnd=function(n){this._composing=!1,this._compositionMode&&this.onChange(n)},n}();function C(n){return n.validate?function(t){return n.validate(t)}:n}function x(n){return n.validate?function(t){return n.validate(t)}:n}var S=function(){function n(n,t){this._renderer=n,this._elementRef=t,this.onChange=function(n){},this.onTouched=function(){}}return n.prototype.writeValue=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==n?"":n)},n.prototype.registerOnChange=function(n){this.onChange=function(t){n(""==t?null:parseFloat(t))}},n.prototype.registerOnTouched=function(n){this.onTouched=n},n.prototype.setDisabledState=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",n)},n}();function O(){throw new Error("unimplemented")}var M=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(i.__extends)(t,n),Object.defineProperty(t.prototype,"validator",{get:function(){return O()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return O()},enumerable:!0,configurable:!0}),t}(u),k=function(){function n(){this._accessors=[]}return n.prototype.add=function(n,t){this._accessors.push([n,t])},n.prototype.remove=function(n){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===n)return void this._accessors.splice(t,1)},n.prototype.select=function(n){var t=this;this._accessors.forEach(function(e){t._isSameGroup(e,n)&&e[1]!==n&&e[1].fireUncheck(n.value)})},n.prototype._isSameGroup=function(n,t){return!!n[0].control&&n[0]._parent===t._control._parent&&n[1].name===t.name},n}(),T=function(){function n(n,t,e,i){this._renderer=n,this._elementRef=t,this._registry=e,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return n.prototype.ngOnInit=function(){this._control=this._injector.get(M),this._checkName(),this._registry.add(this._control,this)},n.prototype.ngOnDestroy=function(){this._registry.remove(this)},n.prototype.writeValue=function(n){this._state=n===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},n.prototype.registerOnChange=function(n){var t=this;this._fn=n,this.onChange=function(){n(t.value),t._registry.select(t)}},n.prototype.fireUncheck=function(n){this.writeValue(n)},n.prototype.registerOnTouched=function(n){this.onTouched=n},n.prototype.setDisabledState=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",n)},n.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},n.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},n}();function z(n,t){return t.path.concat([n])}function D(n,t){n||E(t,"Cannot find control with"),t.valueAccessor||E(t,"No value accessor for form control with"),n.validator=f.compose([n.validator,t.validator]),n.asyncValidator=f.composeAsync([n.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(n.value),function(n,t){t.valueAccessor.registerOnChange(function(e){n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&P(n,t)})}(n,t),function(n,t){n.registerOnChange(function(n,e){t.valueAccessor.writeValue(n),e&&t.viewToModelUpdate(n)})}(n,t),function(n,t){t.valueAccessor.registerOnTouched(function(){n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&P(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),t.valueAccessor.setDisabledState&&n.registerOnDisabledChange(function(n){t.valueAccessor.setDisabledState(n)}),t._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return n.updateValueAndValidity()})}),t._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return n.updateValueAndValidity()})})}function P(n,t){t.viewToModelUpdate(n._pendingValue),n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),n._pendingChange=!1}function I(n,t){null==n&&E(t,"Cannot find control with"),n.validator=f.compose([n.validator,t.validator]),n.asyncValidator=f.composeAsync([n.asyncValidator,t.asyncValidator])}function L(n){return E(n,"There is no FormControl instance attached to form control element with")}function E(n,t){var e;throw e=n.path.length>1?"path: '"+n.path.join(" -> ")+"'":n.path[0]?"name: '"+n.path+"'":"unspecified name attribute",new Error(t+" "+e)}function A(n){return null!=n?f.compose(n.map(C)):null}function F(n){return null!=n?f.composeAsync(n.map(x)):null}function N(n,t){if(!n.hasOwnProperty("model"))return!1;var e=n.model;return!!e.isFirstChange()||!Object(l._17)(t,e.currentValue)}var j=[y,function(){function n(n,t){this._renderer=n,this._elementRef=t,this.onChange=function(n){},this.onTouched=function(){}}return n.prototype.writeValue=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(n))},n.prototype.registerOnChange=function(n){this.onChange=function(t){n(""==t?null:parseFloat(t))}},n.prototype.registerOnTouched=function(n){this.onTouched=n},n.prototype.setDisabledState=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",n)},n}(),S,function(){function n(n,t){this._renderer=n,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(n){},this.onTouched=function(){},this._compareWith=l._17}return Object.defineProperty(n.prototype,"compareWith",{set:function(n){if("function"!=typeof n)throw new Error("compareWith must be a function, but received "+JSON.stringify(n));this._compareWith=n},enumerable:!0,configurable:!0}),n.prototype.writeValue=function(n){this.value=n;var t=this._getOptionId(n);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var e=function(n,t){return null==n?""+t:(t&&"object"==typeof t&&(t="Object"),(n+": "+t).slice(0,50))}(t,n);this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},n.prototype.registerOnChange=function(n){var t=this;this.onChange=function(e){t.value=t._getOptionValue(e),n(t.value)}},n.prototype.registerOnTouched=function(n){this.onTouched=n},n.prototype.setDisabledState=function(n){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",n)},n.prototype._registerOption=function(){return(this._idCounter++).toString()},n.prototype._getOptionId=function(n){for(var t=0,e=Array.from(this._optionMap.keys());t-1)}}else t=function(n,t){n._setSelected(!1)};this._optionMap.forEach(t)},n.prototype.registerOnChange=function(n){var t=this;this.onChange=function(e){var i=[];if(e.hasOwnProperty("selectedOptions"))for(var l=e.selectedOptions,o=0;o-1&&n.splice(e,1)}var V=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Object(i.__extends)(t,n),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return z(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return A(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return F(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(c),B=function(){function n(n){this._cd=n}return Object.defineProperty(n.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),n}(),W=function(n){function t(t){return n.call(this,t)||this}return Object(i.__extends)(t,n),t}(B),U=function(n){function t(t){return n.call(this,t)||this}return Object(i.__extends)(t,n),t}(B);function q(n){var t=$(n)?n.validators:n;return Array.isArray(t)?A(t):t||null}function G(n,t){var e=$(t)?t.asyncValidators:n;return Array.isArray(e)?F(e):e||null}function $(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}var X=function(){function n(n,t){this.validator=n,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(n.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),n.prototype.setValidators=function(n){this.validator=q(n)},n.prototype.setAsyncValidators=function(n){this.asyncValidator=G(n)},n.prototype.clearValidators=function(){this.validator=null},n.prototype.clearAsyncValidators=function(){this.asyncValidator=null},n.prototype.markAsTouched=function(n){void 0===n&&(n={}),this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)},n.prototype.markAsUntouched=function(n){void 0===n&&(n={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(n){n.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)},n.prototype.markAsDirty=function(n){void 0===n&&(n={}),this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)},n.prototype.markAsPristine=function(n){void 0===n&&(n={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(n){n.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)},n.prototype.markAsPending=function(n){void 0===n&&(n={}),this.status="PENDING",this._parent&&!n.onlySelf&&this._parent.markAsPending(n)},n.prototype.disable=function(n){void 0===n&&(n={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object(i.__assign)({},n,{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(n),this._onDisabledChange.forEach(function(n){return n(!0)})},n.prototype.enable=function(n){void 0===n&&(n={}),this.status="VALID",this._forEachChild(function(t){t.enable(Object(i.__assign)({},n,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(n),this._onDisabledChange.forEach(function(n){return n(!1)})},n.prototype._updateAncestors=function(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),this._parent._updatePristine(),this._parent._updateTouched())},n.prototype.setParent=function(n){this._parent=n},n.prototype.updateValueAndValidity=function(n){void 0===n&&(n={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)},n.prototype._updateTreeValidity=function(n){void 0===n&&(n={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(n)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})},n.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},n.prototype._runValidator=function(){return this.validator?this.validator(this):null},n.prototype._runAsyncValidator=function(n){var t=this;if(this.asyncValidator){this.status="PENDING";var e=m(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(function(e){return t.setErrors(e,{emitEvent:n})})}},n.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},n.prototype.setErrors=function(n,t){void 0===t&&(t={}),this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)},n.prototype.get=function(n){return function(n,t,e){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce(function(n,t){return n instanceof K?n.controls[t]||null:n instanceof Z&&n.at(t)||null},n))}(this,n)},n.prototype.getError=function(n,t){var e=t?this.get(t):this;return e&&e.errors?e.errors[n]:null},n.prototype.hasError=function(n,t){return!!this.getError(n,t)},Object.defineProperty(n.prototype,"root",{get:function(){for(var n=this;n._parent;)n=n._parent;return n},enumerable:!0,configurable:!0}),n.prototype._updateControlsErrors=function(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)},n.prototype._initObservables=function(){this.valueChanges=new l.n,this.statusChanges=new l.n},n.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},n.prototype._anyControlsHaveStatus=function(n){return this._anyControls(function(t){return t.status===n})},n.prototype._anyControlsDirty=function(){return this._anyControls(function(n){return n.dirty})},n.prototype._anyControlsTouched=function(){return this._anyControls(function(n){return n.touched})},n.prototype._updatePristine=function(n){void 0===n&&(n={}),this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)},n.prototype._updateTouched=function(n){void 0===n&&(n={}),this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)},n.prototype._isBoxedValue=function(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n},n.prototype._registerOnCollectionChange=function(n){this._onCollectionChange=n},n.prototype._setUpdateStrategy=function(n){$(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)},n}(),J=function(n){function t(t,e,i){void 0===t&&(t=null);var l=n.call(this,q(e),G(i,e))||this;return l._onChange=[],l._applyFormState(t),l._setUpdateStrategy(e),l.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),l._initObservables(),l}return Object(i.__extends)(t,n),t.prototype.setValue=function(n,t){var e=this;void 0===t&&(t={}),this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(n){return n(e.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(n,t){void 0===t&&(t={}),this.setValue(n,t)},t.prototype.reset=function(n,t){void 0===n&&(n=null),void 0===t&&(t={}),this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(n){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(n){this._onChange.push(n)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(n){this._onDisabledChange.push(n)},t.prototype._forEachChild=function(n){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},t.prototype._applyFormState=function(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n},t}(X),K=function(n){function t(t,e,i){var l=n.call(this,q(e),G(i,e))||this;return l.controls=t,l._initObservables(),l._setUpdateStrategy(e),l._setUpControls(),l.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),l}return Object(i.__extends)(t,n),t.prototype.registerControl=function(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(n,t){this.registerControl(n,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(n){this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),delete this.controls[n],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(n,t){this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled},t.prototype.setValue=function(n,t){var e=this;void 0===t&&(t={}),this._checkAllValuesPresent(n),Object.keys(n).forEach(function(i){e._throwIfControlMissing(i),e.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(n,t){var e=this;void 0===t&&(t={}),Object.keys(n).forEach(function(i){e.controls[i]&&e.controls[i].patchValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(n,t){void 0===n&&(n={}),void 0===t&&(t={}),this._forEachChild(function(e,i){e.reset(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(n,t,e){return n[e]=t instanceof J?t.value:t.getRawValue(),n})},t.prototype._syncPendingControls=function(){var n=this._reduceChildren(!1,function(n,t){return!!t._syncPendingControls()||n});return n&&this.updateValueAndValidity({onlySelf:!0}),n},t.prototype._throwIfControlMissing=function(n){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[n])throw new Error("Cannot find form control with name: "+n+".")},t.prototype._forEachChild=function(n){var t=this;Object.keys(this.controls).forEach(function(e){return n(t.controls[e],e)})},t.prototype._setUpControls=function(){var n=this;this._forEachChild(function(t){t.setParent(n),t._registerOnCollectionChange(n._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(n){var t=this,e=!1;return this._forEachChild(function(i,l){e=e||t.contains(l)&&n(i)}),e},t.prototype._reduceValue=function(){var n=this;return this._reduceChildren({},function(t,e,i){return(e.enabled||n.disabled)&&(t[i]=e.value),t})},t.prototype._reduceChildren=function(n,t){var e=n;return this._forEachChild(function(n,i){e=t(e,n,i)}),e},t.prototype._allControlsDisabled=function(){for(var n=0,t=Object.keys(this.controls);n0||this.disabled},t.prototype._checkAllValuesPresent=function(n){this._forEachChild(function(t,e){if(void 0===n[e])throw new Error("Must supply a value for form control with name: '"+e+"'.")})},t}(X),Z=function(n){function t(t,e,i){var l=n.call(this,q(e),G(i,e))||this;return l.controls=t,l._initObservables(),l._setUpdateStrategy(e),l._setUpControls(),l.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),l}return Object(i.__extends)(t,n),t.prototype.at=function(n){return this.controls[n]},t.prototype.push=function(n){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(n,t){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(n){this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),this.controls.splice(n,1),this.updateValueAndValidity()},t.prototype.setControl=function(n,t){this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),this.controls.splice(n,1),t&&(this.controls.splice(n,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(n,t){var e=this;void 0===t&&(t={}),this._checkAllValuesPresent(n),n.forEach(function(n,i){e._throwIfControlMissing(i),e.at(i).setValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(n,t){var e=this;void 0===t&&(t={}),n.forEach(function(n,i){e.at(i)&&e.at(i).patchValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(n,t){void 0===n&&(n=[]),void 0===t&&(t={}),this._forEachChild(function(e,i){e.reset(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(n){return n instanceof J?n.value:n.getRawValue()})},t.prototype._syncPendingControls=function(){var n=this.controls.reduce(function(n,t){return!!t._syncPendingControls()||n},!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n},t.prototype._throwIfControlMissing=function(n){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(n))throw new Error("Cannot find form control at index "+n)},t.prototype._forEachChild=function(n){this.controls.forEach(function(t,e){n(t,e)})},t.prototype._updateValue=function(){var n=this;this.value=this.controls.filter(function(t){return t.enabled||n.disabled}).map(function(n){return n.value})},t.prototype._anyControls=function(n){return this.controls.some(function(t){return t.enabled&&n(t)})},t.prototype._setUpControls=function(){var n=this;this._forEachChild(function(t){return n._registerControl(t)})},t.prototype._checkAllValuesPresent=function(n){this._forEachChild(function(t,e){if(void 0===n[e])throw new Error("Must supply a value for form control at index: "+e+".")})},t.prototype._allControlsDisabled=function(){for(var n=0,t=this.controls;n0||this.disabled},t.prototype._registerControl=function(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)},t}(X),Q=Promise.resolve(null),nn=function(n){function t(t,e){var i=n.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new l.n,i.form=new K({},A(t),F(e)),i}return Object(i.__extends)(t,n),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(n){var t=this;Q.then(function(){var e=t._findContainer(n.path);n.control=e.registerControl(n.name,n.control),D(n.control,n),n.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(n)})},t.prototype.getControl=function(n){return this.form.get(n.path)},t.prototype.removeControl=function(n){var t=this;Q.then(function(){var e=t._findContainer(n.path);e&&e.removeControl(n.name),R(t._directives,n)})},t.prototype.addFormGroup=function(n){var t=this;Q.then(function(){var e=t._findContainer(n.path),i=new K({});I(i,n),e.registerControl(n.name,i),i.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(n){var t=this;Q.then(function(){var e=t._findContainer(n.path);e&&e.removeControl(n.name)})},t.prototype.getFormGroup=function(n){return this.form.get(n.path)},t.prototype.updateModel=function(n,t){var e=this;Q.then(function(){e.form.get(n.path).setValue(t)})},t.prototype.setValue=function(n){this.control.setValue(n)},t.prototype.onSubmit=function(n){return this.submitted=!0,Y(this.form,this._directives),this.ngSubmit.emit(n),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(n){void 0===n&&(n=void 0),this.form.reset(n),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(n){return n.pop(),n.length?this.form.get(n):this.form},t}(c),tn='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',en='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',ln='\n
\n
\n \n
\n
',on=function(){function n(){}return n.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+tn+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},n.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+en+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+ln)},n.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},n.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+en+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+ln)},n}(),rn=function(n){function t(t,e,i){var l=n.call(this)||this;return l._parent=t,l._validators=e,l._asyncValidators=i,l}return Object(i.__extends)(t,n),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof nn||on.modelGroupParentException()},t}(V),sn=Promise.resolve(null),an=function(n){function t(t,e,i,o){var r=n.call(this)||this;return r.control=new J,r._registered=!1,r.update=new l.n,r._parent=t,r._rawValidators=e||[],r._rawAsyncValidators=i||[],r.valueAccessor=H(r,o),r}return Object(i.__extends)(t,n),t.prototype.ngOnChanges=function(n){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in n&&this._updateDisabled(n),N(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?z(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return A(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return F(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(n){this.viewModel=n,this.update.emit(n)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){D(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof rn)&&this._parent instanceof V?on.formGroupNameException():this._parent instanceof rn||this._parent instanceof nn||on.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||on.missingNameException()},t.prototype._updateValue=function(n){var t=this;sn.then(function(){t.control.setValue(n,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(n){var t=this,e=n.isDisabled.currentValue,i=""===e||e&&"false"!==e;sn.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})},t}(M),un=function(){function n(){}return n.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+tn)},n.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+en+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+ln)},n.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+tn)},n.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+en)},n.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},n.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},n}(),cn=function(n){function t(t,e){var i=n.call(this)||this;return i._validators=t,i._asyncValidators=e,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new l.n,i}return Object(i.__extends)(t,n),t.prototype.ngOnChanges=function(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(n){var t=this.form.get(n.path);return D(t,n),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),t},t.prototype.getControl=function(n){return this.form.get(n.path)},t.prototype.removeControl=function(n){R(this.directives,n)},t.prototype.addFormGroup=function(n){var t=this.form.get(n.path);I(t,n),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(n){},t.prototype.getFormGroup=function(n){return this.form.get(n.path)},t.prototype.addFormArray=function(n){var t=this.form.get(n.path);I(t,n),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(n){},t.prototype.getFormArray=function(n){return this.form.get(n.path)},t.prototype.updateModel=function(n,t){this.form.get(n.path).setValue(t)},t.prototype.onSubmit=function(n){return this.submitted=!0,Y(this.form,this.directives),this.ngSubmit.emit(n),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(n){void 0===n&&(n=void 0),this.form.reset(n),this.submitted=!1},t.prototype._updateDomValue=function(){var n=this;this.directives.forEach(function(t){var e=n.form.get(t.path);t.control!==e&&(function(n,t){t.valueAccessor.registerOnChange(function(){return L(t)}),t.valueAccessor.registerOnTouched(function(){return L(t)}),t._rawValidators.forEach(function(n){n.registerOnValidatorChange&&n.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(n){n.registerOnValidatorChange&&n.registerOnValidatorChange(null)}),n&&n._clearChangeFns()}(t.control,t),e&&D(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var n=this;this.form._registerOnCollectionChange(function(){return n._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var n=A(this._validators);this.form.validator=f.compose([this.form.validator,n]);var t=F(this._asyncValidators);this.form.asyncValidator=f.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||un.missingFormException()},t}(c),hn=function(n){function t(t,e,i){var l=n.call(this)||this;return l._parent=t,l._validators=e,l._asyncValidators=i,l}return Object(i.__extends)(t,n),t.prototype._checkParentType=function(){pn(this._parent)&&un.groupParentException()},t}(V),dn=function(n){function t(t,e,i){var l=n.call(this)||this;return l._parent=t,l._validators=e,l._asyncValidators=i,l}return Object(i.__extends)(t,n),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return z(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return A(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return F(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){pn(this._parent)&&un.arrayParentException()},t}(c);function pn(n){return!(n instanceof hn||n instanceof cn||n instanceof dn)}var fn=function(n){function t(t,e,i,o){var r=n.call(this)||this;return r._added=!1,r.update=new l.n,r._parent=t,r._rawValidators=e||[],r._rawAsyncValidators=i||[],r.valueAccessor=H(r,o),r}return Object(i.__extends)(t,n),Object.defineProperty(t.prototype,"isDisabled",{set:function(n){un.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(n){this._added||this._setUpControl(),N(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(n){this.viewModel=n,this.update.emit(n)},Object.defineProperty(t.prototype,"path",{get:function(){return z(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return A(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return F(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof hn)&&this._parent instanceof V?un.ngModelGroupException():this._parent instanceof hn||this._parent instanceof cn||this._parent instanceof dn||un.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t}(M),_n=function(){function n(){}return Object.defineProperty(n.prototype,"required",{get:function(){return this._required},set:function(n){this._required=null!=n&&!1!==n&&""+n!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),n.prototype.validate=function(n){return this.required?f.required(n):null},n.prototype.registerOnValidatorChange=function(n){this._onChange=n},n}(),mn=function(){function n(){}return n.prototype.ngOnChanges=function(n){"maxlength"in n&&(this._createValidator(),this._onChange&&this._onChange())},n.prototype.validate=function(n){return null!=this.maxlength?this._validator(n):null},n.prototype.registerOnValidatorChange=function(n){this._onChange=n},n.prototype._createValidator=function(){this._validator=f.maxLength(parseInt(this.maxlength,10))},n}(),gn=function(){function n(){}return n.prototype.group=function(n,t){void 0===t&&(t=null);var e=this._reduceControls(n);return new K(e,null!=t?t.validator:null,null!=t?t.asyncValidator:null)},n.prototype.control=function(n,t,e){return new J(n,t,e)},n.prototype.array=function(n,t,e){var i=this,l=n.map(function(n){return i._createControl(n)});return new Z(l,t,e)},n.prototype._reduceControls=function(n){var t=this,e={};return Object.keys(n).forEach(function(i){e[i]=t._createControl(n[i])}),e},n.prototype._createControl=function(n){return n instanceof J||n instanceof K||n instanceof Z?n:Array.isArray(n)?this.control(n[0],n.length>1?n[1]:null,n.length>2?n[2]:null):this.control(n)},n}(),vn=function(){},yn=function(){},bn=function(){},wn=function(){}},"7FaQ":function(n,t,e){"use strict";var i=e("rCTf"),l=e("Llwz");i.Observable.prototype.window=l.window},"7Gky":function(n,t,e){"use strict";t.not=function(n,t){function e(){return!e.pred.apply(e.thisArg,arguments)}return e.pred=n,e.thisArg=t,e}},"7GwW":function(n,t,e){"use strict";var i=e("cGG2"),l=e("21It"),o=e("DQCr"),r=e("oJlt"),s=e("GHBc"),a=e("FtD3");n.exports=function(n){return new Promise(function(t,u){var c=n.data,h=n.headers;i.isFormData(c)&&delete h["Content-Type"];var d=new XMLHttpRequest;if(n.auth&&(h.Authorization="Basic "+btoa((n.auth.username||"")+":"+(n.auth.password||""))),d.open(n.method.toUpperCase(),o(n.url,n.params,n.paramsSerializer),!0),d.timeout=n.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var e="getAllResponseHeaders"in d?r(d.getAllResponseHeaders()):null;l(t,u,{data:n.responseType&&"text"!==n.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:e,config:n,request:d}),d=null}},d.onabort=function(){d&&(u(a("Request aborted",n,"ECONNABORTED",d)),d=null)},d.onerror=function(){u(a("Network Error",n,null,d)),d=null},d.ontimeout=function(){u(a("timeout of "+n.timeout+"ms exceeded",n,"ECONNABORTED",d)),d=null},i.isStandardBrowserEnv()){var p=e("p1b6"),f=(n.withCredentials||s(n.url))&&n.xsrfCookieName?p.read(n.xsrfCookieName):void 0;f&&(h[n.xsrfHeaderName]=f)}if("setRequestHeader"in d&&i.forEach(h,function(n,t){"undefined"==typeof c&&"content-type"===t.toLowerCase()?delete h[t]:d.setRequestHeader(t,n)}),n.withCredentials&&(d.withCredentials=!0),n.responseType)try{d.responseType=n.responseType}catch(t){if("json"!==n.responseType)throw t}"function"==typeof n.onDownloadProgress&&d.addEventListener("progress",n.onDownloadProgress),"function"==typeof n.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",n.onUploadProgress),n.cancelToken&&n.cancelToken.promise.then(function(n){d&&(d.abort(),u(n),d=null)}),void 0===c&&(c=null),d.send(c)})}},"7LV+":function(n,t,e){!function(n){"use strict";var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),e="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function i(n){return n%10<5&&n%10>1&&~~(n/10)%10!=1}function l(n,t,e){var l=n+" ";switch(e){case"ss":return l+(i(n)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return l+(i(n)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return l+(i(n)?"godziny":"godzin");case"MM":return l+(i(n)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return l+(i(n)?"lata":"lat")}}n.defineLocale("pl",{months:function(n,i){return n?""===i?"("+e[n.month()]+"|"+t[n.month()]+")":/D MMMM/.test(i)?e[n.month()]:t[n.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:l,m:l,mm:l,h:l,hh:l,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:l,y:"rok",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(e("PJh5"))},"7MHZ":function(n,t,e){!function(n){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),e="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],l=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;n.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,i){return n?/-MMM-/.test(i)?e[n.month()]:t[n.month()]:t},monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(e("PJh5"))},"7MSh":function(n,t,e){"use strict";var i=e("TToO").__extends,l=e("mmVS"),o=e("+3eL"),r=e("WhVc");t.distinctUntilChanged=function(n,t){return function(e){return e.lift(new s(n,t))}};var s=function(){function n(n,t){this.compare=n,this.keySelector=t}return n.prototype.call=function(n,t){return t.subscribe(new a(n,this.compare,this.keySelector))},n}(),a=function(n){function t(t,e,i){n.call(this,t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}return i(t,n),t.prototype.compare=function(n,t){return n===t},t.prototype._next=function(n){var t=n;if(this.keySelector&&(t=o.tryCatch(this.keySelector)(n))===r.errorObject)return this.destination.error(r.errorObject.e);var e=!1;if(this.hasKey){if((e=o.tryCatch(this.compare)(this.key,t))===r.errorObject)return this.destination.error(r.errorObject.e)}else this.hasKey=!0;!1===Boolean(e)&&(this.key=t,this.destination.next(n))},t}(l.Subscriber)},"7OnE":function(n,t,e){!function(n){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},e={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};n.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(n){return"\u0645"===n},meridiem:function(n,t,e){return n<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(n){return n.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(n){return e[n]}).replace(/\u060c/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(e("PJh5"))},"7Q8x":function(n,t,e){!function(n){"use strict";n.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(n,t,e){return n<11?"ekuseni":n<15?"emini":n<19?"entsambama":"ebusuku"},meridiemHour:function(n,t){return 12===n&&(n=0),"ekuseni"===t?n:"emini"===t?n>=11?n:n+12:"entsambama"===t||"ebusuku"===t?0===n?0:n+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(e("PJh5"))},"7Xwz":function(n,t,e){var i=e("xA5w");n.exports=function(n){var t=i(n);return t.setDate(1),t.setHours(0,0,0,0),t}},"7ZL4":function(n,t,e){"use strict";var i=e("oBYf");t.concatMapTo=function(n,t){return i.concatMap(function(){return n},t)}},"7axH":function(n,t,e){"use strict";var i=e("rCTf"),l=e("9PGs");i.Observable.prototype.toArray=l.toArray},"7nvF":function(n,t,e){"use strict";var i=e("p/p0");t.last=function(n,t,e){return i.last(n,t,e)(this)}},"7rB9":function(n,t,e){"use strict";var i=e("t2qv");t.forkJoin=i.ForkJoinObservable.create},"7t+N":function(n,t,e){var i;!function(t,e){"use strict";"object"==typeof n&&"object"==typeof n.exports?n.exports=t.document?e(t,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return e(n)}:e(t)}("undefined"!=typeof window?window:this,function(e,l){"use strict";var o=[],r=e.document,s=Object.getPrototypeOf,a=o.slice,u=o.concat,c=o.push,h=o.indexOf,d={},p=d.toString,f=d.hasOwnProperty,_=f.toString,m=_.call(Object),g={},v=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType},y=function(n){return null!=n&&n===n.window},b={type:!0,src:!0,nonce:!0,noModule:!0};function w(n,t,e){var i,l,o=(e=e||r).createElement("script");if(o.text=n,t)for(i in b)(l=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,l);e.head.appendChild(o).parentNode.removeChild(o)}function C(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?d[p.call(n)]||"object":typeof n}var x=function(n,t){return new x.fn.init(n,t)},S=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function O(n){var t=!!n&&"length"in n&&n.length,e=C(n);return!v(n)&&!y(n)&&("array"===e||0===t||"number"==typeof t&&t>0&&t-1 in n)}x.fn=x.prototype={jquery:"3.4.1",constructor:x,length:0,toArray:function(){return a.call(this)},get:function(n){return null==n?a.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=x.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return x.each(this,n)},map:function(n){return this.pushStack(x.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var t=this.length,e=+n+(n<0?t:0);return this.pushStack(e>=0&&e+~]|"+N+")"+N+"*"),U=new RegExp(N+"|>"),q=new RegExp(H),G=new RegExp("^"+j+"$"),$={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+Y),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,nn=/[+~]/,tn=new RegExp("\\\\([\\da-f]{1,6}"+N+"?|("+N+")|.)","ig"),en=function(n,t,e){var i="0x"+t-65536;return i!=i||e?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ln=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,on=function(n,t){return t?"\0"===n?"\ufffd":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},rn=function(){d()},sn=wn(function(n){return!0===n.disabled&&"fieldset"===n.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{L.apply(D=E.call(w.childNodes),w.childNodes)}catch(n){L={apply:D.length?function(n,t){I.apply(n,E.call(t))}:function(n,t){for(var e=n.length,i=0;n[e++]=t[i++];);n.length=e-1}}}function an(n,t,i,l){var o,s,u,c,h,f,g,v=t&&t.ownerDocument,C=t?t.nodeType:9;if(i=i||[],"string"!=typeof n||!n||1!==C&&9!==C&&11!==C)return i;if(!l&&((t?t.ownerDocument||t:w)!==p&&d(t),t=t||p,_)){if(11!==C&&(h=Q.exec(n)))if(o=h[1]){if(9===C){if(!(u=t.getElementById(o)))return i;if(u.id===o)return i.push(u),i}else if(v&&(u=v.getElementById(o))&&y(t,u)&&u.id===o)return i.push(u),i}else{if(h[2])return L.apply(i,t.getElementsByTagName(n)),i;if((o=h[3])&&e.getElementsByClassName&&t.getElementsByClassName)return L.apply(i,t.getElementsByClassName(o)),i}if(e.qsa&&!k[n+" "]&&(!m||!m.test(n))&&(1!==C||"object"!==t.nodeName.toLowerCase())){if(g=n,v=t,1===C&&U.test(n)){for((c=t.getAttribute("id"))?c=c.replace(ln,on):t.setAttribute("id",c=b),s=(f=r(n)).length;s--;)f[s]="#"+c+" "+bn(f[s]);g=f.join(","),v=nn.test(n)&&vn(t.parentNode)||t}try{return L.apply(i,v.querySelectorAll(g)),i}catch(t){k(n,!0)}finally{c===b&&t.removeAttribute("id")}}}return a(n.replace(V,"$1"),t,i,l)}function un(){var n=[];return function t(e,l){return n.push(e+" ")>i.cacheLength&&delete t[n.shift()],t[e+" "]=l}}function cn(n){return n[b]=!0,n}function hn(n){var t=p.createElement("fieldset");try{return!!n(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function dn(n,t){for(var e=n.split("|"),l=e.length;l--;)i.attrHandle[e[l]]=t}function pn(n,t){var e=t&&n,i=e&&1===n.nodeType&&1===t.nodeType&&n.sourceIndex-t.sourceIndex;if(i)return i;if(e)for(;e=e.nextSibling;)if(e===t)return-1;return n?1:-1}function fn(n){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===n}}function _n(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function mn(n){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&sn(t)===n:t.disabled===n:"label"in t&&t.disabled===n}}function gn(n){return cn(function(t){return t=+t,cn(function(e,i){for(var l,o=n([],e.length,t),r=o.length;r--;)e[l=o[r]]&&(e[l]=!(i[l]=e[l]))})})}function vn(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}for(t in e=an.support={},o=an.isXML=function(n){var t=(n.ownerDocument||n).documentElement;return!X.test(n.namespaceURI||t&&t.nodeName||"HTML")},d=an.setDocument=function(n){var t,l,r=n?n.ownerDocument||n:w;return r!==p&&9===r.nodeType&&r.documentElement?(f=(p=r).documentElement,_=!o(p),w!==p&&(l=p.defaultView)&&l.top!==l&&(l.addEventListener?l.addEventListener("unload",rn,!1):l.attachEvent&&l.attachEvent("onunload",rn)),e.attributes=hn(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=hn(function(n){return n.appendChild(p.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=Z.test(p.getElementsByClassName),e.getById=hn(function(n){return f.appendChild(n).id=b,!p.getElementsByName||!p.getElementsByName(b).length}),e.getById?(i.filter.ID=function(n){var t=n.replace(tn,en);return function(n){return n.getAttribute("id")===t}},i.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&_){var e=t.getElementById(n);return e?[e]:[]}}):(i.filter.ID=function(n){var t=n.replace(tn,en);return function(n){var e="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return e&&e.value===t}},i.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&_){var e,i,l,o=t.getElementById(n);if(o){if((e=o.getAttributeNode("id"))&&e.value===n)return[o];for(l=t.getElementsByName(n),i=0;o=l[i++];)if((e=o.getAttributeNode("id"))&&e.value===n)return[o]}return[]}}),i.find.TAG=e.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var e,i=[],l=0,o=t.getElementsByTagName(n);if("*"===n){for(;e=o[l++];)1===e.nodeType&&i.push(e);return i}return o},i.find.CLASS=e.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&_)return t.getElementsByClassName(n)},g=[],m=[],(e.qsa=Z.test(p.querySelectorAll))&&(hn(function(n){f.appendChild(n).innerHTML="",n.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+N+"*(?:''|\"\")"),n.querySelectorAll("[selected]").length||m.push("\\["+N+"*(?:value|"+F+")"),n.querySelectorAll("[id~="+b+"-]").length||m.push("~="),n.querySelectorAll(":checked").length||m.push(":checked"),n.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]")}),hn(function(n){n.innerHTML="";var t=p.createElement("input");t.setAttribute("type","hidden"),n.appendChild(t).setAttribute("name","D"),n.querySelectorAll("[name=d]").length&&m.push("name"+N+"*[*^$|!~]?="),2!==n.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),f.appendChild(n).disabled=!0,2!==n.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),n.querySelectorAll("*,:x"),m.push(",.*:")})),(e.matchesSelector=Z.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&hn(function(n){e.disconnectedMatch=v.call(n,"*"),v.call(n,"[s!='']:x"),g.push("!=",H)}),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),t=Z.test(f.compareDocumentPosition),y=t||Z.test(f.contains)?function(n,t){var e=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(e.contains?e.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)for(;t=t.parentNode;)if(t===n)return!0;return!1},T=t?function(n,t){if(n===t)return h=!0,0;var i=!n.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1)||!e.sortDetached&&t.compareDocumentPosition(n)===i?n===p||n.ownerDocument===w&&y(w,n)?-1:t===p||t.ownerDocument===w&&y(w,t)?1:c?A(c,n)-A(c,t):0:4&i?-1:1)}:function(n,t){if(n===t)return h=!0,0;var e,i=0,l=n.parentNode,o=t.parentNode,r=[n],s=[t];if(!l||!o)return n===p?-1:t===p?1:l?-1:o?1:c?A(c,n)-A(c,t):0;if(l===o)return pn(n,t);for(e=n;e=e.parentNode;)r.unshift(e);for(e=t;e=e.parentNode;)s.unshift(e);for(;r[i]===s[i];)i++;return i?pn(r[i],s[i]):r[i]===w?-1:s[i]===w?1:0},p):p},an.matches=function(n,t){return an(n,null,null,t)},an.matchesSelector=function(n,t){if((n.ownerDocument||n)!==p&&d(n),e.matchesSelector&&_&&!k[t+" "]&&(!g||!g.test(t))&&(!m||!m.test(t)))try{var i=v.call(n,t);if(i||e.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(n){k(t,!0)}return an(t,p,null,[n]).length>0},an.contains=function(n,t){return(n.ownerDocument||n)!==p&&d(n),y(n,t)},an.attr=function(n,t){(n.ownerDocument||n)!==p&&d(n);var l=i.attrHandle[t.toLowerCase()],o=l&&z.call(i.attrHandle,t.toLowerCase())?l(n,t,!_):void 0;return void 0!==o?o:e.attributes||!_?n.getAttribute(t):(o=n.getAttributeNode(t))&&o.specified?o.value:null},an.escape=function(n){return(n+"").replace(ln,on)},an.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n)},an.uniqueSort=function(n){var t,i=[],l=0,o=0;if(h=!e.detectDuplicates,c=!e.sortStable&&n.slice(0),n.sort(T),h){for(;t=n[o++];)t===n[o]&&(l=i.push(o));for(;l--;)n.splice(i[l],1)}return c=null,n},l=an.getText=function(n){var t,e="",i=0,o=n.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)e+=l(n)}else if(3===o||4===o)return n.nodeValue}else for(;t=n[i++];)e+=l(t);return e},(i=an.selectors={cacheLength:50,createPseudo:cn,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(tn,en),n[3]=(n[3]||n[4]||n[5]||"").replace(tn,en),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||an.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&an.error(n[0]),n},PSEUDO:function(n){var t,e=!n[6]&&n[2];return $.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":e&&q.test(e)&&(t=r(e,!0))&&(t=e.indexOf(")",e.length-t)-e.length)&&(n[0]=n[0].slice(0,t),n[2]=e.slice(0,t)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(tn,en).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=S[n+" "];return t||(t=new RegExp("(^|"+N+")"+n+"("+N+"|$)"))&&S(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,e){return function(i){var l=an.attr(i,n);return null==l?"!="===t:!t||(l+="","="===t?l===e:"!="===t?l!==e:"^="===t?e&&0===l.indexOf(e):"*="===t?e&&l.indexOf(e)>-1:"$="===t?e&&l.slice(-e.length)===e:"~="===t?(" "+l.replace(R," ")+" ").indexOf(e)>-1:"|="===t&&(l===e||l.slice(0,e.length+1)===e+"-"))}},CHILD:function(n,t,e,i,l){var o="nth"!==n.slice(0,3),r="last"!==n.slice(-4),s="of-type"===t;return 1===i&&0===l?function(n){return!!n.parentNode}:function(t,e,a){var u,c,h,d,p,f,_=o!==r?"nextSibling":"previousSibling",m=t.parentNode,g=s&&t.nodeName.toLowerCase(),v=!a&&!s,y=!1;if(m){if(o){for(;_;){for(d=t;d=d[_];)if(s?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;f=_="only"===n&&!f&&"nextSibling"}return!0}if(f=[r?m.firstChild:m.lastChild],r&&v){for(y=(p=(u=(c=(h=(d=m)[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[n]||[])[0]===C&&u[1])&&u[2],d=p&&m.childNodes[p];d=++p&&d&&d[_]||(y=p=0)||f.pop();)if(1===d.nodeType&&++y&&d===t){c[n]=[C,p,y];break}}else if(v&&(y=p=(u=(c=(h=(d=t)[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[n]||[])[0]===C&&u[1]),!1===y)for(;(d=++p&&d&&d[_]||(y=p=0)||f.pop())&&((s?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++y||(v&&((c=(h=d[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[n]=[C,y]),d!==t)););return(y-=l)===i||y%i==0&&y/i>=0}}},PSEUDO:function(n,t){var e,l=i.pseudos[n]||i.setFilters[n.toLowerCase()]||an.error("unsupported pseudo: "+n);return l[b]?l(t):l.length>1?(e=[n,n,"",t],i.setFilters.hasOwnProperty(n.toLowerCase())?cn(function(n,e){for(var i,o=l(n,t),r=o.length;r--;)n[i=A(n,o[r])]=!(e[i]=o[r])}):function(n){return l(n,0,e)}):l}},pseudos:{not:cn(function(n){var t=[],e=[],i=s(n.replace(V,"$1"));return i[b]?cn(function(n,t,e,l){for(var o,r=i(n,null,l,[]),s=n.length;s--;)(o=r[s])&&(n[s]=!(t[s]=o))}):function(n,l,o){return t[0]=n,i(t,null,o,e),t[0]=null,!e.pop()}}),has:cn(function(n){return function(t){return an(n,t).length>0}}),contains:cn(function(n){return n=n.replace(tn,en),function(t){return(t.textContent||l(t)).indexOf(n)>-1}}),lang:cn(function(n){return G.test(n||"")||an.error("unsupported lang: "+n),n=n.replace(tn,en).toLowerCase(),function(t){var e;do{if(e=_?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(n){return n===f},focus:function(n){return n===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:mn(!1),disabled:mn(!0),checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return!0===n.selected},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!i.pseudos.empty(n)},header:function(n){return K.test(n.nodeName)},input:function(n){return J.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:gn(function(){return[0]}),last:gn(function(n,t){return[t-1]}),eq:gn(function(n,t,e){return[e<0?e+t:e]}),even:gn(function(n,t){for(var e=0;et?t:e;--i>=0;)n.push(i);return n}),gt:gn(function(n,t,e){for(var i=e<0?e+t:e;++i1?function(t,e,i){for(var l=n.length;l--;)if(!n[l](t,e,i))return!1;return!0}:n[0]}function xn(n,t,e,i,l){for(var o,r=[],s=0,a=n.length,u=null!=t;s-1&&(o[u]=!(r[u]=h))}}else g=xn(g===r?g.splice(f,g.length):g),l?l(null,r,g,a):L.apply(r,g)})}function On(n){for(var t,e,l,o=n.length,r=i.relative[n[0].type],s=r||i.relative[" "],a=r?1:0,c=wn(function(n){return n===t},s,!0),h=wn(function(n){return A(t,n)>-1},s,!0),d=[function(n,e,i){var l=!r&&(i||e!==u)||((t=e).nodeType?c(n,e,i):h(n,e,i));return t=null,l}];a1&&Cn(d),a>1&&bn(n.slice(0,a-1).concat({value:" "===n[a-2].type?"*":""})).replace(V,"$1"),e,a0,l=n.length>0,o=function(o,r,s,a,c){var h,f,m,g=0,v="0",y=o&&[],b=[],w=u,x=o||l&&i.find.TAG("*",c),S=C+=null==w?1:Math.random()||.1,O=x.length;for(c&&(u=r===p||r||c);v!==O&&null!=(h=x[v]);v++){if(l&&h){for(f=0,r||h.ownerDocument===p||(d(h),s=!_);m=n[f++];)if(m(h,r||p,s)){a.push(h);break}c&&(C=S)}e&&((h=!m&&h)&&g--,o&&y.push(h))}if(g+=v,e&&v!==g){for(f=0;m=t[f++];)m(y,b,r,s);if(o){if(g>0)for(;v--;)y[v]||b[v]||(b[v]=P.call(a));b=xn(b)}L.apply(a,b),c&&!o&&b.length>0&&g+t.length>1&&an.uniqueSort(a)}return c&&(C=S,u=w),y};return e?cn(o):o}(o,l))).selector=n}return s},a=an.select=function(n,t,e,l){var o,a,u,c,h,d="function"==typeof n&&n,p=!l&&r(n=d.selector||n);if(e=e||[],1===p.length){if((a=p[0]=p[0].slice(0)).length>2&&"ID"===(u=a[0]).type&&9===t.nodeType&&_&&i.relative[a[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(tn,en),t)||[])[0]))return e;d&&(t=t.parentNode),n=n.slice(a.shift().value.length)}for(o=$.needsContext.test(n)?0:a.length;o--&&!i.relative[c=(u=a[o]).type];)if((h=i.find[c])&&(l=h(u.matches[0].replace(tn,en),nn.test(a[0].type)&&vn(t.parentNode)||t))){if(a.splice(o,1),!(n=l.length&&bn(a)))return L.apply(e,l),e;break}}return(d||s(n,p))(l,t,!_,e,!t||nn.test(n)&&vn(t.parentNode)||t),e},e.sortStable=b.split("").sort(T).join("")===b,e.detectDuplicates=!!h,d(),e.sortDetached=hn(function(n){return 1&n.compareDocumentPosition(p.createElement("fieldset"))}),hn(function(n){return n.innerHTML="","#"===n.firstChild.getAttribute("href")})||dn("type|href|height|width",function(n,t,e){if(!e)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),e.attributes&&hn(function(n){return n.innerHTML="",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||dn("value",function(n,t,e){if(!e&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),hn(function(n){return null==n.getAttribute("disabled")})||dn(F,function(n,t,e){var i;if(!e)return!0===n[t]?t.toLowerCase():(i=n.getAttributeNode(t))&&i.specified?i.value:null}),an}(e);x.find=M,x.expr=M.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=M.uniqueSort,x.text=M.getText,x.isXMLDoc=M.isXML,x.contains=M.contains,x.escapeSelector=M.escape;var k=function(n,t,e){for(var i=[],l=void 0!==e;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(l&&x(n).is(e))break;i.push(n)}return i},T=function(n,t){for(var e=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&e.push(n);return e},z=x.expr.match.needsContext;function D(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(n,t,e){return v(t)?x.grep(n,function(n,i){return!!t.call(n,i,n)!==e}):t.nodeType?x.grep(n,function(n){return n===t!==e}):"string"!=typeof t?x.grep(n,function(n){return h.call(t,n)>-1!==e}):x.filter(t,n,e)}x.filter=function(n,t,e){var i=t[0];return e&&(n=":not("+n+")"),1===t.length&&1===i.nodeType?x.find.matchesSelector(i,n)?[i]:[]:x.find.matches(n,x.grep(t,function(n){return 1===n.nodeType}))},x.fn.extend({find:function(n){var t,e,i=this.length,l=this;if("string"!=typeof n)return this.pushStack(x(n).filter(function(){for(t=0;t1?x.uniqueSort(e):e},filter:function(n){return this.pushStack(I(this,n||[],!1))},not:function(n){return this.pushStack(I(this,n||[],!0))},is:function(n){return!!I(this,"string"==typeof n&&z.test(n)?x(n):n||[],!1).length}});var L,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(n,t,e){var i,l;if(!n)return this;if(e=e||L,"string"==typeof n){if(!(i="<"===n[0]&&">"===n[n.length-1]&&n.length>=3?[null,n,null]:E.exec(n))||!i[1]&&t)return!t||t.jquery?(t||e).find(n):this.constructor(t).find(n);if(i[1]){if(x.merge(this,x.parseHTML(i[1],(t=t instanceof x?t[0]:t)&&t.nodeType?t.ownerDocument||t:r,!0)),P.test(i[1])&&x.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(l=r.getElementById(i[2]))&&(this[0]=l,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):v(n)?void 0!==e.ready?e.ready(n):n(x):x.makeArray(n,this)}).prototype=x.fn,L=x(r);var A=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function N(n,t){for(;(n=n[t])&&1!==n.nodeType;);return n}x.fn.extend({has:function(n){var t=x(n,this),e=t.length;return this.filter(function(){for(var n=0;n-1:1===e.nodeType&&x.find.matchesSelector(e,n))){o.push(e);break}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(n){return n?"string"==typeof n?h.call(x(n),this[0]):h.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}}),x.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return k(n,"parentNode")},parentsUntil:function(n,t,e){return k(n,"parentNode",e)},next:function(n){return N(n,"nextSibling")},prev:function(n){return N(n,"previousSibling")},nextAll:function(n){return k(n,"nextSibling")},prevAll:function(n){return k(n,"previousSibling")},nextUntil:function(n,t,e){return k(n,"nextSibling",e)},prevUntil:function(n,t,e){return k(n,"previousSibling",e)},siblings:function(n){return T((n.parentNode||{}).firstChild,n)},children:function(n){return T(n.firstChild)},contents:function(n){return"undefined"!=typeof n.contentDocument?n.contentDocument:(D(n,"template")&&(n=n.content||n),x.merge([],n.childNodes))}},function(n,t){x.fn[n]=function(e,i){var l=x.map(this,t,e);return"Until"!==n.slice(-5)&&(i=e),i&&"string"==typeof i&&(l=x.filter(i,l)),this.length>1&&(F[n]||x.uniqueSort(l),A.test(n)&&l.reverse()),this.pushStack(l)}});var j=/[^\x20\t\r\n\f]+/g;function Y(n){return n}function H(n){throw n}function R(n,t,e,i){var l;try{n&&v(l=n.promise)?l.call(n).done(t).fail(e):n&&v(l=n.then)?l.call(n,t,e):t.apply(void 0,[n].slice(i))}catch(n){e.apply(void 0,[n])}}x.Callbacks=function(n){n="string"==typeof n?function(n){var t={};return x.each(n.match(j)||[],function(n,e){t[e]=!0}),t}(n):x.extend({},n);var t,e,i,l,o=[],r=[],s=-1,a=function(){for(l=l||n.once,i=t=!0;r.length;s=-1)for(e=r.shift();++s-1;)o.splice(e,1),e<=s&&s--}),this},has:function(n){return n?x.inArray(n,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return l=r=[],o=e="",this},disabled:function(){return!o},lock:function(){return l=r=[],e||t||(o=e=""),this},locked:function(){return!!l},fireWith:function(n,e){return l||(e=[n,(e=e||[]).slice?e.slice():e],r.push(e),t||a()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},x.extend({Deferred:function(n){var t=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],i="pending",l={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(n){return l.then(null,n)},pipe:function(){var n=arguments;return x.Deferred(function(e){x.each(t,function(t,i){var l=v(n[i[4]])&&n[i[4]];o[i[1]](function(){var n=l&&l.apply(this,arguments);n&&v(n.promise)?n.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[i[0]+"With"](this,l?[n]:arguments)})}),n=null}).promise()},then:function(n,i,l){var o=0;function r(n,t,i,l){return function(){var s=this,a=arguments,u=function(){var e,u;if(!(n=o&&(i!==H&&(s=void 0,a=[e]),t.rejectWith(s,a))}};n?c():(x.Deferred.getStackHook&&(c.stackTrace=x.Deferred.getStackHook()),e.setTimeout(c))}}return x.Deferred(function(e){t[0][3].add(r(0,e,v(l)?l:Y,e.notifyWith)),t[1][3].add(r(0,e,v(n)?n:Y)),t[2][3].add(r(0,e,v(i)?i:H))}).promise()},promise:function(n){return null!=n?x.extend(n,l):l}},o={};return x.each(t,function(n,e){var r=e[2],s=e[5];l[e[1]]=r.add,s&&r.add(function(){i=s},t[3-n][2].disable,t[3-n][3].disable,t[0][2].lock,t[0][3].lock),r.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=r.fireWith}),l.promise(o),n&&n.call(o,o),o},when:function(n){var t=arguments.length,e=t,i=Array(e),l=a.call(arguments),o=x.Deferred(),r=function(n){return function(e){i[n]=this,l[n]=arguments.length>1?a.call(arguments):e,--t||o.resolveWith(i,l)}};if(t<=1&&(R(n,o.done(r(e)).resolve,o.reject,!t),"pending"===o.state()||v(l[e]&&l[e].then)))return o.then();for(;e--;)R(l[e],r(e),o.reject);return o.promise()}});var V=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(n,t){e.console&&e.console.warn&&n&&V.test(n.name)&&e.console.warn("jQuery.Deferred exception: "+n.message,n.stack,t)},x.readyException=function(n){e.setTimeout(function(){throw n})};var B=x.Deferred();function W(){r.removeEventListener("DOMContentLoaded",W),e.removeEventListener("load",W),x.ready()}x.fn.ready=function(n){return B.then(n).catch(function(n){x.readyException(n)}),this},x.extend({isReady:!1,readyWait:1,ready:function(n){(!0===n?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==n&&--x.readyWait>0||B.resolveWith(r,[x]))}}),x.ready.then=B.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(x.ready):(r.addEventListener("DOMContentLoaded",W),e.addEventListener("load",W));var U=function(n,t,e,i,l,o,r){var s=0,a=n.length,u=null==e;if("object"===C(e))for(s in l=!0,e)U(n,t,s,e[s],!0,o,r);else if(void 0!==i&&(l=!0,v(i)||(r=!0),u&&(r?(t.call(n,i),t=null):(u=t,t=function(n,t,e){return u.call(x(n),e)})),t))for(;s1,null,!0)},removeData:function(n){return this.each(function(){Q.remove(this,n)})}}),x.extend({queue:function(n,t,e){var i;if(n)return i=Z.get(n,t=(t||"fx")+"queue"),e&&(!i||Array.isArray(e)?i=Z.access(n,t,x.makeArray(e)):i.push(e)),i||[]},dequeue:function(n,t){var e=x.queue(n,t=t||"fx"),i=e.length,l=e.shift(),o=x._queueHooks(n,t);"inprogress"===l&&(l=e.shift(),i--),l&&("fx"===t&&e.unshift("inprogress"),delete o.stop,l.call(n,function(){x.dequeue(n,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(n,t){var e=t+"queueHooks";return Z.get(n,e)||Z.access(n,e,{empty:x.Callbacks("once memory").add(function(){Z.remove(n,[t+"queue",e])})})}}),x.fn.extend({queue:function(n,t){var e=2;return"string"!=typeof n&&(t=n,n="fx",e--),arguments.length\x20\t\r\n\f]*)/i,vn=/^$|^module$|\/(?:java|ecma)script/i,yn={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function bn(n,t){var e;return e="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&D(n,t)?x.merge([n],e):e}function wn(n,t){for(var e=0,i=n.length;e-1)l&&l.push(o);else if(u=an(o),r=bn(h.appendChild(o),"script"),u&&wn(r),e)for(c=0;o=r[c++];)vn.test(o.type||"")&&e.push(o);return h}Cn=r.createDocumentFragment().appendChild(r.createElement("div")),(xn=r.createElement("input")).setAttribute("type","radio"),xn.setAttribute("checked","checked"),xn.setAttribute("name","t"),Cn.appendChild(xn),g.checkClone=Cn.cloneNode(!0).cloneNode(!0).lastChild.checked,Cn.innerHTML="",g.noCloneChecked=!!Cn.cloneNode(!0).lastChild.defaultValue;var Mn=/^key/,kn=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Tn=/^([^.]*)(?:\.(.+)|)/;function zn(){return!0}function Dn(){return!1}function Pn(n,t){return n===function(){try{return r.activeElement}catch(n){}}()==("focus"===t)}function In(n,t,e,i,l,o){var r,s;if("object"==typeof t){for(s in"string"!=typeof e&&(i=i||e,e=void 0),t)In(n,s,e,i,t[s],o);return n}if(null==i&&null==l?(l=e,i=e=void 0):null==l&&("string"==typeof e?(l=i,i=void 0):(l=i,i=e,e=void 0)),!1===l)l=Dn;else if(!l)return n;return 1===o&&(r=l,(l=function(n){return x().off(n),r.apply(this,arguments)}).guid=r.guid||(r.guid=x.guid++)),n.each(function(){x.event.add(this,t,l,i,e)})}function Ln(n,t,e){e?(Z.set(n,t,!1),x.event.add(n,t,{namespace:!1,handler:function(n){var i,l,o=Z.get(this,t);if(1&n.isTrigger&&this[t]){if(o.length)(x.event.special[t]||{}).delegateType&&n.stopPropagation();else if(o=a.call(arguments),Z.set(this,t,o),i=e(this,t),this[t](),o!==(l=Z.get(this,t))||i?Z.set(this,t,!1):l={},o!==l)return n.stopImmediatePropagation(),n.preventDefault(),l.value}else o.length&&(Z.set(this,t,{value:x.event.trigger(x.extend(o[0],x.Event.prototype),o.slice(1),this)}),n.stopImmediatePropagation())}})):void 0===Z.get(n,t)&&x.event.add(n,t,zn)}x.event={global:{},add:function(n,t,e,i,l){var o,r,s,a,u,c,h,d,p,f,_,m=Z.get(n);if(m)for(e.handler&&(e=(o=e).handler,l=o.selector),l&&x.find.matchesSelector(sn,l),e.guid||(e.guid=x.guid++),(a=m.events)||(a=m.events={}),(r=m.handle)||(r=m.handle=function(t){return"undefined"!=typeof x&&x.event.triggered!==t.type?x.event.dispatch.apply(n,arguments):void 0}),u=(t=(t||"").match(j)||[""]).length;u--;)p=_=(s=Tn.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),p&&(h=x.event.special[p]||{},h=x.event.special[p=(l?h.delegateType:h.bindType)||p]||{},c=x.extend({type:p,origType:_,data:i,handler:e,guid:e.guid,selector:l,needsContext:l&&x.expr.match.needsContext.test(l),namespace:f.join(".")},o),(d=a[p])||((d=a[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(n,i,f,r)||n.addEventListener&&n.addEventListener(p,r)),h.add&&(h.add.call(n,c),c.handler.guid||(c.handler.guid=e.guid)),l?d.splice(d.delegateCount++,0,c):d.push(c),x.event.global[p]=!0)},remove:function(n,t,e,i,l){var o,r,s,a,u,c,h,d,p,f,_,m=Z.hasData(n)&&Z.get(n);if(m&&(a=m.events)){for(u=(t=(t||"").match(j)||[""]).length;u--;)if(p=_=(s=Tn.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),p){for(h=x.event.special[p]||{},d=a[p=(i?h.delegateType:h.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)c=d[o],!l&&_!==c.origType||e&&e.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,h.remove&&h.remove.call(n,c));r&&!d.length&&(h.teardown&&!1!==h.teardown.call(n,f,m.handle)||x.removeEvent(n,p,m.handle),delete a[p])}else for(p in a)x.event.remove(n,p+t[u],e,i,!0);x.isEmptyObject(a)&&Z.remove(n,"handle events")}},dispatch:function(n){var t,e,i,l,o,r,s=x.event.fix(n),a=new Array(arguments.length),u=(Z.get(this,"events")||{})[s.type]||[],c=x.event.special[s.type]||{};for(a[0]=s,t=1;t=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==n.type||!0!==u.disabled)){for(o=[],r={},e=0;e-1:x.find(l,this,null,[u]).length),r[l]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return u=this,a\x20\t\r\n\f]*)[^>]*)\/>/gi,An=/\s*$/g;function jn(n,t){return D(n,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&x(n).children("tbody")[0]||n}function Yn(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function Hn(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function Rn(n,t){var e,i,l,o,r,s,a,u;if(1===t.nodeType){if(Z.hasData(n)&&(o=Z.access(n),r=Z.set(t,o),u=o.events))for(l in delete r.handle,r.events={},u)for(e=0,i=u[l].length;e1&&"string"==typeof f&&!g.checkClone&&Fn.test(f))return n.each(function(l){var o=n.eq(l);_&&(t[0]=f.call(this,l,o.html())),Vn(o,t,e,i)});if(d&&(o=(l=On(t,n[0].ownerDocument,!1,n,i)).firstChild,1===l.childNodes.length&&(l=o),o||i)){for(s=(r=x.map(bn(l,"script"),Yn)).length;h")},clone:function(n,t,e){var i,l,o,r,s,a,u,c=n.cloneNode(!0),h=an(n);if(!(g.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||x.isXMLDoc(n)))for(r=bn(c),i=0,l=(o=bn(n)).length;i0&&wn(r,!h&&bn(n,"script")),c},cleanData:function(n){for(var t,e,i,l=x.event.special,o=0;void 0!==(e=n[o]);o++)if(J(e)){if(t=e[Z.expando]){if(t.events)for(i in t.events)l[i]?x.event.remove(e,i):x.removeEvent(e,i,t.handle);e[Z.expando]=void 0}e[Q.expando]&&(e[Q.expando]=void 0)}}}),x.fn.extend({detach:function(n){return Bn(this,n,!0)},remove:function(n){return Bn(this,n)},text:function(n){return U(this,function(n){return void 0===n?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return Vn(this,arguments,function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||jn(this,n).appendChild(n)})},prepend:function(){return Vn(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=jn(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return Vn(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return Vn(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(x.cleanData(bn(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?n:t,this.map(function(){return x.clone(this,n,t)})},html:function(n){return U(this,function(n){var t=this[0]||{},e=0,i=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!An.test(n)&&!yn[(gn.exec(n)||["",""])[1].toLowerCase()]){n=x.htmlPrefilter(n);try{for(;e=0&&(a+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-o-a-s-.5))||0),a}function ot(n,t,e){var i=Un(n),l=(!g.boxSizingReliable()||e)&&"border-box"===x.css(n,"boxSizing",!1,i),o=l,r=Gn(n,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(Wn.test(r)){if(!e)return r;r="auto"}return(!g.boxSizingReliable()&&l||"auto"===r||!parseFloat(r)&&"inline"===x.css(n,"display",!1,i))&&n.getClientRects().length&&(l="border-box"===x.css(n,"boxSizing",!1,i),(o=s in n)&&(r=n[s])),(r=parseFloat(r)||0)+lt(n,t,e||(l?"border":"content"),o,i,r)+"px"}function rt(n,t,e,i,l){return new rt.prototype.init(n,t,e,i,l)}x.extend({cssHooks:{opacity:{get:function(n,t){if(t){var e=Gn(n,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,e,i){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var l,o,r,s=X(t),a=nt.test(t),u=n.style;if(a||(t=Zn(s)),r=x.cssHooks[t]||x.cssHooks[s],void 0===e)return r&&"get"in r&&void 0!==(l=r.get(n,!1,i))?l:u[t];"string"==(o=typeof e)&&(l=on.exec(e))&&l[1]&&(e=dn(n,t,l),o="number"),null!=e&&e==e&&("number"!==o||a||(e+=l&&l[3]||(x.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==e||0!==t.indexOf("background")||(u[t]="inherit"),r&&"set"in r&&void 0===(e=r.set(n,e,i))||(a?u.setProperty(t,e):u[t]=e))}},css:function(n,t,e,i){var l,o,r,s=X(t);return nt.test(t)||(t=Zn(s)),(r=x.cssHooks[t]||x.cssHooks[s])&&"get"in r&&(l=r.get(n,!0,e)),void 0===l&&(l=Gn(n,t,i)),"normal"===l&&t in et&&(l=et[t]),""===e||e?(o=parseFloat(l),!0===e||isFinite(o)?o||0:l):l}}),x.each(["height","width"],function(n,t){x.cssHooks[t]={get:function(n,e,i){if(e)return!Qn.test(x.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?ot(n,t,i):hn(n,tt,function(){return ot(n,t,i)})},set:function(n,e,i){var l,o=Un(n),r=!g.scrollboxSize()&&"absolute"===o.position,s=(r||i)&&"border-box"===x.css(n,"boxSizing",!1,o),a=i?lt(n,t,i,s,o):0;return s&&r&&(a-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-lt(n,t,"border",!1,o)-.5)),a&&(l=on.exec(e))&&"px"!==(l[3]||"px")&&(n.style[t]=e,e=x.css(n,t)),it(0,e,a)}}}),x.cssHooks.marginLeft=$n(g.reliableMarginLeft,function(n,t){if(t)return(parseFloat(Gn(n,"marginLeft"))||n.getBoundingClientRect().left-hn(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(n,t){x.cssHooks[n+t]={expand:function(e){for(var i=0,l={},o="string"==typeof e?e.split(" "):[e];i<4;i++)l[n+rn[i]+t]=o[i]||o[i-2]||o[0];return l}},"margin"!==n&&(x.cssHooks[n+t].set=it)}),x.fn.extend({css:function(n,t){return U(this,function(n,t,e){var i,l,o={},r=0;if(Array.isArray(t)){for(i=Un(n),l=t.length;r1)}}),x.Tween=rt,(rt.prototype={constructor:rt,init:function(n,t,e,i,l,o){this.elem=n,this.prop=e,this.easing=l||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(x.cssNumber[e]?"":"px")},cur:function(){var n=rt.propHooks[this.prop];return n&&n.get?n.get(this):rt.propHooks._default.get(this)},run:function(n){var t,e=rt.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),e&&e.set?e.set(this):rt.propHooks._default.set(this),this}}).init.prototype=rt.prototype,(rt.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=x.css(n.elem,n.prop,""))&&"auto"!==t?t:0},set:function(n){x.fx.step[n.prop]?x.fx.step[n.prop](n):1!==n.elem.nodeType||!x.cssHooks[n.prop]&&null==n.elem.style[Zn(n.prop)]?n.elem[n.prop]=n.now:x.style(n.elem,n.prop,n.now+n.unit)}}}).scrollTop=rt.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}},x.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"},x.fx=rt.prototype.init,x.fx.step={};var st,at,ut=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ht(){at&&(!1===r.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(ht):e.setTimeout(ht,x.fx.interval),x.fx.tick())}function dt(){return e.setTimeout(function(){st=void 0}),st=Date.now()}function pt(n,t){var e,i=0,l={height:n};for(t=t?1:0;i<4;i+=2-t)l["margin"+(e=rn[i])]=l["padding"+e]=n;return t&&(l.opacity=l.width=n),l}function ft(n,t,e){for(var i,l=(_t.tweeners[t]||[]).concat(_t.tweeners["*"]),o=0,r=l.length;o1)},removeAttr:function(n){return this.each(function(){x.removeAttr(this,n)})}}),x.extend({attr:function(n,t,e){var i,l,o=n.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof n.getAttribute?x.prop(n,t,e):(1===o&&x.isXMLDoc(n)||(l=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?mt:void 0)),void 0!==e?null===e?void x.removeAttr(n,t):l&&"set"in l&&void 0!==(i=l.set(n,e,t))?i:(n.setAttribute(t,e+""),e):l&&"get"in l&&null!==(i=l.get(n,t))?i:null==(i=x.find.attr(n,t))?void 0:i)},attrHooks:{type:{set:function(n,t){if(!g.radioValue&&"radio"===t&&D(n,"input")){var e=n.value;return n.setAttribute("type",t),e&&(n.value=e),t}}}},removeAttr:function(n,t){var e,i=0,l=t&&t.match(j);if(l&&1===n.nodeType)for(;e=l[i++];)n.removeAttribute(e)}}),mt={set:function(n,t,e){return!1===t?x.removeAttr(n,e):n.setAttribute(e,e),e}},x.each(x.expr.match.bool.source.match(/\w+/g),function(n,t){var e=gt[t]||x.find.attr;gt[t]=function(n,t,i){var l,o,r=t.toLowerCase();return i||(o=gt[r],gt[r]=l,l=null!=e(n,t,i)?r:null,gt[r]=o),l}});var vt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;function bt(n){return(n.match(j)||[]).join(" ")}function wt(n){return n.getAttribute&&n.getAttribute("class")||""}function Ct(n){return Array.isArray(n)?n:"string"==typeof n&&n.match(j)||[]}x.fn.extend({prop:function(n,t){return U(this,x.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[x.propFix[n]||n]})}}),x.extend({prop:function(n,t,e){var i,l,o=n.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(n)||(l=x.propHooks[t=x.propFix[t]||t]),void 0!==e?l&&"set"in l&&void 0!==(i=l.set(n,e,t))?i:n[t]=e:l&&"get"in l&&null!==(i=l.get(n,t))?i:n[t]},propHooks:{tabIndex:{get:function(n){var t=x.find.attr(n,"tabindex");return t?parseInt(t,10):vt.test(n.nodeName)||yt.test(n.nodeName)&&n.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(x.propHooks.selected={get:function(n){return null},set:function(n){}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(n){var t,e,i,l,o,r,s,a=0;if(v(n))return this.each(function(t){x(this).addClass(n.call(this,t,wt(this)))});if((t=Ct(n)).length)for(;e=this[a++];)if(l=wt(e),i=1===e.nodeType&&" "+bt(l)+" "){for(r=0;o=t[r++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");l!==(s=bt(i))&&e.setAttribute("class",s)}return this},removeClass:function(n){var t,e,i,l,o,r,s,a=0;if(v(n))return this.each(function(t){x(this).removeClass(n.call(this,t,wt(this)))});if(!arguments.length)return this.attr("class","");if((t=Ct(n)).length)for(;e=this[a++];)if(l=wt(e),i=1===e.nodeType&&" "+bt(l)+" "){for(r=0;o=t[r++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");l!==(s=bt(i))&&e.setAttribute("class",s)}return this},toggleClass:function(n,t){var e=typeof n,i="string"===e||Array.isArray(n);return"boolean"==typeof t&&i?t?this.addClass(n):this.removeClass(n):v(n)?this.each(function(e){x(this).toggleClass(n.call(this,e,wt(this),t),t)}):this.each(function(){var t,l,o,r;if(i)for(l=0,o=x(this),r=Ct(n);t=r[l++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==n&&"boolean"!==e||((t=wt(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===n?"":Z.get(this,"__className__")||""))})},hasClass:function(n){var t,e,i=0;for(t=" "+n+" ";e=this[i++];)if(1===e.nodeType&&(" "+bt(wt(e))+" ").indexOf(t)>-1)return!0;return!1}});var xt=/\r/g;x.fn.extend({val:function(n){var t,e,i,l=this[0];return arguments.length?(i=v(n),this.each(function(e){var l;1===this.nodeType&&(null==(l=i?n.call(this,e,x(this).val()):n)?l="":"number"==typeof l?l+="":Array.isArray(l)&&(l=x.map(l,function(n){return null==n?"":n+""})),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,l,"value")||(this.value=l))})):l?(t=x.valHooks[l.type]||x.valHooks[l.nodeName.toLowerCase()])&&"get"in t&&void 0!==(e=t.get(l,"value"))?e:"string"==typeof(e=l.value)?e.replace(xt,""):null==e?"":e:void 0}}),x.extend({valHooks:{option:{get:function(n){var t=x.find.attr(n,"value");return null!=t?t:bt(x.text(n))}},select:{get:function(n){var t,e,i,l=n.options,o=n.selectedIndex,r="select-one"===n.type,s=r?null:[],a=r?o+1:l.length;for(i=o<0?a:r?o:0;i-1)&&(e=!0);return e||(n.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=x.inArray(x(n).val(),t)>-1}},g.checkOn||(x.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})}),g.focusin="onfocusin"in e;var St=/^(?:focusinfocus|focusoutblur)$/,Ot=function(n){n.stopPropagation()};x.extend(x.event,{trigger:function(n,t,i,l){var o,s,a,u,c,h,d,p,_=[i||r],m=f.call(n,"type")?n.type:n,g=f.call(n,"namespace")?n.namespace.split("."):[];if(s=p=a=i=i||r,3!==i.nodeType&&8!==i.nodeType&&!St.test(m+x.event.triggered)&&(m.indexOf(".")>-1&&(m=(g=m.split(".")).shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(n=n[x.expando]?n:new x.Event(m,"object"==typeof n&&n)).isTrigger=l?2:3,n.namespace=g.join("."),n.rnamespace=n.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=void 0,n.target||(n.target=i),t=null==t?[n]:x.makeArray(t,[n]),d=x.event.special[m]||{},l||!d.trigger||!1!==d.trigger.apply(i,t))){if(!l&&!d.noBubble&&!y(i)){for(St.test((u=d.delegateType||m)+m)||(s=s.parentNode);s;s=s.parentNode)_.push(s),a=s;a===(i.ownerDocument||r)&&_.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=_[o++])&&!n.isPropagationStopped();)p=s,n.type=o>1?u:d.bindType||m,(h=(Z.get(s,"events")||{})[n.type]&&Z.get(s,"handle"))&&h.apply(s,t),(h=c&&s[c])&&h.apply&&J(s)&&(n.result=h.apply(s,t),!1===n.result&&n.preventDefault());return n.type=m,l||n.isDefaultPrevented()||d._default&&!1!==d._default.apply(_.pop(),t)||!J(i)||c&&v(i[m])&&!y(i)&&((a=i[c])&&(i[c]=null),x.event.triggered=m,n.isPropagationStopped()&&p.addEventListener(m,Ot),i[m](),n.isPropagationStopped()&&p.removeEventListener(m,Ot),x.event.triggered=void 0,a&&(i[c]=a)),n.result}},simulate:function(n,t,e){var i=x.extend(new x.Event,e,{type:n,isSimulated:!0});x.event.trigger(i,null,t)}}),x.fn.extend({trigger:function(n,t){return this.each(function(){x.event.trigger(n,t,this)})},triggerHandler:function(n,t){var e=this[0];if(e)return x.event.trigger(n,t,e,!0)}}),g.focusin||x.each({focus:"focusin",blur:"focusout"},function(n,t){var e=function(n){x.event.simulate(t,n.target,x.event.fix(n))};x.event.special[t]={setup:function(){var i=this.ownerDocument||this,l=Z.access(i,t);l||i.addEventListener(n,e,!0),Z.access(i,t,(l||0)+1)},teardown:function(){var i=this.ownerDocument||this,l=Z.access(i,t)-1;l?Z.access(i,t,l):(i.removeEventListener(n,e,!0),Z.remove(i,t))}}});var Mt=e.location,kt=Date.now(),Tt=/\?/;x.parseXML=function(n){var t;if(!n||"string"!=typeof n)return null;try{t=(new e.DOMParser).parseFromString(n,"text/xml")}catch(n){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),t};var zt=/\[\]$/,Dt=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;function Lt(n,t,e,i){var l;if(Array.isArray(t))x.each(t,function(t,l){e||zt.test(n)?i(n,l):Lt(n+"["+("object"==typeof l&&null!=l?t:"")+"]",l,e,i)});else if(e||"object"!==C(t))i(n,t);else for(l in t)Lt(n+"["+l+"]",t[l],e,i)}x.param=function(n,t){var e,i=[],l=function(n,t){var e=v(t)?t():t;i[i.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==e?"":e)};if(null==n)return"";if(Array.isArray(n)||n.jquery&&!x.isPlainObject(n))x.each(n,function(){l(this.name,this.value)});else for(e in n)Lt(e,n[e],t,l);return i.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=x.prop(this,"elements");return n?x.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!x(this).is(":disabled")&&It.test(this.nodeName)&&!Pt.test(n)&&(this.checked||!mn.test(n))}).map(function(n,t){var e=x(this).val();return null==e?null:Array.isArray(e)?x.map(e,function(n){return{name:t.name,value:n.replace(Dt,"\r\n")}}):{name:t.name,value:e.replace(Dt,"\r\n")}}).get()}});var Et=/%20/g,At=/#.*$/,Ft=/([?&])_=[^&]*/,Nt=/^(.*?):[ \t]*([^\r\n]*)$/gm,jt=/^(?:GET|HEAD)$/,Yt=/^\/\//,Ht={},Rt={},Vt="*/".concat("*"),Bt=r.createElement("a");function Wt(n){return function(t,e){"string"!=typeof t&&(e=t,t="*");var i,l=0,o=t.toLowerCase().match(j)||[];if(v(e))for(;i=o[l++];)"+"===i[0]?(i=i.slice(1)||"*",(n[i]=n[i]||[]).unshift(e)):(n[i]=n[i]||[]).push(e)}}function Ut(n,t,e,i){var l={},o=n===Rt;function r(s){var a;return l[s]=!0,x.each(n[s]||[],function(n,s){var u=s(t,e,i);return"string"!=typeof u||o||l[u]?o?!(a=u):void 0:(t.dataTypes.unshift(u),r(u),!1)}),a}return r(t.dataTypes[0])||!l["*"]&&r("*")}function qt(n,t){var e,i,l=x.ajaxSettings.flatOptions||{};for(e in t)void 0!==t[e]&&((l[e]?n:i||(i={}))[e]=t[e]);return i&&x.extend(!0,n,i),n}Bt.href=Mt.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Mt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Mt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Vt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?qt(qt(n,x.ajaxSettings),t):qt(x.ajaxSettings,n)},ajaxPrefilter:Wt(Ht),ajaxTransport:Wt(Rt),ajax:function(n,t){"object"==typeof n&&(t=n,n=void 0);var i,l,o,s,a,u,c,h,d,p,f=x.ajaxSetup({},t=t||{}),_=f.context||f,m=f.context&&(_.nodeType||_.jquery)?x(_):x.event,g=x.Deferred(),v=x.Callbacks("once memory"),y=f.statusCode||{},b={},w={},C="canceled",S={readyState:0,getResponseHeader:function(n){var t;if(c){if(!s)for(s={};t=Nt.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[n.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(n,t){return null==c&&(n=w[n.toLowerCase()]=w[n.toLowerCase()]||n,b[n]=t),this},overrideMimeType:function(n){return null==c&&(f.mimeType=n),this},statusCode:function(n){var t;if(n)if(c)S.always(n[S.status]);else for(t in n)y[t]=[y[t],n[t]];return this},abort:function(n){var t=n||C;return i&&i.abort(t),O(0,t),this}};if(g.promise(S),f.url=((n||f.url||Mt.href)+"").replace(Yt,Mt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(j)||[""],null==f.crossDomain){u=r.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=Bt.protocol+"//"+Bt.host!=u.protocol+"//"+u.host}catch(n){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=x.param(f.data,f.traditional)),Ut(Ht,f,t,S),c)return S;for(d in(h=x.event&&f.global)&&0==x.active++&&x.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!jt.test(f.type),l=f.url.replace(At,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Et,"+")):(p=f.url.slice(l.length),f.data&&(f.processData||"string"==typeof f.data)&&(l+=(Tt.test(l)?"&":"?")+f.data,delete f.data),!1===f.cache&&(l=l.replace(Ft,"$1"),p=(Tt.test(l)?"&":"?")+"_="+kt+++p),f.url=l+p),f.ifModified&&(x.lastModified[l]&&S.setRequestHeader("If-Modified-Since",x.lastModified[l]),x.etag[l]&&S.setRequestHeader("If-None-Match",x.etag[l])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&S.setRequestHeader("Content-Type",f.contentType),S.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Vt+"; q=0.01":""):f.accepts["*"]),f.headers)S.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(_,S,f)||c))return S.abort();if(C="abort",v.add(f.complete),S.done(f.success),S.fail(f.error),i=Ut(Rt,f,t,S)){if(S.readyState=1,h&&m.trigger("ajaxSend",[S,f]),c)return S;f.async&&f.timeout>0&&(a=e.setTimeout(function(){S.abort("timeout")},f.timeout));try{c=!1,i.send(b,O)}catch(n){if(c)throw n;O(-1,n)}}else O(-1,"No Transport");function O(n,t,r,s){var u,d,p,b,w,C=t;c||(c=!0,a&&e.clearTimeout(a),i=void 0,o=s||"",S.readyState=n>0?4:0,u=n>=200&&n<300||304===n,r&&(b=function(n,t,e){for(var i,l,o,r,s=n.contents,a=n.dataTypes;"*"===a[0];)a.shift(),void 0===i&&(i=n.mimeType||t.getResponseHeader("Content-Type"));if(i)for(l in s)if(s[l]&&s[l].test(i)){a.unshift(l);break}if(a[0]in e)o=a[0];else{for(l in e){if(!a[0]||n.converters[l+" "+a[0]]){o=l;break}r||(r=l)}o=o||r}if(o)return o!==a[0]&&a.unshift(o),e[o]}(f,S,r)),b=function(n,t,e,i){var l,o,r,s,a,u={},c=n.dataTypes.slice();if(c[1])for(r in n.converters)u[r.toLowerCase()]=n.converters[r];for(o=c.shift();o;)if(n.responseFields[o]&&(e[n.responseFields[o]]=t),!a&&i&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),a=o,o=c.shift())if("*"===o)o=a;else if("*"!==a&&a!==o){if(!(r=u[a+" "+o]||u["* "+o]))for(l in u)if((s=l.split(" "))[1]===o&&(r=u[a+" "+s[0]]||u["* "+s[0]])){!0===r?r=u[l]:!0!==u[l]&&(o=s[0],c.unshift(s[1]));break}if(!0!==r)if(r&&n.throws)t=r(t);else try{t=r(t)}catch(n){return{state:"parsererror",error:r?n:"No conversion from "+a+" to "+o}}}return{state:"success",data:t}}(f,b,S,u),u?(f.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(x.lastModified[l]=w),(w=S.getResponseHeader("etag"))&&(x.etag[l]=w)),204===n||"HEAD"===f.type?C="nocontent":304===n?C="notmodified":(C=b.state,d=b.data,u=!(p=b.error))):(p=C,!n&&C||(C="error",n<0&&(n=0))),S.status=n,S.statusText=(t||C)+"",u?g.resolveWith(_,[d,C,S]):g.rejectWith(_,[S,C,p]),S.statusCode(y),y=void 0,h&&m.trigger(u?"ajaxSuccess":"ajaxError",[S,f,u?d:p]),v.fireWith(_,[S,C]),h&&(m.trigger("ajaxComplete",[S,f]),--x.active||x.event.trigger("ajaxStop")))}return S},getJSON:function(n,t,e){return x.get(n,t,e,"json")},getScript:function(n,t){return x.get(n,void 0,t,"script")}}),x.each(["get","post"],function(n,t){x[t]=function(n,e,i,l){return v(e)&&(l=l||i,i=e,e=void 0),x.ajax(x.extend({url:n,type:t,dataType:l,data:e,success:i},x.isPlainObject(n)&&n))}}),x._evalUrl=function(n,t){return x.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(n){x.globalEval(n,t)}})},x.fn.extend({wrapAll:function(n){var t;return this[0]&&(v(n)&&(n=n.call(this[0])),t=x(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(t){x(this).wrapInner(n.call(this,t))}):this.each(function(){var t=x(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(n){var t=v(n);return this.each(function(e){x(this).wrapAll(t?n.call(this,e):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(n){return!x.expr.pseudos.visible(n)},x.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(n){}};var Gt={0:200,1223:204},$t=x.ajaxSettings.xhr();g.cors=!!$t&&"withCredentials"in $t,g.ajax=$t=!!$t,x.ajaxTransport(function(n){var t,i;if(g.cors||$t&&!n.crossDomain)return{send:function(l,o){var r,s=n.xhr();if(s.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(r in n.xhrFields)s[r]=n.xhrFields[r];for(r in n.mimeType&&s.overrideMimeType&&s.overrideMimeType(n.mimeType),n.crossDomain||l["X-Requested-With"]||(l["X-Requested-With"]="XMLHttpRequest"),l)s.setRequestHeader(r,l[r]);t=function(n){return function(){t&&(t=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===n?s.abort():"error"===n?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Gt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),i=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){t&&i()})},t=t("abort");try{s.send(n.hasContent&&n.data||null)}catch(n){if(t)throw n}},abort:function(){t&&t()}}}),x.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return x.globalEval(n),n}}}),x.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1),n.crossDomain&&(n.type="GET")}),x.ajaxTransport("script",function(n){var t,e;if(n.crossDomain||n.scriptAttrs)return{send:function(i,l){t=x("